Skip to main content
Glama

Search human variants (TogoVar)

togovar_search_variant
Read-only

Search human genome variants by population frequency, clinical significance, consequence, gene, disease, or genomic region, and optionally return aggregate counts.

Instructions

Search TogoVar for human genome variants with population frequencies.

TogoVar integrates allele frequencies from gnomAD, ToMMo (Japanese), NCBN, GEM-J, JGA, BioBank Japan, and JoGo, plus ClinVar + MGeND clinical significance and SIFT/PolyPhen/AlphaMissense predictions — data with no SPARQL counterpart elsewhere in TogoMCP.

All filters are optional and combined with AND. Supply zero filters to browse; but scope tightly — the database holds ~1.2 billion variants.

COUNTS: total is the size of the whole REST backend (1,229,026,068 on 2026-10-09) and is constant across queries; filtered is the count matching your filters. TogoMCP's togovar SPARQL graph is now about the same size (1,227,614,941), but the two are not the same set, so do not expect a REST count and a SPARQL COUNT to agree to the last variant.

PAGING: an INTEGER offset is capped at offset + limit <= 10,000 (HTTP 400 beyond). To page further, use keys: every full page (as many rows as limit) returns next_offset, the [chromosome, position, reference, alternate] key of its last row. Pass it back unchanged as offset with the same filters to get the rows strictly after it, sorted by position — no 10,000 cap. A page shorter than limit is the last one and carries no next_offset.

STATISTICS SCOPE (stat=True): all facets are scoped to the filtered set and count VARIANTS, but a variant can fall under several values. type counts each variant once (sums to filtered); dataset once per cohort; consequence once per consequence term on any of its transcripts; significance once per classification label in any of its records (any condition or submitter). So each value is <= filtered, but consequence/ significance SUMS exceed it, and adding labels (P + LP) double-counts variants that carry both. See statistics_caveats for the per-facet rule.

ROUND-TRIP TO SPARQL: use variant_iri — it is the subject IRI in the togovar SPARQL graph and is present on every row except one with a very long allele. Do NOT gate on tgv_id: most variants have none (it is null), and they are in SPARQL all the same. About 0.1% of REST variants have no SPARQL node, so an empty result for one IRI is possible and is not an error.

TWO-STEP WORKFLOW for gene/disease filters: 1. search_gene("ALDH2") -> hgnc_id -> pass as gene_hgnc_id. 2. search_disease("breast cancer") -> mondo_id -> pass as disease_id.

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

Input Schema

NameRequiredDescriptionDefault
statNoIf True, also return match counts (`total`, `filtered`) and the aggregate breakdown (counts by dataset, type, consequence, significance). REQUIRED to get a count — e.g. "how many variants match". Left False by default because computing the aggregation is the slow part of the query; use stat=False when you only need rows. See STATISTICS SCOPE above — every facet is scoped to the filtered set, but they count at different granularities, so only `type` sums to `filtered`.
stopNoRegion end, 1-based inclusive. REQUIRES `chromosome`. Pair with `start`; mutually exclusive with `position`.
limitNoMax variant rows to return, in [0, 1000]. Default 100.
startNoRegion start, 1-based inclusive. REQUIRES `chromosome`. Pair with `stop`; mutually exclusive with `position`.
offsetNoRows to skip (int, offset + limit <= 10,000), OR the `next_offset` array [chromosome, position, reference, alternate] from the previous page, which pages past 10,000.
tgv_idNoTogoVar variant ID(s), e.g. "tgv16331".
datasetNoFrequency panel for a frequency filter, e.g. "gnomad_genomes", "gnomad_exomes", "tommo", "tommo_jsv1", "ncbn", "gem_j_wga", "jga_wes", "jga_snp", "bbj1k", "bbj2k", "jogo". Sub-populations allowed (e.g. "gnomad_genomes.eas", "ncbn.jpn", "jga_wgs.jgad000758"). Two names that look valid match nothing: the bare "bbj_riken" is rejected (use "bbj1k"/"bbj2k"), and a filter on the bare "jga_wgs" returns 0 variants although rows report it — filter on "jga_wgs.jgad000758" or "jga_wgs.jgad000868" instead (verified 2026-10-09).
positionNoSingle 1-based site (mutually exclusive with start/stop).
chromosomeNo"1"-"22", "X", "Y", "MT". Required for a positional filter.
disease_idNoMONDO ID(s) (e.g. "MONDO_0007254") or MedGen CUI(s) from `search_disease`.
consequenceNoSO consequence term or label, e.g. "missense_variant", "stop_gained", "frameshift_variant".
gene_hgnc_idNoHGNC ID (integer) from `search_gene` (NOT a symbol).
variant_typeNo"SNV", "INS", "DEL", "INDEL" (delins) or "MNV" (substitution), any case, or the SO accession (e.g. "SO_0001483").
max_frequencyNoMaximum allele frequency in [0, 1], applied to the cohort named by `dataset`. E.g. dataset='tommo', max_frequency=0.01 for rare-in-Japan.
min_frequencyNoMinimum allele frequency in [0, 1], applied to the cohort named by `dataset` — set `dataset` too, or the bound has no panel to apply to.
disease_sourceNoRestrict disease link source(s): "clinvar", "mgend".
include_transcriptsNoIf True, add a `transcripts` list to each row with the per-transcript VEP annotation the REST backend already carries: transcript/gene IDs, SO consequence(+labels), HGVS c/p/g, and per-transcript SIFT/PolyPhen/AlphaMissense. Default False — a variant in a transcript-dense locus (e.g. BRCA1) can carry 400+ transcript annotations, which would dominate the response. Note this means HGVS and per-transcript predictions do NOT require a SPARQL round-trip.
significance_sourceNoRestrict significance source(s): "clinvar", "mgend".
include_full_allelesNoIf True, return full REF/ALT sequences even for large structural variants. Default False summarizes alleles over ~50 bp as "<head>…(<n> bp)" to keep the response inline-readable; `ref_length`/`alt_length` always give the true lengths.
clinical_significanceNoe.g. "pathogenic", "likely_pathogenic", "benign", "uncertain_significance", "risk_factor".

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed12 schema fields changedv2.34.1
    • changedInput schema / properties / dataset / description
      Previous value: -"Frequency panel for a frequency filter, e.g. \"gnomad_genomes\",\n\"gnomad_exomes\", \"tommo\", \"ncbn\", \"gem_j_wga\", \"jga_wgs\", \"jga_wes\",\n\"jga_snp\", \"bbj_riken\". Sub-populations allowed (e.g.\n\"gnomad_genomes.eas\", \"ncbn.jpn\")."New value: +"Frequency panel for a frequency filter, e.g. \"gnomad_genomes\",\n\"gnomad_exomes\", \"tommo\", \"tommo_jsv1\", \"ncbn\", \"gem_j_wga\", \"jga_wes\",\n\"jga_snp\", \"bbj1k\", \"bbj2k\", \"jogo\". Sub-populations allowed (e.g.\n\"gnomad_genomes.eas\", \"ncbn.jpn\", \"jga_wgs.jgad000758\"). Two names\nthat look valid match nothing: the bare \"bbj_riken\" is rejected\n(use \"bbj1k\"/\"bbj2k\"), and a filter on the bare \"jga_wgs\" returns 0\nvariants although rows report it — filter on \"jga_wgs.jgad000758\" or\n\"jga_wgs.jgad000868\" instead (verified 2026-10-09)."
    • changedInput schema / properties / max_frequency / anyOf
      Previous value: -[
      -  {
      -    "type": "number"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]New value: +[
      +  {
      +    "maximum": 1,
      +    "minimum": 0,
      +    "type": "number"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • addedInput schema / properties / max_frequency / description
      Added value: +"Maximum allele frequency in [0, 1], applied to the cohort named by `dataset`. E.g. dataset='tommo', max_frequency=0.01 for rare-in-Japan."
    • changedInput schema / properties / min_frequency / anyOf
      Previous value: -[
      -  {
      -    "type": "number"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]New value: +[
      +  {
      +    "maximum": 1,
      +    "minimum": 0,
      +    "type": "number"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • addedInput schema / properties / min_frequency / description
      Added value: +"Minimum allele frequency in [0, 1], applied to the cohort named by `dataset` — set `dataset` too, or the bound has no panel to apply to."
    • addedInput schema / properties / offset / anyOf
      Added value: +[
      +  {
      +    "type": "integer"
      +  },
      +  {
      +    "items": {
      +      "anyOf": [
      +        {
      +          "type": "string"
      +        },
      +        {
      +          "type": "integer"
      +        }
      +      ]
      +    },
      +    "type": "array"
      +  }
      +]
    • changedInput schema / properties / offset / description
      Previous value: -"Rows to skip (pagination). Default 0."New value: +"Rows to skip (int, offset + limit <= 10,000), OR the `next_offset` array [chromosome, position, reference, alternate] from the previous page, which pages past 10,000."
    • removedInput schema / properties / offset / minimum
      Removed value: -0
    • removedInput schema / properties / offset / type
      Removed value: -"integer"
    • addedInput schema / properties / start / description
      Added value: +"Region start, 1-based inclusive. REQUIRES `chromosome`. Pair with `stop`; mutually exclusive with `position`."
    • addedInput schema / properties / stop / description
      Added value: +"Region end, 1-based inclusive. REQUIRES `chromosome`. Pair with `start`; mutually exclusive with `position`."
    • changedInput schema / properties / variant_type / description
      Previous value: -"\"snv\", \"ins\", \"del\", \"indel\", \"sub\"."New value: +"\"SNV\", \"INS\", \"DEL\", \"INDEL\" (delins) or \"MNV\"\n(substitution), any case, or the SO accession (e.g. \"SO_0001483\")."
  2. Addedv2.0.0

TDQS

A4.4/5.0
Behavior3/5

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

Annotations cover only readOnly/openWorld, so the description carries real weight and mostly delivers: total vs filtered count semantics, the offset+limit<=10,000 cap and keyset paging via next_offset, statistics facet double-counting rules, and the ~0.1% REST-without-SPARQL-node caveat. However it stops short of describing the response envelope beyond the count fields and defers facet rules to an external `statistics_caveats` field the agent cannot see here.

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 purpose sentence followed by clearly labelled sections (COUNTS, PAGING, STATISTICS SCOPE, ROUND-TRIP, TWO-STEP WORKFLOW), which makes a dense description scannable. It runs long and a few points (exact REST/SPARQL graph sizes, the date-stamped constant count) add bulk without changing agent behavior.

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 20-parameter, no-required-parameter search tool with an output schema and annotations already present, the definition covers the remaining ambiguity: paging limits, count semantics, cross-tool ID resolution, and linkage to the SPARQL graph. Nothing an agent needs 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 the 3 baseline applies, but the description adds genuine meaning on top: it explains why stat defaults to False (aggregation is the slow part), how next_offset must be passed back unchanged with the same filters, that dataset must be set for min_frequency to apply, and the offset cap behavior.

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 ("Search TogoVar for human genome variants with population frequencies") and immediately differentiates from the SPARQL path ("data with no SPARQL counterpart elsewhere in TogoMCP"). An agent can distinguish this from search_gene/search_disease/run_sparql without opening 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?

Gives explicit routing rules: all filters are AND-combined, zero filters browses, but scope tightly given ~1.2B variants, use variant_iri not tgv_id for SPARQL round-trips, and a concrete two-step workflow calling search_gene and search_disease first to obtain IDs. When-to-use and when-not-to-use are both stated.

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