Skip to main content
Glama

chem_molar_mass

Read-only

Molar mass + percent composition calculator — Offline chemistry calculator: parse a molecular formula (brackets like Ca3(PO4)2 or K4[Fe(CN)6], hydrates like CuSO4.5H2O) and return molar mass in g/mol, Hill formula, atom count and per-element mass contribution and mass percent, using IUPAC standard atomic weights. Optional grams= converts to moles and molecules, or moles= converts to grams. Price: $0.002 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_molar_mass"
  }
}

Input Schema

NameRequiredDescriptionDefault
formulaYese.g. C6H12O6

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

B3.4/5.0
Behavior4/5

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

Annotations already cover the safety profile (readOnlyHint=true, destructiveHint=false), and the description adds genuinely non-obvious behavior: computation is done offline using IUPAC standard weights, the full set of returned fields is spelled out, and a per-call price of $0.002 USDC via x402 is disclosed — a real cost signal an agent would not otherwise see. Minor tension exists between the 'Offline' wording and openWorldHint=true, though the x402/Base payment interaction plausibly explains the open-world flag rather than contradicting it.

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?

Front-loaded with the core purpose and output list, with concrete formula examples in parentheses that earn their space. The payment note is compact and placed last. Slightly dense as a single run-on sentence, but no filler.

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 usefully enumerates the return fields and conversion behavior, which is exactly what an agent needs. The missing piece is consistency: the promised grams=/moles= inputs are absent from the schema, leaving an agent unsure whether conversions are reachable. Sibling differentiation is also absent given the presence of chem_compound tools.

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?

The schema documents its single parameter (formula, with an example) at 100% coverage, so baseline would be 3. However, the description advertises optional 'grams=' and 'moles=' parameters that do not exist anywhere in the input schema, which will mislead an agent into attempting calls with unsupported arguments. That mismatch actively detracts rather than adding meaning.

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?

Names a specific verb+resource pair (parse a molecular formula, return molar mass) and enumerates the exact outputs, so an agent knows precisely what it gets back. It also scopes the input domain with concrete bracket and hydrate examples. It stops short of differentiating itself from the chem_compound siblings, which an agent would have to resolve 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 Guidelines3/5

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

The description implies usage (compute mass/composition from a formula string) and marks the conversion options as optional, but never states when to choose this over chem_compound or chem_compound_batch, nor any prerequisites or exclusions. Usage is inferable but not guided.

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