Skip to main content
Glama

MetExplore

Count the reactions involving a metabolite

count_reactions_for_metabolite

Returns the number and list of reactions (id, db_identifier, name) in the network that involve a given metabolite. The metabolite must first be resolved to an internal id via search_metabolites.

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>",
      "id_metabolite": "<id_metabolite>"
    },
    "name": "count_reactions_for_metabolite"
  }
}

Input Schema

NameRequiredDescriptionDefault
id_networkYesId of the MetExplore network
id_metaboliteYesInternal id of the metabolite (obtained via search_metabolites), not its db_identifier
output_formatNoFormat of the list of reactions: markdown table or text. Default: table.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4/5.0
Behavior4/5

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

No annotations are provided, so the description carries the full burden, and it does disclose the return payload (a count plus a list of id/db_identifier/name triples) and the id-resolution precondition. The read-only nature is conveyed by "Returns," but there is no statement about error behavior for an unknown or mismatched metabolite/network id, or whether the list is truncated.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Two sentences, front-loaded with what is returned and followed by the precondition. Every clause earns its place and there is no redundant restatement of the name or title.

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 correctly supplies the return shape, and with full schema coverage the parameters need no further explanation. Only minor gaps remain: output_format's effect on the result is left entirely to the schema, and failure modes are unaddressed.

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%, with id_network, id_metabolite and the output_format enum all documented in the schema itself. The description reinforces that the metabolite id must be the internal id ("not its db_identifier" in the schema), but adds no new meaning and never mentions output_format. Baseline 3 is appropriate.

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?

The description gives a specific verb and resource ("Returns the number and list of reactions") plus the scoping condition ("in the network that involve a given metabolite") and even enumerates the returned fields (id, db_identifier, name). It is clearly a count/list tool rather than a search tool like its siblings, though it never explicitly names a sibling to contrast with.

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 states an explicit prerequisite: "The metabolite must first be resolved to an internal id via search_metabolites," which routes the agent to the correct sibling before calling this tool. It does not discuss when-not-to-use it or what to do when a metabolite has no reactions, so the guidance is clear but not exhaustive.

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.