/** * @fileoverview `brapi_find_observations` — pull observation records filtered * by study, germplasm, variable, season, or observation unit. Matches the * find_* pattern: paged single pull capped at loadLimit, distributions across * variable/study/germplasm/level, dataframe spillover when the upstream * total exceeds loadLimit. * * @module mcp-server/tools/definitions/brapi-find-observations.tool */ import { z } from '@cyanheads/mcp-ts-core'; import { JsonRpcErrorCode } from '@cyanheads/mcp-ts-core/errors'; export declare const brapiFindObservations: import("@cyanheads/mcp-ts-core").ToolDefinition; studies: z.ZodOptional>; germplasm: z.ZodOptional>; variables: z.ZodOptional>; observationUnits: z.ZodOptional>; observations: z.ZodOptional>; seasons: z.ZodOptional>; programs: z.ZodOptional>; trials: z.ZodOptional>; observationLevels: z.ZodOptional>; timestampFrom: z.ZodOptional; timestampTo: z.ZodOptional; loadLimit: z.ZodOptional; extraFilters: z.ZodOptional>; }, z.core.$strip>, z.ZodObject<{ alias: z.ZodString; results: z.ZodArray>; observationUnitDbId: z.ZodOptional>; observationUnitName: z.ZodOptional>; observationVariableDbId: z.ZodOptional>; observationVariableName: z.ZodOptional>; studyDbId: z.ZodOptional>; studyName: z.ZodOptional>; germplasmDbId: z.ZodOptional>; germplasmName: z.ZodOptional>; observationLevel: z.ZodOptional>; season: z.ZodOptional, z.ZodNull]>>; value: z.ZodOptional>; observationTimeStamp: z.ZodOptional>; collector: z.ZodOptional>; uploadedBy: z.ZodOptional>; }, z.core.$loose>>; hasMore: z.ZodBoolean; distributions: z.ZodObject<{ observationVariableName: z.ZodRecord; studyName: z.ZodRecord; germplasmName: z.ZodRecord; observationLevel: z.ZodRecord; season: z.ZodRecord; }, z.core.$strip>; 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_find_observations."; }, { readonly reason: "all_filters_dropped"; readonly code: JsonRpcErrorCode.ValidationError; readonly when: "The active dialect dropped every filter the agent supplied — the upstream server does not honor any of the requested scope filters on this endpoint, so the call would silently widen to the unfiltered baseline."; readonly recovery: "Drop the unsupported filters and rescope by germplasm, variables, observationUnits, observations, seasons, programs, or trials — these filter paths are honored on the active dialect."; }], { readonly totalCount: z.ZodNumber; readonly returnedCount: z.ZodNumber; readonly appliedFilters: z.ZodRecord; readonly refinementHint: z.ZodOptional; readonly notice: z.ZodOptional; readonly warnings: z.ZodArray; }>; //# sourceMappingURL=brapi-find-observations.tool.d.ts.map