Skip to main content
Glama

Jean — Molecular Biology & Genomics

read_mzml

Read-only

Read the spectra of a PSI mzML run file: each spectrum's native id, MS level, centroid or profile, scan start time and unit, base peak, total ion current, precursor (selected ion m/z, charge, intensity, isolation window) and peak arrays, interpreted as pyteomics reads mzML (validated on every spectrum of three real runs).

Input Schema

NameRequiredDescriptionDefault
idNoreturn only the spectrum with this native id; empty returns every spectrum.
textYesthe mzML file's contents.
_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.
msLevelNoreturn only spectra at this MS level (0 returns every level).
_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
countYesspectra returned
spectraYesone row per spectrum: id, msLevel, scanStartTime, precursors, mz, intensity

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

B3.2/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 the safety profile needs no restating. The description does add genuine behavioral context beyond the annotations — that parsing follows pyteomics mzML semantics and was validated against every spectrum of three real runs — but says nothing about failure modes on malformed files, spectrum count limits, or how peak arrays are encoded.

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

Conciseness3/5

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

The purpose statement is front-loaded in the first clause, which is good. However, the long parenthetical enumeration of return fields is largely redundant given that an output schema exists, and the density of one 50-word sentence makes the definition harder to scan than a two-sentence split would be.

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 read-only parser with full schema coverage, an output schema, and safety annotations, the description covers the essentials: what file type, what gets parsed, and that output is pyteomics-consistent. The gaps — no file-size limits and no routing versus read_mgf or downstream spectrum tools — are real but secondary for the core call.

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 both filtering parameters (id, msLevel) are already documented in the schema, including the empty/zero sentinel behavior. The description's field list describes return content, not parameter meaning, so it adds little here. Baseline 3 applies when the schema carries the load.

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 ('Read the spectra of a PSI mzML run file') and enumerates exactly what each spectrum yields (native id, MS level, centroid/profile, scan start time and unit, base peak, TIC, precursor details, peak arrays). It never distinguishes itself from the near-identical sibling read_mgf, so an agent must infer the file-format split on its own.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

There is no explicit when-to-use statement, no exclusions, and no named alternative — read_mgf, score_spectrum, and isotope_envelope all touch spectra and are never mentioned. The only guidance is the implicit 'this is for mzML files' embedded in the purpose sentence.

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