Skip to main content
Glama

Search Rhea reactions

search_rhea_entity
Read-only

Search the Rhea reaction database by keyword, fuzzy term, or field-scoped term across participants, equations, EC numbers, and cross-references; return matching reactions with selected columns.

Instructions

Search the Rhea reaction database by keyword and return matching reactions.

Matching is KEYWORD/FUZZY over reaction participants, equations, EC numbers, and cross-references — NOT exact-ID lookup. A term like "glucose" matches any reaction mentioning glucose. Field-scoped terms and wildcards are supported (e.g. ec:1.1.1.1, chebi:17234, uniprot:*). A chebi:-scoped term takes a BARE ChEBI number, not the CHEBI: prefix; a redundant chebi:CHEBI:17234 is auto-corrected to chebi:17234 (the prefixed form otherwise 500s).

RETURNS a dict {'total_count', 'has_more', 'results'} — NOT a bare list. 'total_count' is the number of reactions RETURNED (capped by limit, max 500); 'has_more' is true if more matched beyond the cap. Each result carries the requested columns as snake_cased keys (e.g. 'rhea-id' → 'rhea_id', 'chebi-id' → 'chebi_id'). On upstream failure returns {'error': ...} instead — check for 'error' before reading 'results'.

Valid columns (default rhea-id,equation): rhea-id, equation, chebi, chebi-id, ec, uniprot, go, pubmed, reaction-xref(EcoCyc|KEGG|MetaCyc| Reactome|M-CSA).

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "search_rhea_entity"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameNoAlias for `query` — pass ONE of query/search/term/keyword/keywords/search_term/name. Supplying two with different values raises ValueError.
termNoAlias for `query` — pass ONE of query/search/term/keyword/keywords/search_term/name. Supplying two with different values raises ValueError.
limitNoMaximum number of reactions returned (default 25). Must be between 0 and 500; a negative limit or one above 500 raises ValueError. `has_more` in the result signals whether more matched.
queryNoSearch string, e.g. "ATP", "glucose", "ec:1.1.1.1", "chebi:17234", "uniprot:*". REQUIRED — a blank query raises ValueError (it would otherwise dump an arbitrary slice of the whole database). Accepts aliases: `search`, `term`, `keyword`, `keywords`, `search_term`, `name` (supplying two different values raises ValueError).
searchNoAlias for `query` — pass ONE of query/search/term/keyword/keywords/search_term/name. Supplying two with different values raises ValueError.
columnsNoWhich fields to return, as a comma-separated string or a list of column IDs (case-INSENSITIVE). Default "rhea-id,equation". Each requested column becomes a key on every result row; hyphenated IDs are snake_cased in the output (e.g. `chebi-id` → `chebi_id`). The 13 valid column IDs and their output keys: - chebi -> chebi (';'-joined ChEBI names) - chebi-id -> chebi_id (';'-joined ChEBI ids) - ec -> ec (';'-joined EC numbers) - equation -> equation (textual reaction equation) - go -> go (GO id + label) - pubmed -> pubmed (';'-joined PubMed ids) - reaction-xref(EcoCyc) -> xref_ecocyc - reaction-xref(KEGG) -> xref_kegg - reaction-xref(M-CSA) -> xref_mcsa - reaction-xref(MetaCyc) -> xref_metacyc - reaction-xref(Reactome) -> xref_reactome - rhea-id -> rhea_id (e.g. RHEA:10000) - uniprot -> uniprot (count of annotated UniProtKB entries) An unknown column raises ValueError — the API would otherwise silently drop it and return an unannounced narrower table.rhea-id,equation
keywordNoAlias for `query` — pass ONE of query/search/term/keyword/keywords/search_term/name. Supplying two with different values raises ValueError.
keywordsNoAlias for `query` — pass ONE of query/search/term/keyword/keywords/search_term/name. Supplying two with different values raises ValueError.
search_termNoAlias for `query` — pass ONE of query/search/term/keyword/keywords/search_term/name. Supplying two with different values raises ValueError.

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed6 schema fields changedv2.34.1
    • addedInput schema / properties / keyword / description
      Added value: +"Alias for `query` — pass ONE of query/search/term/keyword/keywords/search_term/name. Supplying two with different values raises ValueError."
    • addedInput schema / properties / keywords / description
      Added value: +"Alias for `query` — pass ONE of query/search/term/keyword/keywords/search_term/name. Supplying two with different values raises ValueError."
    • addedInput schema / properties / name / description
      Added value: +"Alias for `query` — pass ONE of query/search/term/keyword/keywords/search_term/name. Supplying two with different values raises ValueError."
    • addedInput schema / properties / search / description
      Added value: +"Alias for `query` — pass ONE of query/search/term/keyword/keywords/search_term/name. Supplying two with different values raises ValueError."
    • addedInput schema / properties / search_term / description
      Added value: +"Alias for `query` — pass ONE of query/search/term/keyword/keywords/search_term/name. Supplying two with different values raises ValueError."
    • addedInput schema / properties / term / description
      Added value: +"Alias for `query` — pass ONE of query/search/term/keyword/keywords/search_term/name. Supplying two with different values raises ValueError."
  2. Changed8 schema fields changedv2.0.0
    • addedInput schema / properties / columns
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "string"
      +    },
      +    {
      +      "items": {
      +        "type": "string"
      +      },
      +      "type": "array"
      +    }
      +  ],
      +  "default": "rhea-id,equation",
      +  "description": "Which fields to return, as a comma-separated string or a list\nof column IDs (case-INSENSITIVE). Default \"rhea-id,equation\". Each\nrequested column becomes a key on every result row; hyphenated IDs\nare snake_cased in the output (e.g. `chebi-id` → `chebi_id`). The 13\nvalid column IDs and their output keys:\n  - chebi                   -> chebi        (';'-joined ChEBI names)\n  - chebi-id                -> chebi_id     (';'-joined ChEBI ids)\n  - ec                      -> ec           (';'-joined EC numbers)\n  - equation                -> equation     (textual reaction equation)\n  - go                      -> go           (GO id + label)\n  - pubmed                  -> pubmed       (';'-joined PubMed ids)\n  - reaction-xref(EcoCyc)   -> xref_ecocyc\n  - reaction-xref(KEGG)     -> xref_kegg\n  - reaction-xref(M-CSA)    -> xref_mcsa\n  - reaction-xref(MetaCyc)  -> xref_metacyc\n  - reaction-xref(Reactome) -> xref_reactome\n  - rhea-id                 -> rhea_id      (e.g. RHEA:10000)\n  - uniprot                 -> uniprot      (count of annotated UniProtKB entries)\nAn unknown column raises ValueError — the API would otherwise\nsilently drop it and return an unannounced narrower table."
      +}
    • changedInput schema / properties / limit / default
      Previous value: -100New value: +25
    • addedInput schema / properties / limit / description
      Added value: +"Maximum number of reactions returned (default 25). Must be\nbetween 0 and 500; a negative limit or one above 500 raises\nValueError. `has_more` in the result signals whether more matched."
    • addedInput schema / properties / query / description
      Added value: +"Search string, e.g. \"ATP\", \"glucose\", \"ec:1.1.1.1\",\n\"chebi:17234\", \"uniprot:*\". REQUIRED — a blank query raises\nValueError (it would otherwise dump an arbitrary slice of the whole\ndatabase). Accepts aliases: `search`, `term`, `keyword`, `keywords`,\n`search_term`, `name` (supplying two different values raises ValueError)."
    • addedOutput schema / additionalProperties
      Added value: +true
    • removedOutput schema / properties
      Removed value: -{
      -  "result": {
      -    "type": "string"
      -  }
      -}
    • removedOutput schema / required
      Removed value: -[
      -  "result"
      -]
    • removedOutput schema / x-fastmcp-wrap-result
      Removed value: -true
  3. Changed2 schema fields changedv0.1.1
    • removedOutput schema / properties / result / items
      Removed value: -{
      -  "additionalProperties": {
      -    "type": "string"
      -  },
      -  "type": "object"
      -}
    • changedOutput schema / properties / result / type
      Previous value: -"array"New value: +"string"
  4. First observedv0.1.0

TDQS

A4.6/5.0
Behavior5/5

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

Annotations only declare readOnlyHint and openWorldHint; the description goes well beyond them by disclosing the exact return envelope ({'total_count','has_more','results'}), the fact that total_count is capped by limit (max 500) rather than being a true match count, that failures surface as {'error': ...} and must be checked first, and that a prefixed `chebi:CHEBI:` term triggers a 500 upstream. This is unusually rich disclosure of mutation-free but failure-prone behavior.

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 most decision-relevant fact (keyword/fuzzy, not exact-ID) and organized into RETURNS and valid-columns sections, so it is easy to scan. It runs long and repeats the column list that the input schema already enumerates in full, which is the main slack.

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?

For a 9-parameter tool with all-optional aliased parameters, the description covers the required-query constraint, the alias collision rule, the limit cap, the output envelope and the error path. An agent has everything needed to call it correctly and to interpret the response without consulting an output schema.

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 already 100%, so the baseline is 3; the description still adds value by explaining the alias cluster (query/search/term/keyword/keywords/search_term/name must be mutually consistent), the absolute 500 cap on `limit`, the default columns, and the snake_casing of hyphenated column IDs. Much of the column-to-output-key mapping duplicates the schema, so it is additive rather than fully novel.

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 states a specific verb and resource ("Search the Rhea reaction database") and immediately pins the matching mode as KEYWORD/FUZZY over reaction participants, equations, EC numbers and cross-references, explicitly contrasting it with exact-ID lookup. That combination lets an agent distinguish this from the sibling search_*_entity tools (PDB/Reactome/UniProt) purely on the stated resource and search semantics.

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 concrete usage patterns: bare keywords like "glucose", field-scoped terms (`ec:1.1.1.1`, `chebi:17234`, `uniprot:*`), and the correction rule for a redundant `chebi:CHEBI:` prefix. What is missing is explicit routing guidance — nothing says when to prefer this over a sibling search tool or when a keyword search is a poor fit versus an ID conversion tool like togoid_identifyId.

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