Skip to main content
Glama

NIH Metabolomics Workbench Studies & Compounds MCP

Lookup compound by exact mass (m/z)

lookup_compound_exact_mass
Read-onlyIdempotent

Search the RefMet database for candidate metabolites matching an observed m/z mass, ion adduct, and Dalton tolerance.

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": {
      "mz": "<mz>"
    },
    "name": "lookup_compound_exact_mass"
  }
}

Input Schema

NameRequiredDescriptionDefault
mzYesObserved mass-to-charge ratio m/z (e.g. 180.063).
limitNoMaximum candidate compounds to return (default 15).
adductNoIon adduct type such as "M+H", "M-H", or "M+Na" (default "M+H").
toleranceNoMass tolerance in Daltons (default 0.01).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

B3.2/5.0
Behavior2/5

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

Annotations already declare readOnly, idempotent, non-destructive and openWorld, so the safety profile is covered. The description adds nothing behavioral beyond that - it never says whether candidates are ranked by mass error, what happens when no match falls within tolerance, or how limit truncates results.

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 front-loaded sentence with zero filler; the search target and matching criteria come first. It is efficient, though its brevity leaves the gaps noted in the other dimensions.

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 full schema coverage and no output schema, the essential calling information is present. However, for a candidate-generating lookup the description omits what the results represent (multiple ranked hits, empty-result behavior, default adduct assumption), which an agent would need to interpret output.

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%, including units, defaults and bounds for mz, adduct, tolerance and limit, so the schema already carries parameter meaning. The description names three of the four parameters but adds no syntax or format detail beyond what the schema states, warranting the baseline 3.

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?

States a specific verb and resource: 'Search the RefMet database for candidate metabolites', qualified by the three matching dimensions (m/z, adduct, Dalton tolerance). This clearly separates it from name-based or PubChem-CID siblings, though it never names an alternative explicitly.

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: an agent can infer this is for mass-spec data where an observed m/z is known. There is no statement of when NOT to use it, no mention of the name-search or CID-lookup siblings, and no prerequisites such as knowing the adduct.

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.