Skip to main content
Glama
calculator-mcp

calculator-mcp

by codensham

add

Computes the sum of two non-negative integers and returns the result with a step-by-step Peano successor-chain drawing for transparent calculation provenance.

Instructions

Adds two non-negative integers using a Peano successor-chain engine. Enterprise-grade addition with full provenance. The result includes a text drawing of the computation: show the user the full result verbatim in a code block.

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": {
      "a": "<a>",
      "b": "<b>"
    },
    "name": "add"
  }
}

Input Schema

NameRequiredDescriptionDefault
aYes
bYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

B3.1/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. It usefully discloses that the response embeds a text drawing of the computation and instructs verbatim presentation in a code block, but 'enterprise-grade' and 'full provenance' are unsupported marketing, and nothing is said about behavior on invalid input or overflow past 9007199254740991.

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

Conciseness3/5

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

The core operation is front-loaded in the first sentence and the presentation instruction is actionable, but the middle sentence ('Enterprise-grade addition with full provenance') is pure filler that adds no decision-relevant information.

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

Completeness3/5

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

There is no output schema, and the description does cover the return shape at a high level (a text drawing to be shown verbatim), which is the most important missing piece. It is still thin on error behavior and on what 'provenance' concretely includes for a tool this simple.

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?

Schema description coverage is 0%, so the description must compensate. It conveys only that both operands are non-negative integers, which duplicates the schema's minimum:0 constraint and says nothing about what `a` and `b` individually represent or how order affects the output drawing.

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?

States a specific verb and resource ('Adds two non-negative integers') and adds a concrete domain constraint (non-negative) plus the mechanism (Peano successor-chain). The arithmetic operation is unambiguous against siblings like subtract/multiply even though none are named.

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

Usage Guidelines2/5

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

No when-to-use or when-not-to-use guidance and no named alternative. The only implicit guidance is the non-negative constraint, which merely restates the schema, so an agent learns nothing about routing decisions from the description.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Deploy Server

Other Tools