Skip to main content
Glama

Ucsc Sequence

ucsc_sequence
Read-onlyIdempotent

"What is the DNA sequence at [chr:start-end]" / "get the reference bases for [region] in hg38" / "pull the sequence around [variant position]", AUTHORITATIVE reference DNA for a genomic interval from the UCSC assembly, returned as a plain base string with its GC content. Use it to check what the reference allele actually is at a position, to extract primer/probe context, or to pull a promoter or exon sequence. The assembly argument is required because the same coordinates return different bases in hg19 and hg38.

Example tool call

This call uses example arguments supplied in the tool’s input schema.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "end": 140753390,
      "chrom": "chr7",
      "start": 140753330,
      "genome": "hg38"
    },
    "name": "ucsc_sequence"
  }
}

Input Schema

NameRequiredDescriptionDefault
endYesEnd position, 0-based and EXCLUSIVE (so end - start = length in bases).
chromYesChromosome in UCSC naming, e.g. "chr7", "chrX". The "chr" prefix is required.
startYesStart position, 0-BASED and inclusive. The Genome Browser UI and most papers are 1-based, so subtract 1 from a position you copied out of the browser location box.
genomeYesREQUIRED. UCSC assembly ID, the genome build your coordinates are in. Human: "hg38" (= GRCh38, current) or "hg19" (= GRCh37, what most older papers, dbSNP dumps and clinical spreadsheets use). Mouse: "mm39"/"mm10". These are DIFFERENT coordinate systems: the same chrom/start/end is valid in every build, so a wrong build returns confident annotations for a different gene instead of an error. Call ucsc_genomes to list the assembly IDs for a species.
revCompNoReturn the reverse complement, for a gene on the minus strand, this is the sense strand. Default false.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • changedInput schema / properties / genome / description
      Previous value: -"REQUIRED. UCSC assembly ID — the genome build your coordinates are in. Human: \"hg38\" (= GRCh38, current) or \"hg19\" (= GRCh37, what most older papers, dbSNP dumps and clinical spreadsheets use). Mouse: \"mm39\"/\"mm10\". These are DIFFERENT coordinate systems: the same chrom/start/end is valid in every build, so a wrong build returns confident annotations for a different gene instead of an error. Call ucsc_genomes to list the assembly IDs for a species."New value: +"REQUIRED. UCSC assembly ID, the genome build your coordinates are in. Human: \"hg38\" (= GRCh38, current) or \"hg19\" (= GRCh37, what most older papers, dbSNP dumps and clinical spreadsheets use). Mouse: \"mm39\"/\"mm10\". These are DIFFERENT coordinate systems: the same chrom/start/end is valid in every build, so a wrong build returns confident annotations for a different gene instead of an error. Call ucsc_genomes to list the assembly IDs for a species."
    • changedInput schema / properties / revComp / description
      Previous value: -"Return the reverse complement — for a gene on the minus strand, this is the sense strand. Default false."New value: +"Return the reverse complement, for a gene on the minus strand, this is the sense strand. Default false."
  2. First observed

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, non-destructive, open-world behavior, so the safety profile is covered. The description adds real value beyond that: the return is a plain base string with GC content, and the assembly argument is mandatory because identical coordinates yield different bases across builds. It does not discuss error behavior for out-of-range coordinates, which keeps it from a 5.

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?

It is front-loaded with example queries, then states the purpose, then use cases, then the assembly caveat. Every sentence carries information, though the three quoted example phrasings are somewhat redundant with the use-case sentence that follows.

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?

With no output schema, the description correctly discloses the return shape (plain base string plus GC content). Combined with the fully documented input schema and annotations, an agent has what it needs to call this correctly; only edge-case behavior (invalid regions, very large intervals) is unaddressed.

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 the schema already documents 0-based/exclusive end, the required 'chr' prefix, and the genome build semantics. The description reinforces the assembly requirement but adds no syntax or format detail beyond the schema, so the baseline 3 applies.

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 description names a specific verb and resource ('AUTHORITATIVE reference DNA for a genomic interval from the UCSC assembly') and opens with three concrete user-phrasings that map to the tool. It is clearly distinguishable from siblings like ucsc_track_data or ucsc_tracks, which deal with tracks rather than raw bases.

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?

It gives explicit use cases: checking the reference allele at a position, extracting primer/probe context, and pulling promoter or exon sequence. It also points to ucsc_genomes for listing assembly IDs. It stops short of stating when NOT to use it (e.g. versus a variant-annotation tool), so it is strong but not exhaustive.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.