Skip to main content
Glama

get_pubchem_compound_id

Retrieve the PubChem Compound ID for a given compound name, returned in JSON format.

Instructions

Get a PubChem compound ID

Args: Compound name example: "resveratrol"

Returns: PubChem Compound ID in the JSON format

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
compound_nameYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior3/5

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

No annotations provided, so description carries full burden. Describes what it does and returns, but does not disclose idempotency, side effects, error handling, or potential API calls. Adequate for a simple lookup but lacks depth.

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?

Two sentences: first states purpose, second gives example and return format. Front-loaded and efficient. Could be slightly more structured but no unnecessary words.

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

Completeness3/5

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

Given a single parameter and existence of output schema, description is adequate but missing details on error cases (e.g., compound not found) and exact JSON format. Context signals indicate output schema exists, so return format explanation is not needed in detail.

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 0%, so description must compensate. Provides an example ('resveratrol') which adds some context, but does not define the parameter beyond what is obvious from the name. Minimal added value over the schema.

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?

Clearly states the verb 'Get' and resource 'PubChem compound ID'. Provides an example ('resveratrol'). Distinguishes from sibling tools like get_compound_attributes_from_pubchem or search_chembl_molecule, which have different purposes.

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?

Implies usage when a compound name is known and the compound ID is needed, but no explicit guidance on when to use versus alternatives, prerequisites, or when not to use. The context is clear, but lacking explicit direction.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/dbcls/togomcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server