get_external_references
Retrieve external database links for a PubChem compound, including ChEMBL, DrugBank, and KEGG, by providing the CID to access cross-referenced information.
Instructions
Get links to external databases (ChEMBL, DrugBank, KEGG, etc.)
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cid | Yes | PubChem Compound ID (CID) |
Implementation Reference
- src/index.ts:1195-1197 (handler)The main handler function for the 'get_external_references' tool. It currently returns a placeholder response indicating that the feature is not yet implemented.private async handleGetExternalReferences(args: any) { return { content: [{ type: 'text', text: JSON.stringify({ message: 'External references not yet implemented', args }, null, 2) }] }; }
- src/index.ts:688-694 (schema)The input schema definition for the tool, specifying that a 'cid' parameter (PubChem Compound ID) is required.inputSchema: { type: 'object', properties: { cid: { type: ['number', 'string'], description: 'PubChem Compound ID (CID)' }, }, required: ['cid'], },
- src/index.ts:685-695 (registration)The tool registration object added to the MCP server's tools list, including name, description, and input schema.{ name: 'get_external_references', description: 'Get links to external databases (ChEMBL, DrugBank, KEGG, etc.)', inputSchema: { type: 'object', properties: { cid: { type: ['number', 'string'], description: 'PubChem Compound ID (CID)' }, }, required: ['cid'], }, },
- src/index.ts:802-803 (registration)The switch case in the request handler that dispatches calls to this tool to its handler function.case 'get_external_references': return await this.handleGetExternalReferences(args);