Skip to main content
Glama

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.

Input 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

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

B3.4/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true, destructiveHint=false and openWorldHint=false, so safety is covered and the description is not required to restate it. The description does add real conceptual content – results are judged against chance via shuffles rather than tallied – which goes beyond the annotations. It omits notable behavior: the run is computationally heavy (shuffles per record, up to 999), and per-record results are corpus-independent by design, a property buried in the schema's seed text rather than stated up front.

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?

A single sentence with the key distinction front and center and no filler. It is dense to the point of being slightly convoluted – the all-caps 'MORE EXTREME THAN CHANCE' and the trailing 'rather than how many it carries' clause compete for attention – but nothing is wasted.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

An output schema exists, so the description need not explain return values, and annotations cover the safety profile. Still, for a 10-parameter statistical sweep with nested subject/file objects and seven available flags (only three of which are named), one sentence leaves the agent without a mental model of what the corpus input should look like or what a 'flag rate' aggregates over. Minimal but not misleading.

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% across all 10 parameters, including rich per-parameter explanations for seed, alpha, shuffles, shuffle_k and correction, so the schema carries the parameter burden. The description adds no parameter-level meaning beyond what is already documented (it does not even mention alpha or the FDR correction). Baseline 3 is appropriate.

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 gives a specific verb and resource ('measure how often a corpus of maps carries...') and draws a sharp line between this tool and plain counting ('MORE EXTREME THAN CHANCE, rather than how many it carries'). The sibling set is full of look-alikes (scan_sigma70_promoters, scan_splice_sites), and while the 'rate vs count' framing implicitly separates it from them, none is named. The term 'maps' for what the schema calls 'sequences' is also slightly loose.

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?

Usage is implied rather than stated: the agent can infer this is the tool to reach for when it needs significance against a null rather than raw occurrence counts. There is no explicit 'use X when you want counts' routing to scan_sigma70_promoters/scan_splice_sites, and no prerequisites (corpus assembly, cost of many shuffles) are mentioned. Adequate but with clear routing gaps.

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