Skip to main content
Glama

jean — Molecular Biology & Genomics

read_mgf

Read-only

Read the MS/MS spectra of a Mascot Generic Format (MGF) file: each spectrum's title, precursor m/z, precursor intensity, declared charge states and peak list, interpreted as pyteomics reads MGF (validated on every spectrum of PXD000001). A spectrum it returns is what score_spectrum takes as mz, intensity and precursorCharge.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
textYesthe MGF file's contents.
titleNoreturn only the spectrum with this title; empty returns every spectrum.
_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

TableJSON Schema
NameRequiredDescriptionDefault
countYesspectra returned
spectraYesone row per spectrum: title, precursorMz, precursorIntensity, charges, mz, intensity

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.9/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true, destructiveHint=false, openWorldHint=false, so the safety profile is covered. The description adds real context beyond that: the parsing is modeled on pyteomics semantics and validated against every spectrum of PXD000001, disclosing behavioral fidelity the annotations cannot express.

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 dense sentence that front-loads the verb and resource, then appends the field list and downstream consumer. Every clause earns its place, though the parenthetical validation note makes the sentence long and slightly harder to scan.

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?

With annotations covering safety and an output schema covering returns, the description supplies purpose, parse semantics, and the downstream link to score_spectrum. The only gap is explicit guidance against the sibling MGF/mzML readers, which is minor given the otherwise complete picture.

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% and an output schema exists, so the schema already documents the text, title, _files and _subject parameters. The description adds no syntax or format detail for any parameter, so the baseline 3 applies when structured fields do the heavy lifting.

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 (read) and resource (MS/MS spectra of a Mascot Generic Format file), enumerated fields returned, and the exact sibling it feeds (score_spectrum). An agent can distinguish this from read_mzml 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 Guidelines3/5

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

It implies usage by stating the returned spectrum is what score_spectrum consumes, giving a downstream workflow link. However, it never states when to choose this over the sibling read_mzml or any explicit exclusions/conditions, leaving the primary routing decision to inference.

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