Skip to main content
Glama

calculate kr shutdown allowance

calculate_kr_shutdown_allowance
Read-onlyIdempotent

Korean shutdown allowance (휴업수당, 근로기준법 제46조 · 시행령 제26조) when the employer suspends work for its own reasons: at least 70% of average wage for the shutdown days; the ordinary wage may be paid instead when 70% of average wage exceeds it; wages paid for partial work during the period are deducted first; less is allowed only with Labor Relations Commission approval; not applicable under 5 employees (시행령 별표 1). Average daily wage = 3-month wages ÷ calendar days.

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": {
      "threeMonthWages": "<threeMonthWages>",
      "monthlyOrdinaryWage": "<monthlyOrdinaryWage>",
      "shutdownDays": "<shutdownDays>"
    },
    "name": "calculate_kr_shutdown_allowance"
  }
}

Input Schema

NameRequiredDescriptionDefault
fivePlusNoWorkplace normally employs 5 or more people
calendarDaysNoCalendar days in those 3 months (default 92)
shutdownDaysYesCalendar days of shutdown
threeMonthWagesYesTotal wages for the 3 months before the shutdown (KRW)
approvedReductionNoThe Labor Relations Commission approved a lower allowance
paidDuringShutdownNoWages received for partial work during the shutdown (KRW)
monthlyOrdinaryWageYesMonthly ordinary wage (KRW)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint, and openWorldHint=false, so safety is covered. The description goes further by disclosing the decision rule itself — 70% floor, ordinary-wage alternative when it exceeds the floor, deduction of partial-work wages first, and the 5-employee exclusion — which tells the agent what the output represents and when a zero/inapplicable result is expected. It does not describe the shape of the returned figure (single amount vs. breakdown).

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?

Front-loaded with the core entitlement and rate, then conditions layered via semicolons. It is one very long run-on sentence, which costs some scannability, but no clause is filler — each encodes a distinct legal rule the calculation depends on.

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 7-parameter deterministic calculator with no output schema, the description supplies the governing rule, applicability limits, and the wage-derivation formula, which is enough to call it correctly. The remaining gap is the return value — whether the result is a single KRW amount or includes the 70% floor comparison — which the agent must discover by calling.

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

Parameters5/5

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

Schema coverage is 100%, so the baseline would be 3, but the description genuinely adds cross-parameter meaning: 'Average daily wage = 3-month wages ÷ calendar days' links threeMonthWages and calendarDays, and the 70%/ordinary-wage comparison, deduction ordering, approved-reduction, and fivePlus exclusion each explain how the corresponding optional parameters change the result rather than merely restating them.

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?

States a specific computation (Korean shutdown allowance under 근로기준법 제46조 / 시행령 제26조) with the triggering condition 'when the employer suspends work for its own reasons'. Despite ~30 calculate_* siblings, none overlap: ordinary wage, dismissal notice pay, and injury leave pay are distinct tools, and this description pins the resource to shutdown allowances unambiguously.

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

Usage Guidelines4/5

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

Gives real applicability boundaries: applies when the employer suspends work for its own reasons, does not apply to workplaces with fewer than 5 employees (시행령 별표 1), and a reduced rate requires Labor Relations Commission approval. What it lacks is explicit routing to a sibling such as calculate_kr_ordinary_wage or calculate_kr_dismissal_notice_pay when the scenario is a different entitlement, so the agent must infer alternatives.

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.