/** * @fileoverview `brapi_find_variables` — find observation variables (traits) * by name, trait class, ontology term, or free-text query. When `text` is * supplied, results are re-ranked client-side via OntologyResolver; when * the server exposes ontology metadata, matches can resolve to ontology * URIs. Otherwise falls back to pure substring ordering. * * @module mcp-server/tools/definitions/brapi-find-variables.tool */ import { z } from '@cyanheads/mcp-ts-core'; import { JsonRpcErrorCode } from '@cyanheads/mcp-ts-core/errors'; export declare const brapiFindVariables: import("@cyanheads/mcp-ts-core").ToolDefinition; variables: z.ZodOptional>; variableNames: z.ZodOptional>; variablePUIs: z.ZodOptional>; traitClasses: z.ZodOptional>; ontologies: z.ZodOptional>; studies: z.ZodOptional>; methods: z.ZodOptional>; scales: z.ZodOptional>; crop: z.ZodOptional; text: z.ZodOptional; loadLimit: z.ZodOptional; extraFilters: z.ZodOptional>; }, z.core.$strip>, z.ZodObject<{ alias: z.ZodString; results: z.ZodArray>; observationVariablePUI: z.ZodOptional>; ontologyDbId: z.ZodOptional>; ontologyName: z.ZodOptional>; commonCropName: z.ZodOptional>; trait: z.ZodOptional>; traitName: z.ZodOptional>; traitClass: z.ZodOptional>; description: z.ZodOptional>; synonyms: z.ZodOptional>>; }, z.core.$loose>>>; scale: z.ZodOptional>; scaleName: z.ZodOptional>; dataType: z.ZodOptional>; }, z.core.$loose>>>; method: z.ZodOptional>; methodName: z.ZodOptional>; }, z.core.$loose>>>; }, z.core.$loose>>; hasMore: z.ZodBoolean; distributions: z.ZodObject<{ ontologyDbId: z.ZodRecord; traitClass: z.ZodRecord; scaleName: z.ZodRecord; }, z.core.$strip>; ontologyCandidates: z.ZodArray; termId: z.ZodOptional; name: z.ZodOptional; description: z.ZodOptional; synonyms: z.ZodOptional>; ontologyDbId: z.ZodOptional; source: z.ZodEnum<{ puiMatch: "puiMatch"; nameMatch: "nameMatch"; synonymMatch: "synonymMatch"; traitClassMatch: "traitClassMatch"; }>; }, 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_variables."; }, { 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 variables, traitClasses, ontologyDbIds, methodDbIds, scaleDbIds, or text — 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-variables.tool.d.ts.map