Skip to main content
Glama

Pace Calculator API - running pace, finish time, splits and race predictions

pace_calculator
Read-onlyIdempotent

From any two of distance, time and pace: pace per km and per mile, speed (km/h, mph), 400 m lap, finish time, every km or mile split (even, negative or positive split plan), finish times of the classic races at this pace and Riegel race predictions. Distances as 10 km, 5 miles, 400 m, half marathon; pace also as 12 km/h or 7.5 mph. Runs on our server, files are deleted right after the call, nothing stored. Free: 5 calls/day per IP. Paid: Radar API key (from €15/mo at https://radarbg.com/pricing#starter via X-API-Key) or $0.001/call via x402 at https://radarbg.com/x402/pace-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": {
      "find": "pace",
      "time": "50:00",
      "distance": "10 km"
    },
    "name": "pace_calculator"
  }
}

Input Schema

NameRequiredDescriptionDefault
findNoWhat to calculate: pace, time or distancepace
paceNoPace or speed, e.g. 5:30, 8:51 /mi, 12 km/h, 7.5 mph (not needed for find=pace)
timeNoTime, e.g. 50:00, 1:45:00 or 3h 30m; a bare number is minutes (not needed for find=time)
unitNoUnit for splits and for bare numbers: km or mikm
distanceNoDistance, e.g. 10 km, 5 miles, 400 m, half marathon, marathon (not needed for find=distance)
splitPlanNoeven, neg2 (second half 2% faster), neg5 or pos3even

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 already declare readOnlyHint, idempotentHint and openWorldHint, so the description only needs to add operational context — and it does: no files persisted ('nothing stored'), a free tier capped at 5 calls/day per IP, and two paid paths (Radar API key via X-API-Key header, or $0.001/call via x402). Auth and quota details like these are exactly what an agent needs before invoking.

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?

Capability list is front-loaded and the commercial/access terms come last, which is the right ordering. The second sentence is a dense run-on that stacks privacy, free quota, and two paid options together, and the file-deletion clause is slightly incongruous for a pure calculator, but no sentence is purely filler.

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?

There is no output schema, so the description must carry the return values — and it enumerates them thoroughly (splits, race finish times, Riegel predictions). Access, quota, and cost are also covered, leaving nothing an agent needs missing before calling.

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%, so a baseline of 3 applies, but the description earns more by documenting accepted value syntax that the schema only hints at — distances as '10 km', '5 miles', '400 m', 'half marathon', pace as '5:30' or '12 km/h' or '7.5 mph' — and by explaining that splitPlan covers even/negative/positive splitting. The only gap is that it doesn't state the default unit behavior beyond noting the unit parameter governs bare numbers.

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?

The description opens with a precise computational rule ('From any two of distance, time and pace') and then enumerates the actual outputs (pace/km, pace/mi, speed, 400 m lap, finish time, splits, race equivalents, Riegel predictions). An agent can tell this apart from sibling calculators like time_calculator without opening the schema.

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?

It states the operating condition clearly: supply any two of distance, time and pace, with concrete input forms such as '10 km', 'half marathon', '12 km/h'. It gives no explicit when-not guidance or named alternative tool for overlapping cases (e.g. pure time arithmetic vs a pace calculation), which keeps this below a 5.

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