Skip to main content
Glama

compound_lookup

Retrieves ChEBI or KEGG compound records by name or ID, returning identifiers, synonyms, formulas, masses, and pathways. Use it to resolve chemical entities and their properties.

Instructions

Look up compounds in ChEBI or KEGG.

Pick source:

  • chebi (default): EBI ChEBI ontology; item shape is chebi_id/name/description/synonyms/type. A name is searched; an exact CHEBI:15365 returns that term with synonyms.

  • kegg: KEGG compound; item shape is entry/names/formula/exact_mass/mol_weight/pathways. KEGG REST is free for academic use; commercial use requires a KEGG license.

query is a compound name or source id (KEGG C01405). Only upstream fields are returned; missing fields are omitted, nothing is inferred or completed. Failures return an error dict (error, source).

Args: query: Compound name or ChEBI/KEGG id. source: "chebi" or "kegg". limit: Matches/records to return, 1-10 (default 5).

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": {
      "query": "<query>"
    },
    "name": "compound_lookup"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNo
queryYes
sourceNochebi

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.2/5.0
Behavior4/5

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

No annotations exist, so the description carries the full burden, and it does well: it discloses per-source return shapes, that missing fields are omitted rather than inferred, and that failures return an error dict with `error`/`source`. It does not mention rate limits or authentication needs, so it stops short of a 5.

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 one-line purpose followed by scannable per-source bullets and an Args block; nothing is wasted. The duplicated per-source field-shape detail makes it slightly longer than strictly necessary for a 3-parameter lookup.

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 documents the returned item shapes and error structure, which is exactly the missing context an agent needs. It is essentially complete for a lookup tool, lacking only explicit sibling routing.

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, and it fully does: `query` is a name or source id (with a concrete `C01405` example), `source` takes 'chebi' or 'kegg', and `limit` is bounded 1-10 with default 5. Acceptable input formats are unambiguous.

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 compounds in ChEBI or KEGG') and distinguishes the two backends via the `source` parameter. It does not differentiate from siblings like chem_compound or chembl_data, keeping it just below a 5.

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

Usage Guidelines4/5

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

Provides clear guidance on choosing between `chebi` (default) and `kegg`, including the academic-vs-commercial KEGG license caveat, which implicitly informs when to prefer each. No exclusion or explicit pointer to alternative compound tools, so no 5.

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