Skip to main content
Glama

Crypto & Web Data API for Agents

PubChem: chemical compound properties and synonyms by name

science_compound
Read-only

PubChem: chemical compound properties and synonyms by name. Looks up a compound by name in PubChem and returns CID, formula, molecular weight, IUPAC name, SMILES, InChIKey, XLogP, H-bond donors/acceptors, synonyms and a link to the PubChem page. Price $0.010 per call (x402: USDC on Base or Solana).

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

Input Schema

NameRequiredDescriptionDefault
txNoAlternative to the X-Payment-Tx header
nameYesCompound name

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4/5.0
Behavior4/5

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

Annotations already declare readOnlyHint and openWorldHint, so the safety profile is covered. The description adds information annotations do not carry — the per-call price ($0.010) and the x402 USDC payment mechanism — which materially affects invocation. It stops short of describing not-found behavior or fallback on ambiguous names.

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?

Two sentences, front-loaded with identity and lookup semantics, then the return payload, then billing. Every sentence carries distinct information with no repetition of the title.

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?

With no output schema, the description usefully enumerates the return fields, and it covers the non-obvious payment requirement, which is essential for correct invocation. What remains absent — behavior on unknown or ambiguous compound names — is a minor gap for a simple read-only lookup.

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 the name parameter documented and exemplified ('aspirin') and tx described as a header alternative, so the schema does the heavy lifting. The description adds nothing about the name field beyond what the schema shows and never mentions the payment tx parameter.

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?

States a specific verb (looks up) and resource (compound in PubChem) plus the exact lookup key (name), and enumerates the returned fields (CID, formula, MW, IUPAC name, SMILES, InChIKey, XLogP, H-bond donors/acceptors, synonyms, page link). This clearly distinguishes it from siblings like science_gene or science_druglabel without needing their schemas.

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: look up a chemical compound when you have a name. There is no explicit when-not-to-use, no guidance on ambiguous or trade names versus IUPAC names, and no mention of alternatives for other identifier types (CAS, CID), so the agent must infer scope.

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