clinicaltrialsgov-mcp-server
Version:
Search ClinicalTrials.gov trials, retrieve study details and results, and match patients to eligible trials via MCP. STDIO or Streamable HTTP.
36 lines • 1.81 kB
TypeScript
/**
* @fileoverview Discover valid field values with study counts from ClinicalTrials.gov.
* @module mcp-server/tools/definitions/get-field-values.tool
*/
import { z } from '@cyanheads/mcp-ts-core';
import { JsonRpcErrorCode } from '@cyanheads/mcp-ts-core/errors';
export declare const getFieldValues: import("@cyanheads/mcp-ts-core").ToolDefinition<z.ZodObject<{
fields: z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>;
}, z.core.$strip>, z.ZodObject<{
fieldStats: z.ZodArray<z.ZodObject<{
field: z.ZodString;
piece: z.ZodString;
type: z.ZodString;
missingStudiesCount: z.ZodOptional<z.ZodNumber>;
multiValued: z.ZodOptional<z.ZodBoolean>;
uniqueValuesCount: z.ZodOptional<z.ZodNumber>;
topValues: z.ZodOptional<z.ZodArray<z.ZodObject<{
value: z.ZodString;
studiesCount: z.ZodNumber;
}, z.core.$strip>>>;
trueCount: z.ZodOptional<z.ZodNumber>;
falseCount: z.ZodOptional<z.ZodNumber>;
}, z.core.$strip>>;
}, z.core.$strip>, readonly [{
readonly reason: "field_invalid";
readonly code: JsonRpcErrorCode.ValidationError;
readonly when: "A requested field name is not a valid PascalCase piece name.";
readonly recovery: "Call clinicaltrials_get_field_definitions to browse the field tree; use PascalCase piece names like OverallStatus, Phase, or StudyType.";
}, {
readonly reason: "rate_limited";
readonly code: JsonRpcErrorCode.RateLimited;
readonly when: "ClinicalTrials.gov returned 429 after retry budget exhausted.";
readonly recovery: "ClinicalTrials.gov rate-limited the request after several retries; wait about a minute before trying again.";
readonly retryable: true;
}], undefined>;
//# sourceMappingURL=get-field-values.tool.d.ts.map