Skip to main content
Glama

jean — Molecular Biology & Genomics

recompute_trace_quality

Read-only

Re-score a Sanger trace's own base calls from the signal, replacing the instrument's Phred values with ones measured from the peaks. Keeps the bases; only their quality changes. Reports the read's mean quality, its lowest-scoring base and the four trace parameters that base was scored from, which are the whole input to the quality table.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
tableNothe instrument/polymer calibration table to score against. The same signal scores differently under each, so a quality value is only interpretable with the table named. Defaults to ABI 3730 POP-7.3730pop7
_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.
documentNowhich trace to run on: a file name (`read_F.ab1`) or its project file id. Leave unset to use the trace tab on screen. A file id is project-specific, so a template ships this unset.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
basesYeshow many bases the reading called
meanQualityYesthe mean Phred of the reading, on the calibration table it names
instrumentBasesYeshow many the FILE carries, so a gate can see a de-novo reading change the read's length

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already establish the read-only, non-destructive, closed-world safety profile, so the bar is lower. The description adds real context the annotations do not: what is discarded (instrument Phred values), what is preserved (the bases), and what the result reports (mean quality, lowest-scoring base, and the four trace parameters behind that call). It does not state whether any recomputed values are persisted, which leaves one gap.

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 sentences, front-loaded with what the tool does and immediately followed by the scope boundary and the reported result. No filler, no repetition of the title or schema content.

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, yet the description still frames the return values as a readable result set, and the schema fully documents the four inputs including the table-default (3730pop7). Nothing an agent needs to invoke this tool correctly is missing.

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 the schema already documents table, document, _files and _subject in detail (including why the calibration table matters). The description adds no syntax or selection detail for any input parameter; its mention of 'the four trace parameters' refers to output values, not callable arguments. Baseline 3 is correct when the schema carries the whole burden.

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 (re-score) and resource (a Sanger trace's own base calls from the signal) and immediately bounds the operation: instrument Phred values are replaced by ones measured from peaks, while the bases themselves are kept. That 'keeps the bases; only their quality changes' clause cleanly separates it from re-calling siblings such as call_bases_from_trace and adopt_trace_calls without needing their schemas.

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?

The description makes the selecting condition clear: use this when a trace already has base calls and you want quality values recomputed from the signal rather than the sequence re-called. It does not explicitly name an alternative tool or an exclusion case, so it stops short of the 5 that would route the agent against named siblings.

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