Skip to main content
Glama
agentspan-ai

MCP Test Server

by agentspan-ai

math_modulo

Compute the remainder of dividing one number by another and return an error when the divisor is zero.

Instructions

Return the remainder of a divided by b. Returns an error if b is zero.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
aYes
bYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.4

TDQS

A3.8/5.0
Behavior3/5

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

No annotations exist, so the description carries the full behavioral burden. It usefully discloses the b=0 error condition, which is the key failure mode, but says nothing about negative operands, floating-point remainders, or result conventions (e.g., truncated vs. floored modulo).

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?

Two short sentences, the core operation front-loaded and the error edge case second. Zero wasted words.

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-format explanation is unnecessary, and the definition covers the essential operation plus the one critical edge case. Only minor gaps (sign/float conventions) remain, which is acceptable for a simple arithmetic primitive.

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. It assigns roles to both params (a = dividend, b = divisor) and adds the b≠0 constraint, which is meaning beyond the schema's bare 'A'/'B' titles, but it adds no format or range detail.

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 precise operation and resource: 'Return the remainder of a divided by b.' An agent can immediately distinguish this from math_divide, math_multiply, and the other arithmetic siblings without opening any schema.

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 (compute a modulo when you need a remainder), but there is no explicit when-to-use guidance, no mention of the math_divide sibling it relates to, and no note on negative-number behavior. It is minimum-viable implied usage.

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