Skip to main content
Glama

Fraction Calculator

fraction_calculator
Read-onlyIdempotent

Computes exact addition, subtraction, multiplication or division of fractions and mixed numbers, with simplified, mixed and decimal forms.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
aYesFirst integer, fraction, decimal or signed mixed number.
bYesSecond integer, fraction, decimal or signed mixed number.
operationNoArithmetic operation; default +.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.6/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint, non-destructive and closed-world, so the safety profile is fully covered without the description. The description adds one genuinely useful behavioral detail — that results are 'exact' and returned as simplified, mixed, and decimal forms — but since an output schema exists, this is modest added value.

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 well-formed sentence that front-loads the operation and resource before the output detail. There is no filler and every clause carries information.

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?

With rich annotations, a fully documented 3-parameter schema, and an output schema covering return values, the description is nearly sufficient for an agent to call this correctly. Only the absence of any routing hint toward sibling tools keeps it from being complete.

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%, so the schema already documents a, b, and the operation enum with its default. The description adds nothing about accepted input syntax beyond what the schema's 'integer, fraction, decimal or signed mixed number' wording already provides; the baseline 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?

The description gives a precise verb (computes) plus the exact resource and supported operand types (fractions and mixed numbers), and enumerates all four operations. It clearly separates this arithmetic tool from conversion siblings like decimal_to_fraction, though it never names an alternative explicitly, keeping it just short of a 5.

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 only implied by the tool's nature — an agent can infer 'use this to do fraction arithmetic' but the description states no conditions, prerequisites, or when-not-to-use guidance. No alternative tool (e.g., decimal_to_fraction, round_decimal) is mentioned for related tasks.

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