/** * @fileoverview Search PubChem for chemical compounds by name, SMILES, InChIKey, * formula, substructure, superstructure, or 2D similarity. * @module mcp-server/tools/definitions/search-compounds */ import { z } from '@cyanheads/mcp-ts-core'; import { JsonRpcErrorCode } from '@cyanheads/mcp-ts-core/errors'; export declare const searchCompounds: import("@cyanheads/mcp-ts-core").ToolDefinition; identifierType: z.ZodOptional>; identifiers: z.ZodOptional>; formula: z.ZodOptional; allowOtherElements: z.ZodDefault; query: z.ZodOptional; queryType: z.ZodOptional>; threshold: z.ZodDefault; offset: z.ZodDefault; maxResults: z.ZodDefault; properties: z.ZodOptional>>; }, z.core.$strip>, z.ZodObject<{ results: z.ZodArray; properties: z.ZodOptional>; }, z.core.$strip>>; unresolvedIdentifiers: z.ZodOptional>; }, z.core.$strip>, readonly [{ readonly reason: "missing_identifier_args"; readonly code: JsonRpcErrorCode.ValidationError; readonly when: "searchType is \"identifier\" but identifierType or identifiers were omitted"; readonly recovery: "Set identifierType (name/smiles/inchikey) and pass a non-empty identifiers array (1-25 entries)."; }, { readonly reason: "missing_formula"; readonly code: JsonRpcErrorCode.ValidationError; readonly when: "searchType is \"formula\" but the formula field was omitted or blank"; readonly recovery: "Pass formula in Hill notation, for example \"C6H12O6\" or \"CaH2O2\"."; }, { readonly reason: "missing_structure_args"; readonly code: JsonRpcErrorCode.ValidationError; readonly when: "substructure/superstructure/similarity search with query or queryType omitted, or a blank query"; readonly recovery: "Provide both query (SMILES string or CID as string) and queryType (\"smiles\" or \"cid\")."; }, { readonly reason: "invalid_cid_query"; readonly code: JsonRpcErrorCode.ValidationError; readonly when: "structure/similarity search with queryType \"cid\" but query is not a positive integer CID"; readonly recovery: "Pass a positive integer CID string (e.g. \"2244\"), or set queryType \"smiles\" with a SMILES query."; }, { readonly reason: "identifier_rejected"; readonly code: JsonRpcErrorCode.ValidationError; readonly when: "identifier search where PubChem rejected every identifier in the batch as unreadable (HTTP 400) — for SMILES, a string it could not standardize into a structure. A batch with any other outcome lists rejected inputs in unresolvedIdentifiers instead"; readonly recovery: "Check each identifier against identifierType: for SMILES, balanced ring closures and parentheses, valid element symbols, and no \"*\" wildcard atoms; otherwise set identifierType to the form the identifiers are in."; }, { readonly reason: "search_query_rejected"; readonly code: JsonRpcErrorCode.ValidationError; readonly thrownBy: "service"; readonly when: "PubChem failed a formula, substructure, superstructure, or similarity search with HTTP 500 \"Search status indicates failure\" — its answer for a malformed SMILES or formula, a SMILES with a \"*\" wildcard atom, or a CID with no record"; readonly recovery: "Fix the SMILES syntax or remove \"*\" atoms, write the formula in Hill notation (e.g. \"C6H12O6\"), or confirm the CID exists with pubchem_get_compound_details."; }], { readonly searchType: z.ZodString; readonly totalFound: z.ZodOptional; readonly totalFoundAtLeast: z.ZodOptional; readonly offset: z.ZodNumber; readonly nextOffset: z.ZodOptional; readonly truncated: z.ZodOptional; readonly shown: z.ZodOptional; readonly cap: z.ZodOptional; readonly notice: z.ZodOptional; }>; //# sourceMappingURL=search-compounds.tool.d.ts.map