Skip to main content
Glama

MetExplore

Search metabolites by external identifier (ChEBI, KEGG, HMDB...) in a MetExplore network

search_metabolites_by_external_id

Lists ALL the metabolites of a MetExplore network cross-referenced to a given external identifier (ChEBI, KEGG compound, HMDB, MetaNetX, PubChem, LipidMaps, InChI, BiGG, VMH...), in every compartment. Use it whenever the user gives such an identifier, e.g. 'CHEBI:15422', 'C00002' or 'HMDB0000538'. The database is detected from the identifier, or given with db (or as a prefix: 'bigg.metabolite:atp'). The tool first checks that the network contains cross-references from that database. If the identifier type is not recognized or ambiguous, the answer lists the databases available in the network: ask the user which one to use and call again with db. Requires an id_network (see search_organisms).

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": {
      "id_network": "<id_network>",
      "external_id": "<external_id>"
    },
    "name": "search_metabolites_by_external_id"
  }
}

Input Schema

NameRequiredDescriptionDefault
dbNoDatabase of the identifier, as named in MetExplore (e.g. chebi, kegg.compound, hmdb, metanetx.chemical, pubchem.compound, bigg.metabolite, vmhmetabolite, lipidmaps, inchi). Optional: detected from the identifier when possible.
id_networkYesId of the MetExplore network (obtained via search_organisms)
external_idYesExternal identifier of the metabolite, e.g. 'CHEBI:15422', 'C00002' (KEGG), 'HMDB0000538', 'MNXM3' (MetaNetX), or prefixed with its database: 'bigg.metabolite:atp', 'pubchem.compound:5957'
output_formatNoFormat of the result: markdown table or text. Default: table.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.3/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 it discloses non-obvious behavior: the database is auto-detected from the identifier or taken from db/prefix, and the tool first verifies the network actually contains cross-references from that database before returning results. It also documents the ambiguity branch. It does not explicitly state that the operation is read-only, though 'Lists' implies it.

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 action and scope, followed by trigger examples, then the detection/ambiguity behavior, then the prerequisite. Dense but every sentence carries a distinct instruction; the long database enumeration in parentheses is the only mildly wasteful element.

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?

For a four-parameter lookup tool with no output schema, the description covers the prerequisite (id_network), identifier formats, detection logic, and failure handling well enough to call it correctly. Return-value shape is only loosely implied, but output_format partially compensates.

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

Parameters4/5

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

Schema coverage is 100%, so the baseline is 3, but the description adds real semantics beyond the schema: db is optional because detection happens automatically, prefixes like 'bigg.metabolite:atp' are accepted in external_id, and id_network must come from search_organisms. output_format is left to 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?

The description names a specific verb and resource ('Lists ALL the metabolites of a MetExplore network cross-referenced to a given external identifier') and states the scope ('in every compartment'), which is enough to separate it from search_metabolites and search_metabolites_by_formula.

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?

It gives an explicit trigger condition ('Use it whenever the user gives such an identifier') with concrete examples, plus a fallback path: if the identifier type is unrecognized or ambiguous, the answer lists available databases and the agent should ask the user and retry with db. It stops short of naming a sibling for the formula-based case, so 4 rather than 5.

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.