Skip to main content
Glama

calculate kr ordinary wage

calculate_kr_ordinary_wage
Read-onlyIdempotent

Korean ordinary wage (통상임금) hourly rate and statutory overtime / night / holiday premiums, before and after the Supreme Court en banc ruling of 2024-12-19 (2020다247190) that counts regular bonuses with an employment-on-payday condition. Monthly ordinary wage = base + fixed allowances + annual regular bonus ÷ 12, divided by contracted monthly hours (209 for 40 h/week). Overtime ×1.5, night +0.5, holiday ×1.5 up to 8 h and ×2 beyond; firms under 5 employees pay no premium.

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": {
      "basePay": "<basePay>",
      "fixedAllowances": "<fixedAllowances>",
      "bonusAnnual": "<bonusAnnual>",
      "bonusConditional": "<bonusConditional>",
      "overtime": "<overtime>",
      "night": "<night>",
      "holiday": "<holiday>"
    },
    "name": "calculate_kr_ordinary_wage"
  }
}

Input Schema

NameRequiredDescriptionDefault
nightYesNight hours (22:00-06:00) per month
basePayYesMonthly base pay (KRW)
holidayYesHoliday hours per month
overtimeYesOvertime hours per month
smallFirmNoFewer than 5 employees: no premium
bonusAnnualYesRegular bonus per year (KRW)
holidayOver8NoHoliday hours beyond 8 a day (part of holiday)
monthlyHoursNoContracted monthly hours (default 209)
fixedAllowancesYesMonthly allowances paid to everyone at a fixed amount (KRW)
bonusConditionalYesBonus paid only to those employed on the payday (or after a minimum number of days)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint, destructiveHint=false, and a closed world, so the safety profile is covered. The description adds substantive domain behavior beyond that: the exact aggregation formula, the 209-hour divisor convention, the premium multipliers, the 8-hour holiday threshold, and the small-firm exemption. It does not disclose rounding, currency, or output shape, but with no output schema that is a minor omission rather than a fundamental gap.

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 resource is identified first, then the legal date, then the formula, then the multipliers. Every clause carries domain information, though the arithmetic notation (÷ 12, ×1.5, +0.5) is terse enough that a reader must parse carefully. It is appropriately sized for a 10-parameter statutory calculator.

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 10-parameter, purely computational tool with no output schema, the description supplies the full calculation logic an agent needs to sanity-check inputs and results, including the statutory basis and the small-employer exception. Remaining gaps are minor: output units are only implied by 'KRW' on the schema fields, and rounding behavior is unstated.

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

Parameters4/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, but the description earns more by explaining how parameters interact rather than restating field labels. It clarifies that annual regular bonus is divided by 12, that contracted monthly hours default to 209 for a 40-hour week, that holiday hours above 8 per day are priced at double rather than 1.5x (giving meaning to holidayOver8), and that the payday-employment condition determines whether a bonus counts as ordinary wage (giving meaning to bonusConditional). smallFirm is also tied to a concrete consequence.

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 resource and scope: Korean ordinary wage (통상임금) hourly rate plus statutory overtime, night, and holiday premiums. The legal citation and formula make the domain unambiguous. It stops short of explicitly distinguishing itself from adjacent siblings such as check_kr_fixed_overtime_pay or calculate_kr_wage_guarantee, so an agent must infer the boundary from subject matter alone.

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?

Usage context is implied rather than stated: the reference to the 2024-12-19 en banc ruling and the under-5-employee carve-out tell the agent which legal regime applies, but there is no explicit when-to-use or when-not-to-use statement. No alternative tool is named, and there is no guidance about which inputs to zero out when a premium category does not apply.

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.