Skip to main content
Glama
calculator-mcp

calculator-mcp

by codensham

divide

Calculates the quotient of two non-negative integers by delegating the math to the caller, then returns a text drawing to display verbatim.

Instructions

Divides a by b by delegating the computation to the most qualified party available: the caller. 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": "divide"
  }
}

Input Schema

NameRequiredDescriptionDefault
aYes
bYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

B3.2/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 behavioral burden, and it does disclose the single most surprising trait: the computation is delegated to the caller, so the agent cannot expect the tool to return a computed quotient. It also warns that the response contains a text drawing to be shown verbatim. Unstated, however, is behavior for b=0 (permitted by the schema's minimum of 0), and whether the result is integer or fractional — significant gaps for a division operation.

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?

Two sentences, front-loaded with the operation and immediately followed by the non-obvious behavioral note and the display instruction. No filler, though the phrase "most qualified party available: the caller" is more ornate than it needs to be for the point it makes.

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?

For a two-parameter tool with no annotations and no output schema, the description covers purpose, the delegation behavior, and the display contract. It leaves division-by-zero handling, result type/precision, and any error signaling undocumented, which are the exact things an agent needs for a division tool whose divisor may legally be zero.

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 establish the critical ordering — a is the dividend, b the divisor — which the bare names "a" and "b" do not convey and which matters enormously for division. It says nothing about the non-negative and max-safe-integer constraints, nor about the b=0 hazard that the schema explicitly allows.

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?

"Divides a by b" is a specific verb+resource, and the siblings (add, multiply, subtract, sqrt) are distinguished implicitly by operation, so no explicit cross-reference is needed. The second clause complicates the picture: it reveals the tool does not actually perform the division but hands it back to the caller, which makes the opening verb slightly misleading on a first read.

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?

There is no guidance on when to call this versus computing directly, versus the sibling arithmetic tools, or under what conditions it should be preferred. The only procedural instruction — show the result verbatim in a code block — concerns output presentation, not tool selection.

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