API & MCP

Everything a person can do on Crewdesk Overtime to Time Off Calculator, a program or AI agent can do with the same inputs and get the identical result.

HTTP API

  • POST https://crewdeskovertimetoil.usefulweb.app/api/v1/calculate – run Crewdesk Overtime to Time Off Calculator
  • GET https://crewdeskovertimetoil.usefulweb.app/api/v1/tool – inputs, output schema, examples
  • OpenAPI 3.1: /openapi.json · /openapi.yaml
  • Errors: application/problem+json; 422 includes per-field errors.

Crewdesk Overtime to Time Off Calculator

Paste the hours someone worked (start and end times, night shifts over midnight, or day totals) and their planned hours per weekday. The calculator compares both per week or per month: public holidays and approved leave count as worked with their planned hours, overtime can be capped per period and can lapse a number of months later. The result is the overtime you can turn into time off in lieu, period by period and day by day. Optionally counts the real elapsed time in a time zone, so a night over the end of daylight saving time is one hour longer.

Inputs of Crewdesk Overtime to Time Off Calculator
FieldTypeDefaultDescription
entriestextarea"2026-11-02 21:00-07:00\n2026-11-03 21:00-07:30\n2026-11-04 21:00-08:00\n2026-11Worked time (one per line). “2026-11-02 21:00-07:00” (an end at or before the start is the next morning), “2026-11-02T21:00..2026-11-03T07:00”, or a day total “2026-11-02 9.5h”.
plannedHourstext"Sun-Wed 10"Planned hours per weekday. For example “Mon-Fri 8”, “Mon-Fri 7.7” or “Sun-Wed 10, Sat 6”. Days not named are days off. A shift counts on the day it starts.
fromtext"2026-11-02"First day (YYYY-MM-DD)
totext"2026-11-15"Last day (YYYY-MM-DD, at most 400 days)
periodselect (week, month)"week"Compare per
weekStartselect (1, 0, 6)"1"Weeks start on
capHoursnumber0At most … overtime hours per period count (0 = no cap)
expiryMonthsnumber3Time off lapses … months after the period (0 = never)
absencestextarea—Approved leave (one range per line, or “YYYY-MM-DD 4h”). Counted as worked with the planned hours of each day, so leave never creates or costs overtime.
countrytext"DE"Country for public holidays (optional)
subdivisiontext"DE-HH"State or region (optional). ISO 3166-2 code such as DE-BY (Bavaria), DE-BE (Berlin), AT-9 (Vienna), CH-ZH or US-CA. Without it only nationwide holidays count.
extraHolidaystextarea—Extra holidays (YYYY-MM-DD, name per line)
attributeselect (start, midnight)"start"A night shift counts on
clockselect (wall, elapsed)"wall"Count durations
timeZonetext"Europe/Berlin"Time zone (for elapsed time)
convertHoursnumber0Hours to turn into time off (0 = all available)

Example request

Two weeks of night shifts (Sun–Wed, 10 h each)

curl -X POST https://crewdeskovertimetoil.usefulweb.app/api/v1/calculate -H 'content-type: application/json' -d '{"entries":"2026-11-02 21:00-07:00\n2026-11-03 21:00-07:30\n2026-11-04 21:00-08:00\n2026-11-08 21:00-07:00\n2026-11-09 21:00-07:00\n2026-11-10 21:00-09:00\n2026-11-11 21:00-07:00\n2026-11-15 21:00-07:00","plannedHours":"Sun-Wed 10","from":"2026-11-02","to":"2026-11-15","country":"DE","subdivision":"DE-HH"}'

Every result contains

inputs (normalised, defaults applied), summary, result (validated against the published schema), units, assumptions, sources, warnings, computedAt and links.

MCP (Model Context Protocol)

  • Streamable HTTP endpoint: https://crewdeskovertimetoil.usefulweb.app/mcp – protocol revisions 2026-07-28 (stateless) and 2025-11-25 / 2025-06-18 / 2025-03-26 (initialize handshake).
  • Tools: crewdesk_overtime_toil
  • Local stdio connector: node src/mcp-stdio.ts --tool=crewdesk-overtime-toil
{
  "mcpServers": {
    "crewdesk-overtime-toil": { "type": "http", "url": "https://crewdeskovertimetoil.usefulweb.app/mcp" }
  }
}