Skip to main content
Glama

mechacut

math_calc

The closed calculator — the model WRITES the expression, the machine COMPUTES it. Exact Decimal arithmetic from the SOURCE TEXT of every literal (0.1+0.2 = 0.3, never 0.30000000000000004): + - * / // % **, parentheses, unary sign, and exactly three named functions round(x[,n]) with declared HALF_UP, sqrt, abs. Everything else — names, letters, strings, attributes, lambdas, exponents over 64, divisions by zero, sqrt of negatives — REFUSED BY NAME, never silently clipped. digits=0..30 quantizes the final value and KEEPS trailing zeros (39.900 stays 39.900). 50-digit working precision declared in the answer. The engine under the formula catalogue to come. Free forever: arithmetic should cost nothing.

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": {
      "expr": "<expr>"
    },
    "name": "math_calc"
  }
}

Input Schema

NameRequiredDescriptionDefault
exprYes
digitsNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.1/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 most of it: it declares exact decimal semantics (0.1+0.2 = 0.3), HALF_UP rounding, 50-digit working precision reported in the answer, trailing-zero preservation, and that unsupported input is refused by name rather than silently clipped. It stops short of describing the actual response shape or how refusals are surfaced, which matters since there is no output schema.

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?

Dense and front-loaded, with the core contract (write expression, machine computes exactly) in the first sentence and edge-case behavior condensed into one capital-letter clause. The trailing 'engine under the formula catalogue to come' and 'Free forever' lines add personality but little invocation value.

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 two-parameter evaluation tool with no annotations and no output schema, the description covers what to send, what will be refused, rounding mode, and precision reporting. The missing piece is the output contract — what the returned answer looks like and whether refusals come back as errors or text — which an agent would still have to discover by calling it.

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 0%, so the description must compensate, and it largely does: it defines the expression grammar and the supported function set for expr, and explains digits=0..30 as final-value quantization that keeps trailing zeros (39.900 stays 39.900). The only gap is that it never names the parameters formally, relying on the reader to map 'digits=' and 'the expression' onto the schema.

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/resource pair — a closed calculator that evaluates a written arithmetic expression — and pins down the exact domain (Decimal arithmetic, + - * / // % **, parentheses, unary sign, round/sqrt/abs). The contrast with a generic mental-math or symbolic tool is unmistakable, so an agent can distinguish it from siblings like date_calc 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 Guidelines3/5

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

Usage is only implied: 'the model WRITES the expression, the machine COMPUTES it' and 'arithmetic should cost nothing' suggest preferring this over guessing arithmetic, and the enumerated refusals implicitly scope what it is not for. However, no explicit when-to-use/when-not statement, no named alternatives, and 'the engine under the formula catalogue to come' is forward-looking rather than actionable guidance.

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.