Skip to main content
Glama

chem_mass_spec

Read-only

Mass spec calculator — Mass spectrometry helper for a molecular formula: exact monoisotopic mass, average molar mass, nominal mass, isotope pattern (M, M+1, M+2... with relative abundances from IUPAC isotope data, so Cl/Br clusters show up), common ESI adduct m/z values ([M+H]+, [M+Na]+, [M+K]+, [M+NH4]+, [M+2H]2+, [M-H]-, [M+Cl]-, [M+HCOO]-, [M+CH3COO]-), rings-plus-double-bonds and nitrogen-rule check. Pass mz= (observed m/z) to match it against every adduct with ppm and mDa error (tolerance_ppm= default 10). Optional mode=positive|negative|both, charge=. Supports brackets and hydrates (CuSO4*5H2O). Elements: H Li B C N O F Na Mg Al Si P S Cl K Ca Fe Cu Zn Se Br I. Offline, instant. Price: $0.003 USDC (Base, via x402).

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "formula": "<formula>"
    },
    "name": "chem_mass_spec"
  }
}

Input Schema

NameRequiredDescriptionDefault
formulaYese.g. C9H8O4

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true and destructiveHint=false, so the description does not need to re-argue safety and instead adds genuinely new context: IUPAC isotope data explaining why Cl/Br clusters appear, an explicit supported-element list, hydrate/bracket support, 'Offline, instant', and a $0.003 USDC x402 price/paid-access note. The cost and data-source disclosures are exactly the kind of behavioral detail annotations cannot carry, though the phantom mz=/mode=/charge= parameters muddy the picture of what actually happens on a call.

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?

The purpose is front-loaded in the first clause and the dense enumerations (adducts, allowed elements) each carry real information rather than boilerplate. The parenthetical adduct list and pricing sentence are long but earn their space; only the unsupported parameter sentence is wasted words.

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?

With no output schema, the description is right to enumerate return values, and it does so thoroughly along with input limits and cost. However, for a one-parameter tool the added material about mz matching, tolerance, mode and charge describes a capability the schema cannot accept, leaving the agent with an inaccurate picture of how to invoke it.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100% for the single real parameter (formula), so the description adds little needed meaning there. Worse, it advertises mz=, tolerance_ppm= (default 10), mode=positive|negative|both and charge=, none of which exist in the input schema — an agent following the description would attempt arguments that cannot be passed, so the description actively misleads rather than compensating.

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?

The description names a specific verb+resource ('Mass spec calculator ... for a molecular formula') and enumerates the exact outputs: monoisotopic mass, average molar mass, nominal mass, isotope pattern, adduct m/z, RDBE and nitrogen rule. That enumeration is what separates it from a narrower sibling like chem_molar_mass, so an agent can pick it without opening any 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?

Usage is only implied: the reader infers 'use this when you need mass-spec properties of a formula' and there is no explicit statement about when to prefer chem_molar_mass or chem_empirical_formula instead. The mz= adduct-matching sentence does sketch a concrete use case, but it points at a parameter the schema does not expose, which weakens rather than clarifies the guidance.

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