Skip to main content
Glama

Pubchem Search By Name

pubchem_search_by_name
Read-onlyIdempotent

Resolve a common chemical or drug name to PubChem CIDs. Use for "what's the CID of ibuprofen?" or to disambiguate. Returns CIDs (Compound IDs) matched to the name. Then use get_compound with the CID for properties.

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": {
      "name": "ibuprofen"
    },
    "name": "pubchem_search_by_name"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameYesCommon, IUPAC, or brand name (e.g., "ibuprofen", "caffeine")
max_resultsNoCap results (default 5)

Output Schema

NameRequiredDescriptionDefault
cidsYesList of matching PubChem Compound IDs
nameYesThe chemical/drug name searched
countYesNumber of CIDs found
pubchem_urlsYesDirect URLs to PubChem pages for each CID

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.2/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint, openWorldHint, and destructiveHint=false, so the safety profile needs no restating. The description adds that results are name-to-CID matches and that ambiguity is expected, but says nothing about what happens with zero matches, how ties are ranked, or rate limits. With annotations and an output schema carrying much of the burden, a 3 is appropriate.

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?

Three short sentences, front-loaded with the core action and followed by the example and the next-step routing. No filler or restated title text.

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?

Rich annotations, full schema coverage, and an output schema mean the description only needs to frame purpose and workflow, which it does. The only unaddressed gap is ambiguous- or no-match behavior, which matters for a name-resolution tool but is a minor omission.

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 description coverage is 100%, and the schema already documents both name (common/IUPAC/brand) and max_results (default 5). The description adds no syntax, format, or edge-case guidance beyond that, so the schema does the heavy lifting and baseline 3 applies.

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 and resource ("Resolve a common chemical or drug name to PubChem CIDs") and names the downstream sibling get_compound for property lookups. An agent can distinguish this from get_compound, get_synonyms, and get_classification without opening any schema.

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

Usage Guidelines5/5

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

Gives a concrete invocation example ("what's the CID of ibuprofen?"), names a second use case (disambiguation), and explicitly routes the follow-up step to get_compound. The when-to-use and what-to-do-next are both stated rather than implied.

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.