Skip to main content
Glama

chem_compound

Look up a compound in PubChem by name, CID, SMILES, or InChIKey and return its upstream record, optionally narrowed to selected properties.

Instructions

Look up one compound in PubChem and return its upstream record.

Use this for both a full record and a chosen property subset: pass properties (PubChem property names such as "MolecularFormula", "XLogP") to narrow the fields, or omit it for the default set. Unknown property names are rejected with the allowed list.

Returns only fields PubChem actually carries (CID, formula, molecular weight, IUPAC name, SMILES, InChIKey, XLogP, TPSA, H-bond counts, rotatable bonds, heavy atoms, charge, complexity, up to 20 synonyms). Fields the upstream omits stay omitted — nothing is inferred.

Args: identifier: Compound name, numeric CID, SMILES or InChIKey. id_type: One of "name", "cid", "smiles", "inchikey". properties: Optional PubChem property names (default: all).

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": {
      "identifier": "<identifier>"
    },
    "name": "chem_compound"
  }
}

Input Schema

NameRequiredDescriptionDefault
id_typeNoname
identifierYes
propertiesNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.1/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does meaningful work: it discloses the error behavior (unknown property names rejected with the allowed list) and the non-inference policy ('Fields the upstream omits stay omitted — nothing is inferred'). It also enumerates the returned fields, though it says nothing about authentication, rate limits, or lookup cost.

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 the core purpose, then a usage paragraph, then an Args block. Slightly redundant in restating `properties` in both prose and Args, but every sentence contributes and nothing is filler.

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?

No output schema exists, yet the description enumerates the returnable fields (CID, formula, MW, SMILES, InChIKey, XLogP, TPSA, etc.) and capped synonyms. Combined with error behavior and identifier formats, an agent has what it needs to call this correctly.

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

Parameters5/5

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

Schema description coverage is 0%, so the description must compensate entirely, and it does: identifier formats are enumerated (name, numeric CID, SMILES, InChIKey), id_type values are listed verbatim, and `properties` is explained with concrete examples plus default behavior. This adds substantial meaning the bare schema lacks.

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 and resource: 'Look up one compound in PubChem and return its upstream record.' The emphasis on one compound implicitly separates it from similarity-based siblings like chem_similar_compounds, but it never names an alternative explicitly, so sibling differentiation is only partial.

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?

It explains the internal usage choice well (pass `properties` to narrow fields, omit for the default set). However, it gives no guidance on when to pick this tool over compound_lookup or chem_similar_compounds, and no prerequisites are stated. Usage is implied rather than routed.

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