Skip to main content
Glama

Pubchem Get Classification

pubchem_get_classification
Read-onlyIdempotent

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

Example tool call

This call uses example arguments supplied in the tool’s input schema.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "cid": 3672
    },
    "name": "pubchem_get_classification"
  }
}

Input Schema

NameRequiredDescriptionDefault
cidYesPubChem Compound ID

Output Schema

NameRequiredDescriptionDefault
cidYesPubChem Compound ID
pubchem_urlNoDirect URL to pharmacology section on PubChem
pharmacology_sectionsYesPharmacology classification sections with values

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.6/5.0
Behavior3/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations already declare readOnly, idempotent, non-destructive, open-world behavior, so the description need not re-explain safety. It adds useful detail on what the response contains (classification tree, class, MoA, role tags), but says nothing about behavior on unknown/invalid CIDs or coverage gaps where PubChem lacks classification data.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Two tight sentences with the resource stated first and the use case second — well front-loaded and free of padding. Slightly terse prose ('for a CID') costs it nothing but also gives it no claim to a 5.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a one-parameter read-only lookup with rich annotations and an output schema, the description covers purpose, contents, and a use case — enough for correct invocation. Only missing-element is any note on missing-data behavior, which is minor here.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100% with a single documented parameter ('PubChem Compound ID'), so the schema fully carries parameter meaning. The description's mention of 'a CID' adds no syntax, format, or edge-case guidance beyond that, making the baseline 3 correct.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description names the resource precisely — a pharmacological classification tree keyed by a PubChem CID — and enumerates the contents (drug class, mechanism of action, biological role tags). It is clearly distinct from siblings like pubchem_get_synonyms or get_compound, though it never explicitly contrasts itself with them.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

It supplies a concrete usage context ("what kind of drug is X" questions), which tells an agent when this tool applies. It stops short of stating when NOT to use it or naming the sibling alternative for related lookups.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.