Skip to main content
Glama

chem_compound

Read-only

Chemical compound lookup (PubChem) — Look up a chemical by name, CAS number, PubChem CID (cid=), SMILES (smiles=) or InChIKey (inchikey=): PubChem CID, IUPAC name, molecular formula and weight, exact mass, CAS numbers, SMILES, InChI/InChIKey, XLogP, TPSA, H-bond donors/acceptors, rotatable bonds, complexity, Lipinski rule-of-five check, top synonyms and the PubChem URL. Source: PubChem (NCBI/NLM). Price: $0.004 USDC (Base, via x402).

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": "chem_compound"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameYese.g. caffeine

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true, destructiveHint=false and openWorldHint=true, so safety is covered. The description adds value the annotations cannot: the upstream data source (PubChem/NCBI) and a concrete price of $0.004 USDC on Base via x402, which materially affects whether an agent should call it. It stops short of describing failure behavior for unknown compounds.

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?

Front-loaded with purpose and input formats, then source and price at the end — the right ordering. The long comma-delimited return-field list is dense but every item is genuinely differentiating output information, so little is wasted.

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

Completeness5/5

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

For a single-parameter read-only lookup with no output schema, the description carries the necessary weight: it lists the returned fields, discloses the data source and the per-call cost. Nothing an agent needs in order to decide and call correctly is missing.

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 baseline is 3, but the description genuinely extends the single 'name' parameter by revealing that it accepts CAS numbers and prefixed CID (cid=), SMILES (smiles=) and InChIKey (inchikey=) inputs — information absent from the schema, which shows only 'e.g. caffeine'. The prefix convention is the key operational detail and it is supplied.

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

Purpose5/5

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

Names a specific verb and resource ('Chemical compound lookup (PubChem)') and enumerates exactly what it resolves (CID, IUPAC name, formula, mass, descriptors, Lipinski check), so an agent knows precisely what it gets back. It does not name sibling tools like chem_compound_batch or chem_molar_mass, but the scope is unambiguous from the definition itself.

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 implied by the input formats listed (look up a known compound by name, CAS, CID, SMILES or InChIKey), but there is no explicit statement of when to prefer this over a batch sibling or a molar-mass sibling, and no exclusions. It tells you how to call it, not when not to.

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.

Resources