Skip to main content
Glama

Get Region Annotations

get_region_annotations
Read-only

Retrieve UCSC track annotations overlapping a genomic window on hg38 or hg19 to inspect genes, repeats, regulatory elements, conservation, variants, and problematic regions.

Instructions

Return records of one allowlisted UCSC track overlapping a window [start, end) on an explicit assembly: repeats (rmsk, simpleRepeat), segmental duplications (genomicSuperDups), problematic regions (encBlacklist, grcExclusions, GIAB difficult/low-mappability), phyloP, ENCODE cCREs, CpG islands, MANE/GENCODE/RefSeq transcripts, SpliceVarDB/Varaico variants. An empty problematic-region result means the window is not flagged. Native UCSC fields are kept and each record gains a normalized position; transcripts also gain exons numbered in transcript order (strand-aware), segmental duplications an other_position for the partner copy. total is exact (null only past the upstream item cap); truncated is honest. Windows: <= 2,000,000 bp, signal tracks <= 5,000 bp. Signature: get_region_annotations(assembly, chrom, start, end, track, limit=).

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": {
      "assembly": "<assembly>",
      "chrom": "<chrom>",
      "start": "<start>",
      "end": "<end>",
      "track": "<track>"
    },
    "name": "get_region_annotations"
  }
}

Input Schema

NameRequiredDescriptionDefault
endYes0-based exclusive end (= the 1-based last base). Must be > start.
chromYesChromosome, UCSC style (chr17, chrX, chrM); '17'/'X'/'MT' are accepted.
limitNoMax records to return (default 100).
startYes0-based start (first base minus one). 1-based position P is start=P-1.
trackYesUCSC track name from list_tracks. phyloP is phyloP100way on hg38 and phyloP100wayAll on hg19 (either name works on both); cCREregistry/encodeCcreCombined/spliceVarDb are hg38-only.
assemblyYesGenome assembly: hg38 (=GRCh38) or hg19 (=GRCh37). Never lifted over.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.3.0

TDQS

A4.6/5.0
Behavior5/5

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

Goes well past the readOnly/openWorld annotations: it explains that an empty problematic-region result is meaningful (window not flagged), that `total` is exact except past the upstream item cap, and that `truncated` is honest. It also documents field normalization (position, strand-aware exons, other_position for the duplication partner), which materially affects interpretation.

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 purpose and then the track list, semantics, and limits; almost every clause carries information. It is a dense single paragraph, however, and the signature restatement at the end is largely redundant with the schema.

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?

With no output schema, the description takes on the return-value burden and discharges it: normalized position, exon numbering, other_position, total, and truncated are all explained. Limits and assembly behavior are also covered, leaving nothing essential for correct invocation unstated.

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 baseline is 3, but the description adds real meaning beyond it: the per-track window cap for signal tracks, the phyloP name mapping between hg38 and hg19, and the hg38-only track caveat. These are constraints the schema alone does not convey.

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 ('Return records of one allowlisted UCSC track overlapping a window [start, end) on an explicit assembly') and enumerates the track families it covers. An agent can distinguish this from get_reference_sequence or search_genome without opening any schema.

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?

Gives clear operational context: the track must come from list_tracks, the assembly must be explicit and never lifted over, and window limits are stated (<= 2,000,000 bp; signal tracks <= 5,000 bp). It does not explicitly name when a sibling such as get_reference_sequence should be preferred, so no full exclusion guidance.

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