Skip to main content
Glama

calculate overtime pay

calculate_overtime_pay
Read-onlyIdempotent

Calculates statutory overtime, night, and holiday allowances under Korean Labor Standards Act.

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": {
      "hourlyWage": "<hourlyWage>"
    },
    "name": "calculate_overtime_pay"
  }
}

Input Schema

NameRequiredDescriptionDefault
hourlyWageYesBase ordinary hourly wage in KRW
nightHoursNoNight hours worked between 22:00 and 06:00 (additional 0.5x)
overtimeHoursNoOvertime hours exceeding 8h/day or 40h/week (1.5x)
holidayHoursOver8NoHoliday hours exceeding 8 hours (2.0x)
holidayHours8orLessNoHoliday hours up to 8 hours (1.5x)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

B3.2/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint, destructiveHint=false, and openWorldHint=false, so the safety profile is covered. The description adds that the calculation is statutory and jurisdiction-specific (Korean LSA). However, with no output schema, it says nothing about what is returned (per-category breakdown vs. a single total), rounding conventions, or the statutory assumptions (8h/day, 40h/week baselines) baked into the computation.

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?

A single front-loaded sentence with no filler, and the statutory framing leads. It earns its place but is short enough that the sizing is a touch under-specified rather than optimally calibrated.

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?

For a five-parameter calculation tool with no output schema and no return-value documentation, the description leaves the agent guessing at output shape and whether results are a total or a breakdown. The legal basis and jurisdiction are stated, which is the main completeness win, but the output side is entirely unaddressed.

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 five parameters including the KRW wage basis and the 0.5x/1.5x/2.0x multipliers are already fully documented. The description merely enumerates the same categories (overtime, night, holiday) and adds no syntax, units, or defaults beyond the schema. Baseline 3 applies.

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?

States a specific verb (calculates) and a well-bounded resource set: statutory overtime, night, and holiday allowances under the Korean Labor Standards Act. An agent can distinguish this from calculate_severance_pay or calculate_annual_leave. It stops short of explicitly naming a sibling or exclusion, so it is not a 5.

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?

No when-to-use, when-not-to-use, or prerequisite guidance is given. The agent is not told how this differs from calculate_weekly_allowance or calculate_net_salary, both of which plausibly touch overtime-adjacent payroll figures. The jurisdiction mention implies context but is not guidance.

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.