Skip to main content
Glama

ShiftSum Time Card

Calculate hours worked

calculate_hours
Read-onlyIdempotent

Use this when the user wants a time card calculator or hours worked calculator: totaling clock-in/clock-out times for a day, week, or biweekly period, with lunch breaks, multiple in and out punches per day, overnight shifts, 12-hour or 24-hour (military) time, punch rounding (nearest 5/6/15 minutes or the 7-minute rule), overtime and double time per workweek (US federal 40 h, California daily rules, or custom), and gross pay from an hourly rate. Pass times as the user wrote them; times without am/pm ("9 to 5") are resolved and the reading is returned in assumptions for the user to confirm. Returns per-day hours in H:MM and decimal, regular/overtime/double-time split, totals, exact gross pay, warnings (overlapping punches, missing clock-out, shifts over 16 h), and CSV and printable PDF timesheet links. Does not compute taxes or take-home pay, give legal advice about breaks or overtime, track time live, or set reminders. Do not use for simple unit conversions without clock times.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
entriesYesOne item per worked day (up to 62, e.g. a biweekly or monthly time card). Example: [{"day":"Mon","punches":[{"start":"8:45","end":"17:30"}],"unpaid_break_minutes":30}].
currencyNoISO currency code for pay amounts, default USD, e.g. EUR or GBP.
roundingNoPunch rounding applied to each clock-in and clock-out: none (default), nearest_5, nearest_6 (tenth of an hour), nearest_15, or seven_minute_rule (8:07 -> 8:00, 8:08 -> 8:15).
pay_periodNoOptional pay period label printed on the timesheet, e.g. "Sep 28 - Oct 11, 2026" or "Week 40".
hourly_rateNoOptional regular hourly pay rate in the chosen currency for gross pay, e.g. 18.50 (USD) or 1100 (JPY). Leave out for hours only.
week_start_dayNoFirst day of the workweek for dated entries, e.g. "sun". Default: the weekday of the earliest date.
overtime_presetNoOvertime rule set. us_federal (default): over 40 h per workweek at 1.5x. california: over 8 h/day and 40 h/week at 1.5x, over 12 h/day at 2x, plus the 7th-consecutive-day rule. none: no overtime split.
seventh_day_ruleNoCalifornia 7th-consecutive-day rule: on the 7th straight workday of a workweek the first 8 h are overtime and the rest double time. Default on for california, off otherwise.
overtime_multiplierNoOvertime pay multiplier, default 1.5.
double_time_multiplierNoDouble-time pay multiplier, default 2.
daily_overtime_after_hoursNoOverride the daily overtime threshold in hours, e.g. 8 (Alaska, Nevada) or 12 (Colorado). 0 turns daily overtime off.
weekly_overtime_after_hoursNoOverride the weekly overtime threshold in hours, e.g. 40 or 37.5. 0 turns weekly overtime off.
daily_double_time_after_hoursNoOverride the daily double-time threshold in hours, e.g. 12. 0 turns double time off.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
payYes
daysYes
noteYes
weeksYes
totalsYes
settingsYes
warningsYes
downloadsYes
pay_periodYes
assumptionsYesReadings of ambiguous clock times (no am/pm) that the user should confirm; empty when none.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

Score is being calculated.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources