get_external_references
Retrieve links to external chemical databases like ChEMBL, DrugBank, and KEGG for PubChem compounds to access additional research data and cross-reference chemical 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 serves as a placeholder, returning a message 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:685-695 (registration)Tool registration in the setTools call, including name, description, and input schema definition.{ 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:688-694 (schema)Input schema definition for the tool, specifying the required 'cid' parameter.inputSchema: { type: 'object', properties: { cid: { type: ['number', 'string'], description: 'PubChem Compound ID (CID)' }, }, required: ['cid'], },
- src/index.ts:802-803 (registration)Dispatcher switch case that routes calls to the specific handler function.case 'get_external_references': return await this.handleGetExternalReferences(args);