Skip to main content
Glama

PubChem Chemical Compounds MCP

Get PubChem compound by name

get_compound_by_name
Read-onlyIdempotent

Look up a chemical compound in NCBI PubChem by common name, drug name, or IUPAC name and return CID, formula, weight, SMILES, InChIKey, XLogP, and TPSA.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "name": "<name>"
    },
    "name": "get_compound_by_name"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameYesCompound name (e.g. "aspirin", "caffeine", "ibuprofen", "imatinib").

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.7/5.0
Behavior3/5

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

The annotations already declare readOnlyHint, idempotentHint, openWorldHint and destructiveHint=false, so the safety profile is covered without the description. The description adds the returned field set, which is genuinely beyond the annotations, but says nothing about ambiguous or failed name resolution, rate limits, or multiple-match behavior.

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

Conciseness5/5

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

A single sentence that front-loads the action and source and then lists outputs compactly. No filler, no redundancy with the title or schema.

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 full annotation coverage and no output schema, listing the returned fields fills the main gap. It is slightly incomplete in not addressing what happens when a name is ambiguous or not found, which matters for an open-world lookup.

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

Parameters4/5

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

Schema coverage is 100%, so the parameter is already documented, yet the description still adds value by widening the accepted input beyond the schema's drug-name examples to common names, drug names, and IUPAC names. That is real semantic information an agent would not get from the schema alone.

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?

States a specific verb (look up) and resource (chemical compound in NCBI PubChem) and enumerates the returned fields, which helps separate it from get_compound_description and get_compound_synonyms. It never names a sibling explicitly, so the differentiation is inferential rather than stated.

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

Usage Guidelines3/5

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

Usage is only implied by the input framing: 'by common name, drug name, or IUPAC name' suggests this is the name-based lookup as opposed to search_by_formula. There is no explicit when-to-use or when-not-to-use guidance, and no hint about when to prefer get_compound_properties or get_compound_synonyms instead.

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.