Skip to main content
Glama

calculate weekly allowance

calculate_weekly_allowance
Read-onlyIdempotent

Calculates statutory South Korean weekly holiday allowance (주휴수당) for part-time and hourly workers.

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>",
      "hours": "<hours>"
    },
    "name": "calculate_weekly_allowance"
  }
}

Input Schema

NameRequiredDescriptionDefault
taxNoTax deduction option
hoursYesContractual working hours per week (must be >= 15 for allowance)
hourlyWageYesHourly wage in KRW (2026 minimum wage: 10,320 KRW)
employedWholeWeekNoExplicitly confirm employment through the entire applicable week
completedScheduledDaysNoExplicitly confirm attendance on all scheduled working days

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

B3.4/5.0
Behavior3/5

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

The annotations already declare readOnlyHint, idempotentHint, destructiveHint=false and a closed-world scope, so the safety profile is covered. The description adds only that this is a statutory calculation for a specific jurisdiction, and says nothing about eligibility determinations, assumptions when optional confirmations are omitted, or how partial weeks are handled. That is acceptable but not value-adding beyond structured fields.

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?

One front-loaded sentence with no filler, naming jurisdiction and worker type up front. Every word earns its place and nothing is buried.

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 deterministic five-parameter calculator with full schema coverage, complete annotations, and no output schema, the description supplies enough to call it correctly. It could go further by stating the eligibility conditions and what the result represents (an allowance amount in KRW), but the essentials are present.

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%, with each parameter documented including the 15-hour minimum, the 2026 minimum wage reference, and the tax enum options, so the schema carries the semantics. The description adds no param-level meaning such as the effect of omitting employedWholeWeek or completedScheduledDays. 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?

The description names a specific verb (calculates) and a specific resource (statutory South Korean weekly holiday allowance, 주휴수당), scoped to part-time and hourly workers. It is unambiguous on its own, but it does not distinguish itself from near neighbours such as calculate_overtime_pay or get_kr_minimum_wage, which an agent choosing among payroll calculators would need.

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 statement of when this tool should be used versus alternatives, no prerequisites, and no exclusions. The only usage boundary (15-hour threshold) lives in the schema, not the description, so the description gives no routing guidance at all.

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.