Skip to main content
Glama

calculate jp overtime cap check

calculate_jp_overtime_cap_check
Read-onlyIdempotent

Japan 36協定 overtime caps: 45h/360h (42/320 variable), special clause 720h, overtime+holiday under 100h a month and <= 80h on every 2-6 month average, >45h at most 6 months; driver 960h, construction disaster, doctors 960/1,860h. General information only, not legal advice, as of 2026-11-22.

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": {
      "months": "<months>"
    },
    "name": "calculate_jp_overtime_cap_check"
  }
}

Input Schema

NameRequiredDescriptionDefault
henkeiNoOne-year variable working-hours system
monthsYesUp to 12 months, oldest first
sectorNoSector
specialNoSpecial clause (特別条項) in the 36協定

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

B3.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, closed-world behavior, so safety is covered. The description adds real context beyond them: the concrete regulatory thresholds being evaluated, sector-specific regimes, and a 'general information only, not legal advice, as of 2026-11-22' disclaimer with an as-of date. It does not say what the result looks like (per-month pass/fail vs. aggregated violations), which is the remaining gap.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

It is a single dense sentence of numeric thresholds with no explicit statement of the operation, so the reader must parse legal limits before learning what the tool does. Every figure is arguably relevant, but the wall of numbers is not organized by which input triggers which rule, and the disclaimer is tacked on at the end.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

With 4 parameters including a nested months array of up to 12 entries and no output schema, the description should state what is returned (violations per month, which rule was breached, overall verdict). It covers the rule side thoroughly but leaves the response shape and the meaning of the up-to-12-months window 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 coverage is 100%, so the baseline is 3. The description does add meaning for the `sector` enum (driver 960h, construction_disaster, doctor_a/doctor_bc 960/1,860h), for `special` (720h special clause), and for `henkei` (42/320 variable system), which goes somewhat beyond the schema's one-line descriptions. It says nothing about how `holiday` hours interact with `overtime` beyond the 100h combined limit.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description names a specific domain resource – Japan 36協定 overtime caps – and enumerates the exact limits (45h/360h, 720h special clause, 100h monthly, driver 960h, doctors 960/1,860h), so an agent can tell this is a cap-compliance check rather than a pay calculation like calculate_overtime_pay. It never states the verb explicitly (check supplied months against these caps and report), so the action must be inferred from the name.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

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

There is no when-to-use guidance, no statement of prerequisites (e.g. that months must be oldest-first and represent actual recorded hours), and no routing to alternatives such as calculate_overtime_pay for pay or check_jp_company_calendar for scheduling. Usage is only implied by the parameter names in the schema.

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.