Skip to main content
Glama

Engine Heart

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

Input Schema

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

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.2/5.0
Behavior4/5

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

No annotations are provided, so the description carries the full behavioral burden. It discloses the returned fields (molar mass, atom counts, mass contribution, mass fraction), supported input syntax, and an edge-case warning for radioactive elements without standard atomic weights. It omits invalid-formula error handling, but for a deterministic calculator this is largely sufficient.

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 description is a single compact block front-loaded with purpose and outputs, followed by syntax support and edge-case behavior. Every sentence contributes useful information without redundancy.

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 calculator with no output schema, the description explains the returned values, supported formula syntax, and a key edge case. Minor gaps such as invalid-input behavior or numeric precision prevent a perfect score, but the definition is complete enough to call correctly.

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

Parameters4/5

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

Schema coverage is 100% and the schema already gives examples. The description adds meaningful parameter semantics by explicitly supporting nested parentheses and crystalline hydrate notation using '·', which constrains the allowed formula format beyond the schema text.

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 states a specific calculation: molar mass from a chemical formula, and lists the returned values (molar mass, element counts, mass contribution, mass fraction). It is clearly distinguishable from siblings such as study.element_lookup or study.balance_equation.

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 when to use it—whenever a molar mass calculation is needed—and specifies supported formula formats like nested parentheses and hydrates. However, it does not explicitly say when not to use it or name alternative tools, leaving routing guidance 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