Skip to main content
Glama

WageHourEngine — Deterministic U.S. Wage & Hour Compliance MCP

Evaluate Weekly Hourly Timesheet Compliance

evaluate_timesheet
Read-onlyIdempotent

Calculate 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

NameRequiredDescriptionDefault
shiftsYesNon-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).
bonusesNoOptional array of nondiscretionary bonuses earned during the workweek (defaults to empty). Flat-sum bonuses use CA Alvarado non-OT divisor; production uses FLSA divisor.
timezoneYesValid IANA tzdb identifier (e.g., 'America/Los_Angeles', 'America/Chicago', 'America/New_York', 'UTC'). Used for DST-safe local midnight rate-change splits.
worksiteYesNon-PII business location object identifying the controlling jurisdiction via street address, (lat, lon), state_code, or 7-digit fips_place_code.
worker_refYesOpaque 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_cbaNoDefaults 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_codeNoEnumerated 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_rateNoDefaults 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_creditNoDefaults 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_breaksNoDefaults 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_headcountYesPositive 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_dateYesISO-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

NameRequiredDescriptionDefault
violationsYesList of detected statutory violations with verbatim citations.
jurisdictionYesResolved controlling jurisdiction and minimum-wage compliance summary.
audit_receiptYesImmutable RFC 8785 SHA-256 audit receipt for compliance documentation.
review_reasonsNoStructured UPL reason codes (non-empty iff review_required is True).
review_requiredYesTrue when a statutory edge case requires human/legal compliance review.
hours_and_gross_payYesItemized hours, OT, bonuses, break penalties, and total statutory gross.
regular_rate_calculationYesDeterministic regular-rate-of-pay breakdown.
variance_vs_flsa_only_usdYesDollar delta between state statutory gross and naive FLSA-only gross.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, non-destructive, and closed-world, so the safety profile is covered. The description adds genuinely new behavioral context: stateless execution, opaque worker_ref only (no PII), and the failure mode of isError=true on invalid/PII payloads. It stops short of describing partial-result or review_required behaviors, 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?

The description is dense but front-loaded: the calculation scope comes first, then the use/do-not-use routing, then the operational constraints. The statutory enumeration is long but each item names a distinct computation. Slight over-packing of jargon is the only cost.

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?

With a full output schema, rich annotations, and 100%-documented parameters, the description need only cover routing and failure modes, which it does. The only gap is that entry-point fields like workweek_start_date and timezone (which materially affect weekly OT windows) are not called out in prose, though the schema covers them well.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100% and each parameter carries rich inline documentation (formats, defaults, statutory effects), so the schema does the heavy lifting. The description only reinforces the `shifts[]` prerequisite and the worker_ref opacity; it adds no syntax or constraint detail beyond the schema. Baseline 3 is appropriate.

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 states a specific verb and resource ('Calculate exact Decimal statutory pay for an anonymized workweek') and then enumerates the exact computations (regular rate, OT/DT tiers, break penalties, spread of hours, FLSA variance, audit receipt). An agent can distinguish this from the sibling tools without inspecting 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 Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Explicit routing is given: 'USE THIS TOOL WHEN you have concrete shift timestamps (`shifts[]`)' plus 'DO NOT use for rate checks (`audit_minimum_wage_floor`) or rule lookups (`resolve_jurisdiction`)'. Both the positive condition and the two named alternatives are stated, leaving nothing to inference.

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