Skip to main content
Glama

Search diseases (TogoVar)

togovar_search_disease
Read-only

Resolve disease terms to MONDO or MedGen IDs for variant search, with client-side reranking to prioritize exact label matches over loose token matches.

Instructions

Resolve a disease term to MONDO / MedGen IDs for variant search.

The returned mondo_id (or MedGen CUI) is what search_variant takes as disease_id. Both land directly on TogoMCP's existing mondo/medgen RDF databases and TogoID nodes.

The TogoVar endpoint does loose token matching with no relevance order (a query like "cystic fibrosis" also returns unrelated "Hepatic fibrosis…" rows), so this tool RE-RANKS client-side: exact label match first, then prefix, then whole-word, then loose token matches last. Each result carries match_type ("exact"|"prefix"|"word"|"fuzzy") — a top hit that is not exact means no exact label matched.

COVERAGE LIMIT: TogoVar only indexes diseases that have ClinVar/MGeND variant associations, so some canonical/parent MONDO terms are simply absent here (e.g. MONDO_0007254 "breast cancer" does NOT appear in these results). But a broad/parent MONDO ID still WORKS as a disease_id in search_variant even when unlisted here — the variant search resolves it via MONDO descendant expansion (MONDO_0007254 -> ~28,000 variants). So if you know or can resolve the canonical MONDO ID (e.g. via OLS4 or the mondo RDF database), pass it straight to search_variant; do not assume this resolver is exhaustive.

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_disease"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNoMax matches to return, in [1, 100]. Default 10.
queryNoDisease term, e.g. 'breast cancer'.

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv2.0.0

TDQS

A4.6/5.0
Behavior4/5

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

Beyond the readOnlyHint/openWorldHint annotations, it discloses the upstream endpoint's loose token matching, the client-side re-ranking order, and the match_type field semantics, plus a real coverage limitation (only ClinVar/MGeND-associated diseases are indexed, with a worked example). The one gap is that it does not warn about result count or latency relative to the limit parameter, but the behavioral picture is unusually complete for a read-only lookup.

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?

Content is front-loaded with purpose and downstream contract before the caveats, and each paragraph carries non-redundant information. It runs long and the coverage-limit block is verbose, but no sentence is pure filler.

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 values need no explanation, and the description covers the remaining risks: incomplete index coverage and how to work around it. For a two-parameter read-only resolver, nothing an agent needs in order to call it correctly is missing.

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 both parameters are already documented and the baseline is 3; however the description adds genuine meaning about the query parameter's matching behavior (loose token match, no relevance order, re-ranked client-side) and the match_type interpretation, which tells the agent how to phrase and read queries. The limit parameter is left entirely to 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?

The opening sentence states a specific verb and resource ('Resolve a disease term to MONDO / MedGen IDs') and names the exact purpose (variant search), which cleanly separates it from siblings like togovar_search_gene and togovar_search_variant. An agent can tell what this tool produces and who consumes it without inspecting the 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?

It explicitly routes output downstream ('The returned mondo_id ... is what search_variant takes as disease_id') and gives a concrete when-not-to-use rule: if a canonical MONDO ID is already known or resolvable via OLS4 or the mondo RDF database, skip this tool and pass it straight to search_variant. The exclusions are stated, not implied.

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