Skip to main content
Glama

Compare Repeat Length to STRchive Ranges

compare_repeat_length
Read-onlyIdempotent

Compare an observed repeat count for a locus against STRchive disease ranges and list every matching range; flags motif-dependent loci. Descriptive only, not a diagnosis.

Instructions

Compare an observed repeat count (repeat units, i.e. motif copies) with the ranges STRchive states for one locus and list every range that contains it (overlapping ranges can both match; none may match). Descriptive only, NOT a diagnosis. motif_dependent=true flags loci (e.g. RFC1) where motif identity, not length alone, decides the category. Signature: compare_repeat_length(locus, repeat_count).

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": {
      "locus": "<locus>",
      "repeat_count": "<repeat_count>"
    },
    "name": "compare_repeat_length"
  }
}

Input Schema

NameRequiredDescriptionDefault
locusYesSTRchive locus id (e.g. HD_HTT), gene symbol (e.g. HTT), or the source's disease abbreviation (e.g. SCA3). Case-insensitive. A gene with several loci (ARX, HOXA13), or an abbreviation shared by numbered types (FRA -> FRA2A, FRA7A, ...), returns ambiguous_query with the locus ids to choose from.
repeat_countYesObserved allele size in repeat units (copies of the motif), not base pairs.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv0.1.3
    • changedInput schema / properties / locus / description
      Previous value: -"STRchive locus id (e.g. HD_HTT), gene symbol (e.g. HTT), or the source's disease abbreviation (e.g. SCA3). Case-insensitive. A gene with several loci (ARX, HOXA13) returns ambiguous_query with the locus ids to choose from."New value: +"STRchive locus id (e.g. HD_HTT), gene symbol (e.g. HTT), or the source's disease abbreviation (e.g. SCA3). Case-insensitive. A gene with several loci (ARX, HOXA13), or an abbreviation shared by numbered types (FRA -> FRA2A, FRA7A, ...), returns ambiguous_query with the locus ids to choose from."
  2. First observedv0.1.1

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already cover read-only, idempotent, non-destructive and open-world behavior, and the description adds real value on top: multiple overlapping ranges may match, zero matches is possible, and motif_dependent loci (e.g. RFC1) are categorized by motif identity rather than length. It does not describe the shape of a returned range entry, which matters since there is no output schema.

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 core action and the scope caveat, with no filler. The trailing 'Signature: compare_repeat_length(locus, repeat_count)' line restates the required parameters already given by the schema and is the one sentence that does not earn its place.

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?

Covers the miss cases, the overlapping-range case, and the diagnostic caveat, which is strong for a two-parameter read-only tool with no output schema. What a returned range actually contains (classification labels, citations) is left unstated, but the essentials for calling it correctly are present.

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 coverage is 100%, so locus resolution rules (ids, gene symbols, ambiguous abbreviations) and repeat_count units are already documented. The description restates that repeat_count is motif copies and adds the motif_dependent concept, but adds no syntax or edge-case 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 precise verb and resource: compare an observed repeat count against the ranges STRchive publishes for one locus and list every range containing it. The parenthetical about overlapping and zero matches further pins down what the operation yields, so an agent can tell this apart from a plain locus lookup.

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?

The 'Descriptive only, NOT a diagnosis' caveat and the motif_dependent note give clear context on how results may be used and where length alone is insufficient. It stops short of naming siblings such as get_locus or search_loci as the alternative when the agent wants metadata rather than a comparison.

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