Skip to main content
Glama
calculator-mcp

calculator-mcp

by codensham

subtract

Computes a minus b for non-negative integers, supports negative results, and returns a text drawing of the calculation to display verbatim.

Instructions

Subtracts b from a by staging a supervised tug of war between two teams. Supports negative outcomes. 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": "subtract"
  }
}

Input Schema

NameRequiredDescriptionDefault
aYes
bYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.7/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 and does deliver two useful facts: negative outcomes are possible, and the result contains a text drawing that must be shown verbatim in a code block. Against that, the 'supervised tug of war between two teams' framing obscures the actual mechanism, and nothing is said about failure modes or the concrete return type.

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?

Three short sentences, front-loaded with the operation and its operand order, then the behavioral caveat, then the display instruction. The only dead weight is the whimsical tug-of-war metaphor, which consumes a clause without informing the agent.

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 arithmetic tool with no output schema and no annotations, the description covers the operation, the possibility of negative results, and how to render the output. What remains missing — return type, input bounds — is adequately carried by the input schema.

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, and it does provide the one non-obvious semantic — which operand is subtracted from which ('subtracts b from a'). It adds nothing about whether inputs may be negative or about the safe-integer bounds, leaving that to the schema's type constraints.

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 gives a specific verb and operand order — 'Subtracts b from a' — which unambiguously separates it from siblings like add, multiply, and divide. An agent can tell exactly what arithmetic operation this performs 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 operation name makes clear when subtraction is wanted, and the description adds a display instruction for the result. However, it offers no explicit routing guidance against siblings (e.g., when to prefer add or divide) and no exclusions or preconditions.

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