get_external_references
Retrieve links to external databases like ChEMBL, DrugBank, and KEGG using a PubChem Compound ID (CID) for comprehensive chemical reference data.
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)Placeholder implementation of the get_external_references tool handler. Returns a message indicating it is not yet implemented, echoing the input args.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)Input schema for the get_external_references tool, requiring a 'cid' parameter of type number or string.inputSchema: { type: 'object', properties: { cid: { type: ['number', 'string'], description: 'PubChem Compound ID (CID)' }, }, required: ['cid'], },
- src/index.ts:685-695 (registration)Registration of the get_external_references tool in the 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)Dispatcher case in the request handler that routes calls to the get_external_references tool to its handler method.case 'get_external_references': return await this.handleGetExternalReferences(args);