/** * @fileoverview `brapi_raw_get` — last-resort passthrough to any BrAPI GET * endpoint the goal-shaped tools don't cover (e.g. `/samples`, `/methods`, * `/scales`, `/crosses`). Returns the raw upstream envelope plus a routing * nudge when the target endpoint is covered by a curated tool, and spills * to a canvas dataframe when the upstream advertises more rows than fit * in `loadLimit` AND the result is a list shape (`result` array or BrAPI * `result.data` envelope). Spillover is skipped when the caller drives * paging via `params.page` / `params.pageSize` — they're explicitly walking * the result themselves and we don't second-guess. * * @module mcp-server/tools/definitions/brapi-raw-get.tool */ import { z } from '@cyanheads/mcp-ts-core'; import { JsonRpcErrorCode } from '@cyanheads/mcp-ts-core/errors'; export declare const brapiRawGet: import("@cyanheads/mcp-ts-core").ToolDefinition; path: z.ZodString; params: z.ZodOptional>]>>>; loadLimit: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ alias: z.ZodString; url: z.ZodString; path: z.ZodString; metadata: z.ZodObject<{ pagination: z.ZodOptional>; }, z.core.$loose>; result: z.ZodUnknown; suggestion: z.ZodOptional; dataframe: z.ZodOptional; columnLegend: z.ZodOptional>; createdAt: z.ZodString; expiresAt: z.ZodString; truncated: z.ZodOptional; maxRows: z.ZodOptional; totalCount: z.ZodOptional; }, z.core.$strip>>; }, z.core.$strip>, readonly [{ readonly reason: "unknown_alias"; readonly code: JsonRpcErrorCode.NotFound; readonly when: "No connection has been registered under the requested alias"; readonly recovery: "Run brapi_connect with this alias (or omit `alias` to use the default connection) before calling brapi_raw_get."; }, { readonly reason: "cross_origin_path"; readonly code: JsonRpcErrorCode.ValidationError; readonly when: "path argument was a full URL instead of a relative BrAPI route"; readonly recovery: "Pass a path like \"/samples\" or \"/methods\" — the connection alias supplies the baseUrl."; }], undefined>; //# sourceMappingURL=brapi-raw-get.tool.d.ts.map