get_toxicity_info
Retrieve toxicity data including LD50 values, carcinogenicity, and mutagenicity information for chemical compounds using their PubChem Compound ID.
Instructions
Get toxicity data including LD50, carcinogenicity, and mutagenicity
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cid | Yes | PubChem Compound ID (CID) |
Implementation Reference
- src/index.ts:1183-1185 (handler)The main handler function that executes the logic for the 'get_toxicity_info' tool. Currently a placeholder implementation returning a 'not yet implemented' message.private async handleGetToxicityInfo(args: any) { return { content: [{ type: 'text', text: JSON.stringify({ message: 'Toxicity info not yet implemented', args }, null, 2) }] }; }
- src/index.ts:650-660 (registration)Registration of the 'get_toxicity_info' tool in the list of available tools returned by ListToolsRequestSchema, including name, description, and input schema definition.{ name: 'get_toxicity_info', description: 'Get toxicity data including LD50, carcinogenicity, and mutagenicity', inputSchema: { type: 'object', properties: { cid: { type: ['number', 'string'], description: 'PubChem Compound ID (CID)' }, }, required: ['cid'], }, },
- src/index.ts:794-795 (registration)Switch case in the CallToolRequestSchema handler that routes calls to the 'get_toxicity_info' tool to its handler function.case 'get_toxicity_info': return await this.handleGetToxicityInfo(args);
- src/index.ts:653-659 (schema)Input schema definition for the 'get_toxicity_info' tool, specifying the expected arguments (CID as number or string).inputSchema: { type: 'object', properties: { cid: { type: ['number', 'string'], description: 'PubChem Compound ID (CID)' }, }, required: ['cid'], },