Skip to main content
Glama

MetExplore

Search for a metabolite in a MetExplore network

search_metabolites

Fuzzy search of the metabolites of a MetExplore network by name (or db_identifier, matched exactly or as a fragment). Name matching is tolerant to case, accents, punctuation, Greek letters (β = beta), word order and small typos, but far-fetched matches are discarded. Returns the metabolite only if exactly one matches. As soon as several metabolites match (even if one matches exactly, or the same metabolite exists in several compartments), the result lists every candidate, best first, with its id, identifier, match kind, chemical formula, compartment and cross-references (KEGG/ChEBI/...): ask the user which one they mean instead of choosing. If nothing is close enough, says that no metabolite was found. Requires an id_network (see search_organisms). To search by chemical formula (e.g. C3H3O4), use search_metabolites_by_formula instead; to search by external identifier (ChEBI, KEGG, HMDB...), use search_metabolites_by_external_id.

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

Input Schema

NameRequiredDescriptionDefault
queryYesName (or fragment of a name, or db_identifier) of the metabolite to look for, e.g. 'glucose'
id_networkYesId of the MetExplore network (obtained via search_organisms)
output_formatNoFormat of the result when ambiguous: markdown table or text. Default: table.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.8/5.0
Behavior5/5

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

With no annotations, the description carries the full burden and does so: it discloses matching tolerance (case, accents, punctuation, Greek letters, word order, small typos), the discarding of far-fetched matches, the single-match-only return rule, the multi-match enumeration (including identical metabolites in several compartments), and the empty-result behavior. Returned fields are enumerated since no output schema exists.

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?

Well front-loaded — matching semantics first, result behavior second, prerequisites and alternatives last. It is a single dense block, though; the ambiguity protocol and result-shape rules would scan faster as a short list, and a few parentheticals (e.g. the Greek-letter example) could be trimmed without loss.

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

Completeness5/5

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

No output schema exists, so the description must describe results, and it does — id, identifier, match kind, chemical formula, compartment, cross-references, best-first ordering, and the not-found message. Combined with the prerequisite and sibling routing, an agent has everything needed to call this correctly and interpret the response.

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; the description adds real meaning beyond it by explaining that the name match is tolerant and fuzzy and that db_identifier is accepted exactly or as a fragment. It adds some value for output_format by tying it to the ambiguous-result case ('Format of the result when ambiguous'), though the enum itself already documents table/text.

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?

Opens with a specific verb and resource ('Fuzzy search of the metabolites of a MetExplore network by name'), plus the accepted alternative key (db_identifier). It explicitly names what it is not ('to search by chemical formula ... use search_metabolites_by_formula instead; to search by external identifier ... use search_metabolites_by_external_id'), so an agent can route between the three metabolite lookups without opening schemas.

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?

States the eligible query types, the prerequisite ('Requires an id_network (see search_organisms)'), and two concrete exclusions pointing to the correct sibling tools. It also gives the operational protocol for the ambiguous case ('ask the user which one they mean instead of choosing'), which is exactly the kind of decision rule an agent needs.

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.