Skip to main content
Glama
Calculator MCP Server

Calculator MCP Server

Divide

Divides a dividend by a divisor and returns the quotient, including handling for zero divisors in basic arithmetic calculations.

Instructions

Divides the dividend by divisor and returns the quotient

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
aYesDividend
bYesDivisor

Output Schema

NameRequiredDescriptionDefault
aYesDividend
bYesDivisor
resultYesQuotient of the two numbers
operationYesOperation performed

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?

With no annotations, the description carries the full behavioral burden; it does state the returned value is the quotient, and an output schema documents the return structure. It omits the one behavior that matters for this operation: what happens when the divisor is zero (error vs. infinity), and whether integer or truncation semantics apply.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

A single short sentence that is front-loaded with the action and complete in one read. No redundant or filler wording to trim.

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 no explanation, and the two required numeric parameters are documented in the schema. The only meaningful gap is edge-case behavior for a zero divisor, which a caller cannot infer from the definition.

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%, with both parameters already labeled 'Dividend' and 'Divisor', so the baseline is 3. The description merely restates those same roles in prose and adds no constraint, range, or format meaning beyond the schema.

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?

The description gives a specific verb (divides) and names the operand roles (dividend, divisor) plus the result (quotient), so its purpose is unambiguous. It does not reference the sibling set (Add, Multiply, Subtract, Percentage), but the verb alone makes the distinction obvious to any agent.

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 when-to-use guidance, no mention of when an alternative operation (such as Multiply by a reciprocal or Percentage) might be preferred, and no stated preconditions. Usage is only inferable from the verb, which is adequate for a trivial arithmetic function but is not stated anywhere in the definition.

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