/** * MCP Tool definitions for PubMed server * * 9 tools: search, fetch, fetch_batch, get_full_text, count, * find_similar_articles, export_to_ris, get_citation_counts, convert_ids */ import { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js"; import { type ExtendedSearchItem, type AbstractItem } from "./pubmed-client.js"; export declare function registerTools(server: McpServer, apiKey?: string): void; /** * Cap very long author lists to keep returned JSON compact. * * Consortium / multi-site trials can list dozens to hundreds of authors. When * the list exceeds `max`, keep the first `keep` names and append "et al." so the * model still gets the lead authors without flooding its context. Lists at or * below `max` are returned unchanged. */ export declare function capAuthors(authors: string[], max?: number, keep?: number): string[]; export declare function shapeSearchResult(item: ExtendedSearchItem, mode: "minimal" | "compact" | "full", abs?: AbstractItem): Record; //# sourceMappingURL=tools.d.ts.map