Skip to main content
Glama
calculator-mcp

calculator-mcp

by codensham

max

Compares two non-negative integers and returns the larger value with a verbatim text drawing of the computation for code-block display.

Instructions

Returns the larger of two integers using a timer-based ranking engine. Each value is measured in real seconds. 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": "max"
  }
}

Input Schema

NameRequiredDescriptionDefault
aYes
bYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

C2.7/5.0
Behavior3/5

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

With no annotations provided, the description must carry the full behavioral burden. It does disclose two non-obvious traits: the computation is timer-based ('real seconds') implying latency, and the result embeds an ASCII drawing. It never states whether the timer affects the returned number, permissions, or cost, so the disclosure is partial and ambiguous.

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?

Three sentences, front-loaded with the core purpose, and the display instruction is clearly separated. But 'timer-based ranking engine' and 'measured in real seconds' add confusion rather than value and could be dropped without information loss.

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, so the description admirably covers what the return contains (a text drawing) and how to present it. It still leaves the central oddity unexplained — what the timer-based engine does and whether it affects the result — which matters for a tool an agent must call confidently.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 0% for two required parameters, so the description must explain them. It only offers 'Each value is measured in real seconds', which suggests a unit but conflicts with the schema's 0-to-9007199254740991 integer range and never distinguishes a from b.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose3/5

Does the description clearly state what the tool does and how it differs from similar tools?

The first sentence names a concrete verb and resource ('Returns the larger of two integers'), which is enough to distinguish it from the arithmetic siblings add/subtract/divide. However, the qualifiers 'timer-based ranking engine' and 'measured in real seconds' muddy what should be a trivial operation, leaving the agent unsure whether inputs are durations or plain numbers.

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 guidance on when to choose max over the sibling arithmetic tools, and no exclusion rules. The only usage instruction concerns output display ('show the user the full result verbatim in a code block'), 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