Skip to main content
Glama

Chemistry Calc

chemistry_calc

化学式摩尔质量计算:输入化学式(如 H2SO4、Ca(OH)2、Fe2(SO4)3、CuSO4·5H2O),返回摩尔质量(g/mol)、各元素的原子个数、质量贡献与质量分数(%)。支持括号嵌套与结晶水合物(用 · 连接)。放射性元素无标准原子量时会提示。

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": "chemistry_calc"
  }
}

Input Schema

NameRequiredDescriptionDefault
formulaYes化学式,如 "H2SO4"、"Ca(OH)2"、"CuSO4·5H2O"

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.6/5.0
Behavior3/5

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

With no annotations, the description carries the full burden, and it does disclose real behavior: returned quantities (molar mass, per-element atom counts, mass contribution, mass fraction) and edge-case handling (hydrates, nested parentheses, warning when a radioactive element lacks a standard atomic weight). Since an output schema already exists, the enumerated return fields are partly redundant, so the added value is moderate rather than rich.

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

Conciseness5/5

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

The purpose and examples are front-loaded, and every following clause (outputs, supported syntax, radioactive-element caveat) contributes new information. There is no filler or repetition.

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 one-parameter pure-computation tool with a full output schema and no annotations, the description covers input format, returned values, and the main edge case, which is nearly everything an agent needs. It lacks only explicit routing against sibling chemistry tools.

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?

The single parameter is fully documented in the schema (100% coverage) with its own examples, so the baseline is 3. The description does add genuine format semantics beyond the schema by stating that nested parentheses and hydrate notation with · are accepted, but otherwise adds no new per-parameter detail.

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 names a specific verb+resource (calculate molar mass from a chemical formula) and lists concrete example inputs, so an agent can immediately tell this is a formula-to-mass calculator rather than a solver or lookup. It never explicitly contrasts itself with siblings such as balance_equation or element_lookup, which keeps it from a 5.

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 examples and supported-format notes (nested parentheses, hydrates joined by ·) signal what input belongs here, but there is no explicit when-to-use vs. when-to-use-an-alternative guidance. Nothing states, for example, that balancing reactions belongs to a different tool.

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