get_external_references
Retrieve external database links for PubChem compounds to access related information in ChEMBL, DrugBank, KEGG, and other resources.
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 executing the 'get_external_references' tool logic. Currently a placeholder returning 'not yet implemented' message.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 definition for the 'get_external_references' tool, specifying the required 'cid' parameter.inputSchema: { type: 'object', properties: { cid: { type: ['number', 'string'], description: 'PubChem Compound ID (CID)' }, }, required: ['cid'], },
- src/index.ts:685-695 (registration)Tool registration entry in the tools array passed to server.setTools(), including name, description, and 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)Switch case in the request handler that dispatches calls to the 'get_external_references' handler method.case 'get_external_references': return await this.handleGetExternalReferences(args);