/** * @fileoverview `brapi_get_study` — fetch a single study by DbId, resolve * program/trial/location FKs via ReferenceDataCache, and attach cheap * `pageSize=1` counts (observations, observation units, variables) as * response companions so the agent can decide where to drill next. * * @module mcp-server/tools/definitions/brapi-get-study.tool */ import { z } from '@cyanheads/mcp-ts-core'; import { JsonRpcErrorCode } from '@cyanheads/mcp-ts-core/errors'; export declare const brapiGetStudy: import("@cyanheads/mcp-ts-core").ToolDefinition; }, z.core.$strip>, z.ZodObject<{ alias: z.ZodString; study: z.ZodObject<{ studyDbId: z.ZodString; studyName: z.ZodOptional>; 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>; program: z.ZodOptional>; commonCropName: z.ZodOptional>; abbreviation: z.ZodOptional>; leadPersonName: z.ZodOptional>; documentationURL: z.ZodOptional>; }, z.core.$loose>>; trial: z.ZodOptional>; programDbId: z.ZodOptional>; programName: z.ZodOptional>; commonCropName: z.ZodOptional>; startDate: z.ZodOptional>; endDate: z.ZodOptional>; active: z.ZodOptional>; trialDescription: z.ZodOptional>; }, z.core.$loose>>; location: z.ZodOptional>; abbreviation: z.ZodOptional>; countryCode: z.ZodOptional>; countryName: z.ZodOptional>; locationType: z.ZodOptional>; latitude: z.ZodOptional>; longitude: z.ZodOptional>; altitude: z.ZodOptional>; coordinates: z.ZodOptional>>; }, z.core.$loose>>; observationCount: z.ZodOptional; observationUnitCount: z.ZodOptional; variableCount: z.ZodOptional; warnings: z.ZodArray; }, 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_get_study."; }, { readonly reason: "study_not_found"; readonly code: JsonRpcErrorCode.NotFound; readonly when: "Upstream returned no study record for the requested DbId"; readonly recovery: "Verify the studyDbId on the target server, or run brapi_find_studies to discover valid IDs."; }], undefined>; //# sourceMappingURL=brapi-get-study.tool.d.ts.map