Skip to main content
Glama

Hours & Time Card Calculator API - shifts, breaks, overtime and gross pay

hours_calculator
Read-onlyIdempotent

Parse work shifts (day/date, start, end, break minutes; handles overnight shifts) into daily and weekly totals, regular vs overtime hours, gross pay and optional 5/6/15-minute rounding. 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/hours-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": {
      "shifts": "Mon 9:00 17:30 30\nTue 9:00 17:30 30\nWed 8:30 18:00 45",
      "hourlyRate": "20",
      "overtimeAfterHours": "40"
    },
    "name": "hours_calculator"
  }
}

Input Schema

NameRequiredDescriptionDefault
shiftsYesShifts one per line (or JSON array), e.g. Mon 9:00 17:30 30
hourlyRateNoOptional hourly pay rate, e.g. 20
roundMinutesNoRound each day to 0, 5, 6 or 15 minutes0
overtimeAfterHoursNoWeekly hours threshold for overtime, e.g. 40 (optional)
overtimeMultiplierNoOvertime pay multiplier1.5
defaultBreakMinutesNoDefault break minutes for lines without one (optional)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already declare read-only, idempotent and open-world behavior, and the description still adds real operational context: server-side processing, files deleted immediately with nothing stored, a 5-calls/day free IP limit, and two paid auth paths (Radar API key or x402 per-call). It does not cover error behavior or response shape, which keeps it below a 5.

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?

Two sentences with the capability statement front-loaded, followed by privacy, rate-limit and pricing/auth details. The pricing URLs and three payment routes are dense but plausibly useful; the text is efficient overall with little wasted wording.

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?

For a six-parameter, stateless calculator with no output schema, the description supplies the input format gist, privacy guarantees, access tiers and the categories of returned values (daily/weekly totals, overtime, gross pay). A more explicit statement of the response structure would be the only remaining gap.

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 description coverage is 100%, so the baseline is 3, and the description goes slightly beyond by framing what the inputs produce – regular vs overtime split, gross pay, and optional rounding – and by noting overnight-shift handling in the shifts input, which the schema does not mention.

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 concrete verb and resource – 'Parse work shifts ... into daily and weekly totals, regular vs overtime hours, gross pay and optional 5/6/15-minute rounding' – which is specific enough to separate it from generic siblings like time_calculator or date_calculator without opening either 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 context is only implied by the input shape (shift lines with day/date, start, end, break minutes) and by the note that overnight shifts are handled. There is no explicit when-to-use/when-not guidance or named alternative among the many calculator siblings.

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