Skip to main content
Glama

Search genes (TogoVar)

togovar_search_gene
Read-only

Resolve a human gene symbol or alias to its HGNC ID for variant search, ranking exact symbol matches first so you can pick the correct ID for downstream queries.

Instructions

Resolve a human gene symbol/alias to its HGNC ID for variant search.

This is the FIRST step of the two-step variant workflow: the hgnc_id returned here is what search_variant takes as gene_hgnc_id.

The TogoVar endpoint does loose token matching with no relevance order (it returns the same set for "ALDH2" and the non-existent "ALDH2A1"), so this tool RE-RANKS client-side: exact symbol match first, then prefix, then other matches. Each result carries match_type ("exact"|"prefix"|"word"|"fuzzy") against your query — CHECK IT: if the top hit is not exact, the exact symbol you asked for does not exist and the rows are loose false positives, so do not blindly feed the first hgnc_id downstream. (The endpoint echoes the matched token as symbol and the HGNC approved gene name as name; it does not expose approved-vs-alias status, so use name to sanity-check.)

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": "togovar_search_gene"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNoMax matches to return, in [1, 100]. Default 10.
queryNoGene symbol or alias, e.g. 'ALDH2'.

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv2.0.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 that the endpoint does loose token matching with no relevance order, that results are re-ranked client-side (exact > prefix > other), and that approved-vs-alias status is not exposed. This is exactly the behavioral context an agent needs to interpret results correctly.

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-loads the core purpose and the workflow role in the first two short sentences, then adds the matching caveat. The parenthetical note on symbol vs. name is dense but every clause is load-bearing; the whole is slightly verbose but not padded.

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?

An output schema exists, so return-value explanation isn't required, and the description covers the remaining gaps: ranking behavior, match_type interpretation, and the symbol/name distinction. For a 2-parameter read-only lookup with annotations, nothing an agent needs is missing.

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 both query and limit are already documented in the schema, making 3 the baseline. The description reinforces that the query is a gene symbol/alias and hints at match semantics via match_type, but adds no format or syntax detail beyond 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?

States a specific verb and resource ('resolve a human gene symbol/alias to its HGNC ID') and immediately distinguishes its role from the sibling togovar_search_variant by naming it as the second step of the workflow. An agent knows exactly what this tool produces and why.

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?

Explicitly says this is the FIRST step of a two-step workflow and that the returned hgnc_id feeds search_variant's gene_hgnc_id. It also gives an explicit when-not/guardrail instruction: do not blindly pass the top hgnc_id downstream if match_type isn't 'exact'.

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