Skip to main content
Glama

MetExplore

Search metabolites by chemical formula in a MetExplore network

search_metabolites_by_formula

Lists ALL the metabolites of a MetExplore network whose chemical formula matches the given molecular formula (element order does not matter: C3H3O4 = H3C3O4). Use this tool whenever the user gives a chemical formula such as C6H12O6, C3H3O4 or CO2, instead of search_metabolites (which only searches names). The result is exhaustive and lists every match with its id, identifier, name, formula, charge, compartment and cross-references. Set ignore_hydrogens to also find the other protonation states of the same compound. 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>",
      "formula": "<formula>"
    },
    "name": "search_metabolites_by_formula"
  }
}

Input Schema

NameRequiredDescriptionDefault
formulaYesChemical (molecular) formula to look for, in any element order, e.g. 'C3H3O4' or 'C6H12O6'
id_networkYesId of the MetExplore network (obtained via search_organisms)
output_formatNoFormat of the result: markdown table or text. Default: table.
ignore_hydrogensNoIf true, hydrogen counts are ignored so every protonation state matches (e.g. C3H4O4 also finds C3H3O4 and C3H2O4). Default: false (exact formula).

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 does well: it promises exhaustive results, enumerates the returned fields (id, identifier, name, formula, charge, compartment, cross-references) and explains the protonation-state behavior of ignore_hydrogens. It does not explicitly state that the operation is read-only or what happens when the network id is invalid, so it stops short of full coverage.

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?

The purpose and the sibling exclusion are front-loaded, and each subsequent sentence adds a distinct fact (exhaustive results, returned fields, ignore_hydrogens, prerequisite). Slightly dense at four sentences, but nothing is redundant enough to cut.

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 search tool with no output schema, the description covers what is needed: matching semantics, result exhaustiveness, the shape of returned records, and the network-id prerequisite. Only the output_format option and failure behavior are left to the schema or unstated.

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%, so every parameter is already documented, including element-order tolerance, the default output format and the ignore_hydrogens example. The description largely restates those semantics (element order, protonation states) rather than adding new meaning, so the 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 ('Lists ALL the metabolites of a MetExplore network whose chemical formula matches') and explicitly scopes the match semantics (element order irrelevant). It also names the sibling it must not be confused with, so an agent can pick it without opening a 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 positive trigger ('whenever the user gives a chemical formula such as C6H12O6...'), an explicit exclusion of the alternative ('instead of search_metabolites, which only searches names'), a prerequisite ('Requires an id_network (see search_organisms)') and a conditional for ignore_hydrogens.

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.