Skip to main content
Glama

Fraction Calculator API - fractions and mixed numbers with steps

fraction_calculator
Read-onlyIdempotent

Add, subtract, multiply and divide fractions and mixed numbers (1/2 + 3/4, 2 1/3 x 1 1/2, 3/4 / 5/8): simplified fraction, mixed number, decimal (repeating part shown) and the steps; many sums per call, one per line. Runs on our server, files are deleted right after the call, nothing stored. Free: 5 calls/day per IP. Paid: Radar API key (from €9/mo at https://radarbg.com/pricing#starter via X-API-Key) or $0.001/call via x402 at https://radarbg.com/x402/fraction-calculator.

Example tool call

This call uses example arguments supplied in the tool’s input schema.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "expressions": "1/2 + 3/4\n2 1/3 x 1 1/2"
    },
    "name": "fraction_calculator"
  }
}

Input Schema

NameRequiredDescriptionDefault
expressionsYesSums, one per line, e.g. 1/2 + 3/4

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.6/5.0
Behavior5/5

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

Annotations only declare readOnly/idempotent/openWorld; the description goes well beyond them with privacy (

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?

Single dense paragraph that is front-loaded with the operations and examples before commercial details. The pricing/auth/URL tail is long but each item is decision-relevant for an agent that may hit the 5-calls-per-day limit.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

With no output schema, the description carries the return-value burden itself and does so by naming all four output forms. Combined with input syntax, batching rules, auth method (X-API-Key) and rate limits, nothing needed to call it correctly is missing.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100% and there is only one parameter, so the baseline is already high. The description still adds real meaning beyond the schema by showing accepted operator syntax ('x' for multiply, '/' for divide), mixed-number notation with a space, and the one-expression-per-line batching contract.

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 four specific operations on a specific resource (fractions and mixed numbers) and backs it with concrete input examples ('1/2 + 3/4, 2 1/3 x 1 1/2, 3/4 / 5/8'). It also enumerates the outputs (simplified fraction, mixed number, decimal with repeating part, steps), so an agent knows exactly what it gets back.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Explains the batching model clearly: 'many sums per call, one per line', which tells the agent to prefer one call over many. No sibling arithmetic tool is named as an alternative and no when-not-to-use case is given, so it stops short of full routing guidance.

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