Skip to main content
Glama

Get Reference Sequence

get_reference_sequence
Read-only

Fetch reference DNA sequence for a genomic region on a specified assembly, returning soft-masked bases with repeat regions in lowercase. Use strand '-' to get the reverse complement.

Instructions

Return reference DNA for [start, end) (<= 10,000 bp) on an explicit assembly. Soft-masked: lowercase bases are repeat-masked. strand '-' returns the reverse complement. Signature: get_reference_sequence(assembly, chrom, start, end, strand=).

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>"
    },
    "name": "get_reference_sequence"
  }
}

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.
startYes0-based start (first base minus one). 1-based position P is start=P-1.
strandNo'+' for the reference strand (default), '-' for reverse complement.
assemblyYesGenome assembly: hg38 (=GRCh38) or hg19 (=GRCh37). Never lifted over.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.3.0

TDQS

A3.7/5.0
Behavior4/5

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

Annotations only declare readOnlyHint and openWorldHint, so the description carries the rest of the burden and does so well: it discloses soft-masking (lowercase = repeat-masked), the reverse-complement behavior for strand '-', and the hard 10,000 bp limit. It stops short of covering error behavior for out-of-range coordinates or the exact return type, which keeps it below 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?

The most important facts (what is returned, the size cap, the assembly requirement) are front-loaded in the first sentence, and masking and strand notes follow compactly. The trailing "Signature:" line largely restates the schema's parameter order and is the one element that does not fully 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?

With no output schema, the description does the necessary work of explaining that the return is a DNA string, that it is soft-masked, and that strand flips it — enough to consume the result correctly. It is only slightly thin on failure modes (invalid interval, oversized request) for a tool whose main risk is a rejected call.

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 already 100%, so start/end/strand/assembly are fully documented in structured data. The description reinforces the two non-obvious semantics — lowercase masking and strand '-' producing a reverse complement — but adds no coordinate-format or alias detail beyond what the schema states, so the baseline of 3 applies.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description opens with a specific verb and resource ("Return reference DNA") and immediately bounds the scope with the half-open interval and the 10,000 bp cap, so an agent knows exactly what it gets back. It never names a sibling or states how it differs from get_region_annotations or search_genome, which is what keeps it from a 5.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Constraints such as "on an explicit assembly," the 10,000 bp ceiling, and the no-lift-over rule imply when this tool is appropriate, and an agent can infer that it is the raw-sequence counterpart to annotation tools. There is no explicit when-to-use or when-not-to-use statement and no named alternative, so guidance remains implicit.

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