get_toxicity_info
Retrieve toxicity details such as LD50, carcinogenicity, and mutagenicity for chemical compounds using the PubChem Compound ID (CID) from the PubChem MCP Server.
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 handler function that executes the 'get_toxicity_info' tool logic. Currently a placeholder that returns 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:653-659 (schema)Input schema defining the expected parameters (cid) for the tool.inputSchema: { type: 'object', properties: { cid: { type: ['number', 'string'], description: 'PubChem Compound ID (CID)' }, }, required: ['cid'], },
- src/index.ts:650-660 (registration)Tool definition and registration in the server's tools array, including name, description, and schema.{ 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 request handler that dispatches calls to the specific tool handler.case 'get_toxicity_info': return await this.handleGetToxicityInfo(args);