Skip to main content
Glama
rewire-bio

genomics-mcp

Official
by rewire-bio

get_reads

Read-only

Fetch aligned reads overlapping a genomic interval from indexed BAM/CRAM files. Apply samtools-style flag filters and mapping quality thresholds.

Instructions

Alignments overlapping an interval from indexed BAM/CRAM. Flag filters follow samtools -f/-F. CRAM needs a matching reference unless self-contained. Not implemented in this build: returns error code 'unsupported' (E4).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
fileYes
intervalYes
referenceNo
max_recordsNoLower the record limit.
exclude_flagsNo
require_flagsNo
include_sequenceNo
min_mapping_qualityNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
dataNo
errorNoSet when status is error.
errorsNoPer-source failures in partial results.
limitsNo
statusYes
warningsNo
operationYes
provenanceNo
truncationNo
source_statusNo
schema_versionNo1

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.4/5.0
Behavior5/5

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

Discloses the critical trait that the tool is not implemented and returns 'unsupported' (E4), going far beyond what readOnlyHint/openWorldHint annotations convey. Also explains flag filter semantics and the CRAM reference requirement. No contradiction with annotations.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Three tight sentences, front-loaded with the core function, then flag behavior, CRAM caveat, and implementation status. Every sentence earns its place with no filler.

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?

For a tool that returns an error code in this build, the description tells an agent what it would do, its input requirements, key options, and that it cannot be used. Since an output schema exists, return-value documentation is unnecessary. Minor gaps remain around auxiliary parameters, but overall it is sufficiently complete.

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?

With schema description coverage at only 13%, the description compensates partially: it clarifies 'file' is indexed BAM/CRAM, 'interval' is the query locus, 'reference' is needed for CRAM, and flag filters follow samtools -f/-F. However, it does not add meaning for max_records, include_sequence, or min_mapping_quality, leaving those under-specified.

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+resource: 'Alignments overlapping an interval from indexed BAM/CRAM.' This clearly separates it from sibling tools like get_variants or get_signal. The samtools flag filter mention adds further precision about what the tool returns.

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?

Explicitly warns 'Not implemented in this build: returns error code unsupported (E4)', which is a strong when-not-to-use signal. It also gives a prerequisite for CRAM (matching reference unless self-contained). Does not name alternative tools for the unsupported case, so not a 5.

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