Skip to main content
Glama

jean — Molecular Biology & Genomics

discover_flag_rates

Read-only

Measure how often a corpus of maps carries a cryptic σ70 promoter, a cryptic splice site or a synthesis-breaking repeat MORE EXTREME THAN CHANCE, rather than how many it carries. Every map of a few kilobases spells promoters, splice donors and repeats, so a raw hit count measures length and composition; here each map's own extreme (its most negative promoter ΔG, its highest MaxEntScan donor and acceptor score, its longest homopolymer, tandem repeat, repeated stretch and hairpin arm) is scored against k-let-preserving shuffles of that same map, and the false discovery rate is controlled across the corpus within each statistic. No statistic uses a threshold: none of the three models publishes one, and a vendor's repeat limit is a product's capability, which check_manufacturability answers instead. The result is a per-statistic rate with an exact binomial interval, plus every map's own test. Cost is dominated by the σ70 scan at roughly a third of a second per map per shuffle, so a corpus of maps at the default 99 shuffles is minutes of work; drop flags to the statistics you need to make it cheaper.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
seedNoseed for the shuffles. Each record draws from seed + its own index, so a record's answer does not depend on the rest of the corpus. Advanced.
alphaNofalse discovery rate at which a record counts towards a flag's rate.
flagsNowhich statistics to run. Empty runs all seven.
_filesNoThe project: record references shaped like _subject. Their records become library documents a tool names in sequences/parts/document; a trace or alignment is found by file name.
_subjectNoThe record to act on: exactly one of sequence, accession (+source), sample (an id from list_samples) or file ({name, text} or {name, base64}); record_index picks one record of several.
shufflesNoshuffles per record. The smallest p the null can give is 1 / (shuffles + 1), which is what bounds how small a corrected q can get.
sequencesNothe corpus: wire upstream records here, or list library document names. Each is one record of the sweep.
shuffle_kNok-let size the shuffles preserve. 2 holds every dinucleotide count, which is what all three statistics read.
correctionNoBenjamini–Hochberg (independent or positively dependent tests) or Benjamini–Yekutieli (any dependence; less power). Values: BH (Benjamini–Hochberg), BY (Benjamini–Yekutieli).BH
include_subjectNoalso test the node's subject (the open or wired record).

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
hitsYesevery record whose statistic beat chance, smallest p first
ratesYesper statistic: records tested, records above chance, the rate and its exact 95% interval
sweepYesthe full result, including the records tested
testsYesevery (record, statistic) test: the observed statistic, the shuffles' mean, p, q and the Monte Carlo interval
hitCountYeshow many (record, statistic) tests were called
nullModelYesthe null the p-values stand on, stated with every run

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.6/5.0
Behavior5/5

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

Annotations already cover the safety profile (readOnly, non-destructive, closed-world), so the description's burden is lower, yet it adds a great deal: the statistical method (k-let-preserving shuffles, FDR controlled within each statistic), the explicit absence of thresholds, and a concrete cost model ('roughly a third of a second per map per shuffle', 'minutes of work' at 99 shuffles). It also discloses the result shape (per-statistic rate with exact binomial interval plus per-map tests), which is exactly the kind of behavioral context annotations cannot carry.

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?

Purpose is front-loaded in the first sentence and the remaining sentences each carry load (justification for the statistical approach, sibling routing, cost model, cost-reduction lever). It is dense and the opening sentence is a run-on with an embedded contrast, so the structure costs some readability, but for a 10-parameter statistical tool the length is defensible rather than padded.

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?

An output schema exists, so return values need not be explained, and the description still sketches the result anyway. For a read-only, closed-world tool with nested `_subject`/`_files` inputs, it supplies the method, the no-threshold rationale, the sibling that handles thresholds, and the compute budget — everything an agent needs to decide and call correctly.

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 and the schema already documents every field including defaults, ranges and the 1/(shuffles+1) p-value bound. The description goes beyond it by tying parameters to operational consequences: `flags` controls cost, `shuffles` bounds the achievable corrected q, and the three statistics models map onto the flag set. That cross-parameter interaction is genuine added meaning, though no syntax or format detail is added.

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 (measure/discover the rate of) on a specific resource (cryptic σ70 promoters, splice sites, synthesis-breaking repeats across a corpus), and immediately distinguishes itself from raw hit counting. It also names the sibling it is not: threshold/repeat-limit questions are routed to `check_manufacturability`. An agent can separate this from `scan_sigma70_promoters` or `scan_splice_sites` without opening either 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 a clear when-not (anything asking for a threshold is out of scope, and `check_manufacturability` answers the vendor-limit question) and a cost-control hint ('drop `flags` to the statistics you need to make it cheaper'). The core when-to-use — you want significance against a null rather than a count — is stated as a contrast rather than a directive, and the raw-count siblings are not named explicitly.

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.

Resources