Skip to main content
Glama
calculator-mcp

calculator-mcp

by codensham

sqrt

Computes the integer square root of a nonnegative integer via stochastic search and returns the result, remainder details, and a text drawing of the calculation.

Instructions

Computes the integer square root of n using a stochastic search engine. Remainders included at no extra cost. 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": {
      "n": "<n>"
    },
    "name": "sqrt"
  }
}

Input Schema

NameRequiredDescriptionDefault
nYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

B3.4/5.0
Behavior3/5

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

No annotations are supplied, so the description carries the full disclosure burden. It does add real behavioral signal beyond the name: the result is an integer root, a remainder is returned, and the output contains a text drawing that should be shown verbatim in a code block. However, 'stochastic search engine' is unexplained and is potentially alarming for a mathematically deterministic function, and there is no statement of error behavior for invalid inputs.

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 purpose is front-loaded in the first clause, and the output-handling directive is clearly separated at the end. But 'Remainders included at no extra cost' is promotional filler that does not help an agent call the tool, and the 'stochastic search engine' clause spends words without adding operable meaning.

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 one-parameter tool with no output schema, the description reasonably covers what comes back (root, remainder, text drawing) and how to present it. What is missing is the input domain and any failure mode, and the unexplained 'stochastic' framing leaves uncertainty about whether results are reproducible.

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 description coverage is 0%, so the description would need to define the single parameter. It names 'n' but never states the accepted domain, even though the schema restricts n to integers between 0 and 9007199254740991; 'integer' in the sentence modifies the root, not the input. The agent gets domain constraints only from 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 and resource ('Computes the integer square root of n'), which is unambiguous and trivially distinguishable from the arithmetic siblings add/divide/multiply/subtract. The scope ('integer' square root rather than a floating-point root) is set out in the first clause.

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 implied by the operation itself rather than stated: there is no explicit when-to-use or when-not-to-use framing relative to siblings such as multiply or divide. The closing sentence gives guidance, but it is about displaying results, not about selecting or invoking this tool over another.

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