Skip to main content
Glama

chem_yield

Read-only

Limiting reagent and theoretical yield — Stoichiometry in one call: balances the equation, converts reactant amounts (g, mg, kg, mol, mmol) to moles, finds the limiting reagent, grams used and left over for each reactant, and theoretical yield of every product. Optional actual=Fe:60g gives percent yield. Params equation=, amounts=formula:amount,formula:amount. Price: $0.004 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": {
      "equation": "<equation>",
      "amounts": "<amounts>"
    },
    "name": "chem_yield"
  }
}

Input Schema

NameRequiredDescriptionDefault
amountsYese.g. Fe2O3:100g,CO:50g
equationYese.g. Fe2O3 + CO -> Fe + CO2

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true, destructiveHint=false, and openWorldHint=true, so safety is covered. The description adds genuinely non-schema behavior: supported unit set (g, mg, kg, mol, mmol), that percent yield is only produced when the optional actual input is supplied, and that the call is paid at $0.004 USDC via x402 on Base — a cost/auth detail an agent must know before invoking.

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?

Purpose is front-loaded in the first clause, and the sentence enumerating outputs is dense but information-bearing. The trailing price sentence is short and useful; only the duplicated param syntax feels redundant against the schema.

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?

With no output schema, the description carries the burden of describing returns and does so thoroughly (limiting reagent, grams used/left over, theoretical yield, percent yield). The one gap is the optional actual parameter, which is described but absent from the input schema, so the agent cannot actually supply it as specified.

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%, so baseline would be 3, but the description adds the accepted unit vocabulary and repeats the formula:amount syntax. It also documents an optional actual=Fe:60g input that does not appear in the input schema at all, which adds real semantics but creates a mismatch an agent could stumble on.

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?

States a specific verb chain and resource: balances the equation, converts amounts to moles, finds the limiting reagent, and computes theoretical/percent yield. The phrase 'Stoichiometry in one call' implicitly distinguishes it from narrower siblings like chem_balance and chem_molar_mass, so an agent can select it without opening the schema.

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?

The description makes clear this is the full stoichiometry pipeline rather than a single-step calculation, which implies when to prefer it over chem_balance or chem_molar_mass. However, it never names an alternative or states an explicit when-not condition, leaving routing partly 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