Skip to main content
Glama

Jean — Molecular Biology & Genomics

read_structure_consensus

Read-only

Read the consensus RNA secondary structure a Stockholm alignment states in its #=GC SS_cons line (WUSS, the notation Rfam and Infernal write), and measure how well the aligned rows actually support it.

Input Schema

NameRequiredDescriptionDefault
textYesthe alignment file's contents. Stockholm is the only format that records `#=GC` annotation, so a CLUSTAL or PHYLIP file is refused by name rather than returning an empty structure.
_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.

Output Schema

NameRequiredDescriptionDefault
rowsYesaligned sequences the support was measured over
pairsYesbase pairs the consensus states
rolesYesper column, what its glyph said: pair, hairpin, bulge, multifurcation, external, insertion or missing
columnsYesalignment width the annotation covers
supportYesper column, {observed, paired} or null where the column is unpaired — the denominator travels so a caller can say "no evidence" instead of drawing a zero
alphabetYeswhich alphabet the `SS_cons` line was written in: `wuss`, `protein-dssp`, or `unknown`
pairListYesevery pair as {i, j}, plus `knotLetter` when it came from a pseudoknot letter rather than a bracket
pairTableYesper column, its partner column or -1 — the same shape `pairTable` returns, so it wires straight into an arc drawing
medianSupportYesthe median, over pairs that any row spans, of the fraction of those rows forming a canonical or wobble pair. The panel's own headline number — a family whose structure is real sits high here, and a low value means the rows do not do what the annotation says

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4/5.0
Behavior4/5

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

Annotations already establish this is a non-destructive, closed-world read, so the bar is lower; the description still adds substance by disclosing that parsing uses WUSS notation and that the tool also produces a support measure of how well the aligned rows back the consensus. It does not mention failure modes for malformed or empty `#=GC` lines, but the core behavior beyond annotations is well conveyed.

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?

One sentence, front-loaded with the primary read action and followed by the secondary measurement. The stacked parentheticals (WUSS, Rfam/Infernal) are informative but make it denser than necessary; nothing is outright wasted.

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 no explanation, and the nested `_subject`/`_files` structure is fully documented in the schema. The description covers the domain-specific prerequisites (Stockholm source, WUSS consensus line) and the dual purpose, leaving nothing an agent needs to call it correctly.

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 all three parameters are already documented, including the Stockholm-only constraint on `text`. The description restates the format expectation but adds no syntax or handling 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?

States a specific verb pair (read + measure) against a precisely named resource: the `#=GC SS_cons` line of a Stockholm alignment in WUSS notation. That level of specificity cleanly separates it from sibling tools like read_structure, fold_rna, and alignment_agreement without needing to name them.

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 only implied: the description says the tool reads what a Stockholm alignment states, which hints the input must be a Stockholm alignment, and warns that WUSS is what Rfam/Infernal write. The explicit exclusion (CLUSTAL/PHYLIP refused by name) lives in the schema, not the description, and no alternative tool is named for when an agent lacks a consensus line.

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