Skip to main content
Glama

calculate annual leave

calculate_annual_leave
Read-onlyIdempotent

Calculates statutory annual paid leave days (연차 휴가) and unused leave cash-out allowance by years of service.

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": {
      "yearsOfService": "<yearsOfService>"
    },
    "name": "calculate_annual_leave"
  }
}

Input Schema

NameRequiredDescriptionDefault
dailyHoursNoDaily regular working hours (default 8)
hourlyWageNoBase ordinary hourly wage in KRW
unusedDaysNoNumber of unused leave days to cash out
yearsOfServiceYesContinuous service duration in completed years

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.5/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint, non-destructive and closed-world, so the safety profile is fully covered. The description adds that the tool performs a statutory (Korean labor law) calculation and returns both leave days and a cash-out allowance, which is useful. It does not disclose the underlying statutory assumptions (base 15 days, accrual caps, sub-one-year handling) or whether results are authoritative versus estimates.

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

Conciseness5/5

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

A single sentence that front-loads the core action and output, with zero redundant or filler wording. Nothing in it needs trimming.

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?

There is no output schema, and the description is helpful in naming two return values (leave days and cash-out allowance). However, for a statutory calculator with jurisdiction-specific rules, it omits assumptions, edge cases (e.g., under one year of service, minimum-wage-based wage substitution) and whether hourlyWage is mandatory for the cash-out portion.

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 the schema already documents yearsOfService, dailyHours, hourlyWage and unusedDays; baseline is 3. The phrase 'by years of service' and 'unused leave cash-out allowance' loosely map to yearsOfService/unusedDays, but no additional meaning (units, ranges, currency handling, interaction between hourlyWage and unusedDays) is added beyond the schema.

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 verb (Calculates) and a specific resource (statutory annual paid leave days and unused leave cash-out allowance), with the Korean term 연차 휴가 to disambiguate. It is clearly distinct from siblings like calculate_severance_pay or calculate_weekly_allowance, though it does not explicitly contrast itself with them.

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 is only implied: an agent can infer this applies to Korean statutory leave entitlement given 'statutory' and 연차 휴가, but there is no explicit when-to-use, when-not-to-use, or routing to related tools (e.g., severance pay). No prerequisites such as employment type or jurisdiction scope are stated.

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.