Skip to main content
Glama

ArosTime Film Union Rules

Calculate Film Overtime & Meal Penalties

calculate_film_overtime
Read-onlyIdempotent

Deterministically calculate a film/TV crew member's worked hours, 1.5x overtime, 2x double time, 3x triple time, meal penalties, turnaround shortfall, and estimated gross pay under any of ArosTime's 41 built-in union agreements (or custom thresholds). Supports overnight wraps after midnight.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "call": "<call>",
      "wrap": "<wrap>"
    },
    "name": "calculate_film_overtime"
  }
}

Input Schema

NameRequiredDescriptionDefault
callYesCall time (24h '07:00' or 12h '7:00am').
rateNoOptional pay rate amount (e.g. 55 for $55/hr or 650 for $650/day).
wrapYesWrap time (24h '20:30' or 12h '8:30pm'; values earlier than call roll past midnight).
meal1_inNoOptional Meal 1 in time (e.g. '13:30').
meal2_inNoOptional Meal 2 in time.
provinceNoOptional 2-letter province/state code (e.g. 'ON', 'BC', 'CA', 'NY').
meal1_outNoOptional Meal 1 out time (e.g. '13:00').
meal2_outNoOptional Meal 2 out time.
rate_unitNoUnit for `rate` (defaults to 'hourly').
union_localNoOptional free-text union local name if agreement_id is omitted (e.g. 'IATSE 700').
agreement_idNoBuilt-in agreement ID (e.g. 'iatse-873', 'iatse-600', 'iatse-891', 'iatse-52', 'iatse-asa'). Omit for standard 8h OT / 12h DT rules.
french_hoursNoSet true if the shoot ran continuous / French hours (no unpaid meal break penalty).
previous_wrapNoOptional previous day's wrap time (e.g. '23:00') to check turnaround encroachment against today's call.
fringe_percentNoOptional employer fringe percentage (e.g. 24) to report loaded employer cost alongside gross.
distant_locationNoSet true if shooting on distant location (applies agreement's distant rules where defined).
day_number_in_weekNo1–5 for normal weekday, 6 for 6th worked day, 7 for 7th worked day.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.9/5.0
Behavior4/5

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

Annotations already cover the safety profile (readOnlyHint=true, idempotentHint=true, destructiveHint=false). The description adds meaningful behavioral context beyond that: calculations are deterministic, it enumerates the outputs computed (hours, 1.5x OT, 2x DT, 3x TT, meal penalties, turnaround shortfall, gross pay), and it discloses support for overnight wraps after midnight. It still omits rounding behavior, error handling, and what happens when a supplied agreement is not found.

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 definition is a single dense sentence, front-loaded with the core calculation purpose and followed by a compact list of computed outputs and capabilities. Every clause names a concrete calculation component or supported condition, though the sentence is long and could be slightly easier to scan with light structuring.

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 complex 16-parameter calculation tool with no output schema, the description names the main computed outputs (hours, overtime tiers, meal penalties, turnaround, gross pay) and key operating modes (union agreements, custom thresholds, overnight wraps). It is sufficient to understand what the tool returns and when it is relevant, but it leaves output structure, edge-case behavior, and agreement-not-found handling unstated.

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%, so all 16 parameters are already documented in the input schema. The description adds high-level context for agreement_id, union_local, and overnight handling via phrases like '41 built-in union agreements (or custom thresholds)' and 'overnight wraps after midnight', but it does not deepen parameter semantics beyond what the schema already provides.

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 uses a specific verb and resource: 'calculate' a film/TV crew member's worked hours, overtime, penalties, turnaround, and pay. It clearly distinguishes calculation from sibling tools like compare_union_agreements, get_agreement_rules, and list_union_agreements by focusing on deterministic computation rather than rule lookup.

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?

The description establishes the domain (film/TV crew overtime under 41 union agreements or custom thresholds) and notes overnight wrap support, so usage is implied. However, it never explicitly says when to use this tool versus the sibling rule-inspection tools, nor does it state prerequisites, exclusions, or what to do if no agreement applies.

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