Skip to main content
Glama

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
NameRequiredDescriptionDefault
cidYesPubChem Compound ID (CID)

Implementation Reference

  • 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'],
      },
    },
  • 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);

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/k-lordbodin7/PubChem-MCP-Server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server