Skip to main content
Glama

Engine Heart

study.balance_equation

化学方程式配平:输入未配平的化学方程式(反应物=生成物,用 = 或 → 连接,物质间用 + 连接),自动用线性代数(齐次线性方程组整数解)求出最简整数系数,返回配平后的方程式、各物质系数与原子守恒校验。示例:"Fe+O2=Fe3O4"、"C2H6+O2=CO2+H2O"、"KMnO4=K2MnO4+MnO2+O2"、"Cu+HNO3=Cu(NO3)2+NO+H2O"。支持括号(如 Ca(OH)2、Fe2(SO4)3)。注意:仅支持分子反应方程式,不支持离子方程式与电极反应。

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": {
      "equation": "<equation>"
    },
    "name": "study.balance_equation"
  }
}

Input Schema

NameRequiredDescriptionDefault
equationYes化学方程式字符串,如 "Fe+O2=Fe3O4"、"C2H6+O2=CO2+H2O"

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.4/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does well: it discloses the underlying method (homogeneous linear system solved for integer solutions), the returned artifacts (balanced equation, coefficients, conservation verification), and a hard input restriction. It does not say what happens when an equation cannot be balanced (no integer solution) or whether input errors raise or return messages, which is the main remaining behavioral gap.

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 core purpose, input grammar, and output are front-loaded in the first clause, and the restriction is placed last where it belongs. The four inline examples are dense but each demonstrates a distinct structural case, so they earn their space; the only minor cost is that the paragraph is a single dense block rather than separated sentences.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a one-parameter tool with no output schema, the description covers everything needed: accepted input syntax, worked examples, supported notation, returned values, and the scope boundary. An agent can construct a valid call and anticipate the response shape without further information.

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 already 100%, so the baseline is 3; the description goes beyond it by specifying that '=' or '→' are both acceptable separators and that nested parentheses such as Ca(OH)2 and Fe2(SO4)3 are supported — syntax the schema's single example does not convey. This materially reduces malformed-input risk.

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 opens with a specific verb+resource in both name and function: '化学方程式配平' (balance a chemical equation), and immediately defines the input grammar (reactants=products, '+' between species) and output (balanced equation, per-species coefficients, atom-conservation check). It is clearly distinguishable from a general 'chemistry_calc' sibling because it names a single, narrow operation rather than broad calculation.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

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

It gives four concrete input examples spanning simple oxides, combustion, permanganate decomposition, and a redox reaction with nitric acid, which tells an agent exactly what shapes are accepted. It also states an explicit exclusion: only molecular equations are supported, not ionic or electrode reactions. What is missing is a named alternative for those excluded cases (e.g., pointing to study.chemistry_calc), so it stops short of a 5.

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