Evaluate Weekly Hourly Timesheet Compliance
evaluate_timesheetCalculate exact Decimal statutory pay for an anonymized workweek: regular rate (CA Alvarado bonuses), daily/weekly/7th-day OT/DT, CA Donohue/Ferra & MN 2026 2x break penalties, NY Spread of Hours, FLSA variance, citations, and an RFC 8785 (+ Ed25519) audit receipt. USE THIS TOOL WHEN you have concrete shift timestamps (shifts[]); DO NOT use for rate checks (audit_minimum_wage_floor) or rule lookups (resolve_jurisdiction). Read-only, stateless, opaque worker_ref only; returns isError=true on invalid/PII.
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": [
{
"breaks": [
{
"paid": false,
"waived": false,
"end_utc": "2026-11-23T21:35:00Z",
"start_utc": "2026-11-23T21:05:00Z"
}
],
"end_utc": "2026-11-24T02:30:00Z",
"start_utc": "2026-11-23T16:00:00Z",
"work_date": "2026-11-23",
"hourly_rate_usd": "20.00"
},
{
"breaks": [
{
"paid": false,
"waived": false,
"end_utc": "2026-11-24T20:30:00Z",
"start_utc": "2026-11-24T20:00:00Z"
}
],
"end_utc": "2026-11-25T00:30:00Z",
"start_utc": "2026-11-24T16:00:00Z",
"work_date": "2026-11-24",
"hourly_rate_usd": "20.00"
},
{
"breaks": [
{
"paid": false,
"waived": false,
"end_utc": "2026-11-25T20:00:00Z",
"start_utc": "2026-11-25T19:30:00Z"
}
],
"end_utc": "2026-11-26T04:00:00Z",
"start_utc": "2026-11-25T15:00:00Z",
"work_date": "2026-11-25",
"hourly_rate_usd": "20.00"
},
{
"breaks": [
{
"paid": false,
"waived": false,
"end_utc": "2026-11-26T20:30:00Z",
"start_utc": "2026-11-26T20:00:00Z"
}
],
"end_utc": "2026-11-27T00:30:00Z",
"start_utc": "2026-11-26T16:00:00Z",
"work_date": "2026-11-26",
"hourly_rate_usd": "20.00"
},
{
"breaks": [
{
"paid": false,
"waived": false,
"end_utc": "2026-11-27T20:30:00Z",
"start_utc": "2026-11-27T20:00:00Z"
}
],
"end_utc": "2026-11-28T00:30:00Z",
"start_utc": "2026-11-27T16:00:00Z",
"work_date": "2026-11-27",
"hourly_rate_usd": "20.00"
}
],
"bonuses": [
{
"amount_usd": "100.00",
"bonus_type": "flat_sum"
}
],
"timezone": "America/Los_Angeles",
"worksite": {
"address": "200 N Spring St, Los Angeles, CA 90012",
"state_code": "CA",
"fips_place_code": "0644000"
},
"worker_ref": "wrk_la_demo_001",
"industry_code": "general",
"employer_headcount": 45,
"workweek_start_date": "2026-11-23"
},
"name": "evaluate_timesheet"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| shifts | Yes | Non-empty array of 1 to 21 shift punch records worked during this workweek (ordered or unordered; grouped automatically by work_date and split at local midnight). | |
| bonuses | No | Optional array of nondiscretionary bonuses earned during the workweek (defaults to empty). Flat-sum bonuses use CA Alvarado non-OT divisor; production uses FLSA divisor. | |
| timezone | Yes | Valid IANA tzdb identifier (e.g., 'America/Los_Angeles', 'America/Chicago', 'America/New_York', 'UTC'). Used for DST-safe local midnight rate-change splits. | |
| worksite | Yes | Non-PII business location object identifying the controlling jurisdiction via street address, (lat, lon), state_code, or 7-digit fips_place_code. | |
| worker_ref | Yes | Opaque pseudonymous worker ID (3-64 alphanumeric/underscore/hyphen chars matching ^[A-Za-z0-9_-]{3,64}$, e.g., 'wrk_la_demo_001'). Never pass names, SSNs, or emails (triggers HTTP 422 PII_PAYLOAD_REJECTED). | |
| has_union_cba | No | Defaults to false. Set true if a collective bargaining agreement covers this worker; sets review_required=true with UNION_CBA_EXEMPTION for manual counsel review. | |
| industry_code | No | Enumerated sector override ('general', 'fast_food_chain_60plus', 'healthcare_sb525', 'hospitality', 'agriculture'; defaults to 'general'). Governs CA AB 1228/SB 525 floors, NY Part 146 hospitality spread-of-hours, and agricultural UPL flags. | general |
| is_piece_rate | No | Defaults to false. Set true if compensation includes piece-rate units; sets review_required=true with PIECE_RATE_COMPENSATION (Cal. Lab. Code § 226.2). | |
| uses_tip_credit | No | Defaults to false. Set true if employer claims a tip credit; flags prohibition in CA/MN ($0 permitted) and sets review_required=true with TIPPED_CREDIT_EDGE_CASE. | |
| audit_rest_breaks | No | Defaults to false (only audits CA paid rest breaks when paid breaks are punched). Set true to enforce CA Brinker 10-min rest-break counts even when unpunched. | |
| employer_headcount | Yes | Positive integer (>= 1) representing total company-wide employees. Selects local headcount tiers (e.g., Saint Paul MN <=5 micro, 6-100 small, 101+ large). | |
| workweek_start_date | Yes | ISO-8601 calendar date (YYYY-MM-DD) marking Day 1 of the employer's fixed 7-day workweek. Controls CA 7th-consecutive-day OT/DT and weekly 40-hour windows. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| violations | Yes | List of detected statutory violations with verbatim citations. | |
| jurisdiction | Yes | Resolved controlling jurisdiction and minimum-wage compliance summary. | |
| audit_receipt | Yes | Immutable RFC 8785 SHA-256 audit receipt for compliance documentation. | |
| review_reasons | No | Structured UPL reason codes (non-empty iff review_required is True). | |
| review_required | Yes | True when a statutory edge case requires human/legal compliance review. | |
| hours_and_gross_pay | Yes | Itemized hours, OT, bonuses, break penalties, and total statutory gross. | |
| regular_rate_calculation | Yes | Deterministic regular-rate-of-pay breakdown. | |
| variance_vs_flsa_only_usd | Yes | Dollar delta between state statutory gross and naive FLSA-only gross. |