/** * @fileoverview `brapi_find_studies` — locate studies matching crop / trial * type / season / location / program filters. Pulls an initial page and, if * the server reports more rows than loadLimit, materializes the union as a * dataframe and returns a handle. Companion response: per-field * distributions computed from the full row set plus a refinement hint. * * @module mcp-server/tools/definitions/brapi-find-studies.tool */ import { z } from '@cyanheads/mcp-ts-core'; import { JsonRpcErrorCode } from '@cyanheads/mcp-ts-core/errors'; export declare const brapiFindStudies: import("@cyanheads/mcp-ts-core").ToolDefinition; crop: z.ZodOptional; trialTypes: z.ZodOptional>; seasons: z.ZodOptional>; locations: z.ZodOptional>; programs: z.ZodOptional>; trials: z.ZodOptional>; studyNames: z.ZodOptional>; active: z.ZodOptional; loadLimit: z.ZodOptional; extraFilters: z.ZodOptional>; }, z.core.$strip>, z.ZodObject<{ alias: z.ZodString; results: z.ZodArray>; studyType: z.ZodOptional>; studyDescription: z.ZodOptional>; programDbId: z.ZodOptional>; programName: z.ZodOptional>; trialDbId: z.ZodOptional>; trialName: z.ZodOptional>; locationDbId: z.ZodOptional>; locationName: z.ZodOptional>; commonCropName: z.ZodOptional>; seasons: z.ZodOptional>>>; active: z.ZodOptional>; startDate: z.ZodOptional>; endDate: z.ZodOptional>; studyCode: z.ZodOptional>; studyPUI: z.ZodOptional>; }, z.core.$loose>>; hasMore: z.ZodBoolean; distributions: z.ZodObject<{ programName: z.ZodRecord; studyType: z.ZodRecord; seasons: z.ZodRecord; locationName: z.ZodRecord; commonCropName: 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_studies."; }, { 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 crop, trialTypes, seasons, programs, trials, studyNames, or active — 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-studies.tool.d.ts.map