get_classification

Pack: pubchem · Endpoint: https://gateway.pipeworx.io/pubchem/mcp

Pharmacological classification tree for a CID — drug class, mechanism of action, biological role tags. Useful for “what kind of drug is X” questions.

Parameters

NameTypeRequiredDescription
cidnumberyesPubChem Compound ID

Example call

Arguments

{
  "cid": 3672
}

curl

curl -X POST https://gateway.pipeworx.io/pubchem/mcp \
  -H 'Content-Type: application/json' \
  -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"get_classification","arguments":{"cid":3672}}}'

TypeScript (@pipeworx/sdk)

import { Pipeworx } from '@pipeworx/sdk';
const pipeworx = new Pipeworx();

const result = await pipeworx.call('get_classification', {
  "cid": 3672
});

Response shape

Always returns: cid, pharmacology_sections

FieldTypeDescription
cidnumberPubChem Compound ID
pharmacology_sectionsobjectPharmacology classification sections with values
pubchem_urlstringDirect URL to pharmacology section on PubChem
Full JSON Schema
{
  "type": "object",
  "properties": {
    "cid": {
      "type": "number",
      "description": "PubChem Compound ID"
    },
    "pharmacology_sections": {
      "type": "object",
      "additionalProperties": {
        "type": "array",
        "items": {
          "type": "string"
        }
      },
      "description": "Pharmacology classification sections with values"
    },
    "pubchem_url": {
      "type": "string",
      "description": "Direct URL to pharmacology section on PubChem"
    }
  },
  "required": [
    "cid",
    "pharmacology_sections"
  ]
}

Connect

Add this to your MCP client config, or use one-click install buttons:

{
  "mcpServers": {
    "pubchem": {
      "url": "https://gateway.pipeworx.io/pubchem/mcp"
    }
  }
}

See Getting Started for client-specific install steps.

Regenerated from source · build July 6, 2026