Skip to main content
Glama

Long Division Calculator

long_divide
Read-onlyIdempotent

Divide decimal strings exactly with long division steps, an integer quotient and remainder. See terminating, repeating or truncated decimals.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
digitsNoMaximum fractional digits before truncation; default 20.
divisorYesNonzero signed plain decimal, no exponent; maximum 60 characters.
dividendYesSigned plain decimal, no exponent; maximum 60 characters.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

B3.2/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint and destructiveHint=false, so the safety profile is covered. The description does add one piece of real behavioral context — that results may be terminating, repeating, or truncated — which explains what the 'digits' bound does. It stops there and adds nothing about return shape beyond that.

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?

A single tight sentence with no filler, and the core capability (exact division with quotient and remainder) is front-loaded. It is efficient, though the second clause is slightly compressed rather than broken out for scanability.

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?

An output schema exists, so return values need not be described, and annotations carry the safety profile. For a three-parameter calculator the description covers the essentials; the only real gap is the absence of guidance on choosing it over adjacent converter/calculator siblings.

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 100% — each of the three parameters is documented in the schema, including defaults, bounds, and the plain-decimal/no-exponent constraint. The description's 'truncated decimals' phrase weakly reinforces the meaning of 'digits' but adds no syntax or format detail beyond the schema, so the baseline of 3 applies.

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 (divide) and resource (decimal strings) plus the distinctive output (long division steps, integer quotient and remainder), so it reads clearly as an exact-division tool. It does not name or contrast any sibling (e.g. fraction_calculator, decimal_to_fraction), so sibling differentiation is left to inference.

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?

The description implies a use case (exact division with steps and remainder) but never says when to prefer this over fraction_calculator, decimal_to_fraction, or round_decimal. No conditions, prerequisites, or exclusions are given.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources