Skip to main content
Glama
skypier-jp-works

mcp-jp-paid-leave

年次有給休暇の付与日・付与日数を計算

calculate_entitlement

Calculates the grant date and number of days for statutory annual paid leave under Japan's Labor Standards Act based on hire date, grant number, and reference date method.

Instructions

入社日と算定基準日方式(原則の個別付与/斉一的取扱い)から、指定した回(第何回目)の年次有給休暇の付与日と付与日数(法定最低基準)を計算します。斉一的取扱いでは前倒しの連鎖を計算し、前倒しにより短縮された期間も返します。検証済み下限日(2001-04-01)はその回の基準日(算定基準日)にかかるものであり、入社日自体が古くても、指定した回の基準日が下限以降であればエラーにはなりません。

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
hireDateYes入社日 (YYYY-MM-DD形式、例: 2026-08-15)
grantNumberYes付与回数(第何回目の付与か)。1=第1回(雇入れ後6ヶ月時点), 2=第2回(1年6ヶ月時点)... 7以降は第7回以降(6年6ヶ月以上)としてすべて同じ日数上限になる
annualScheduledDaysNo1年間の所定労働日数(週所定労働日数が不定の場合に指定。指定するとweeklyScheduledDaysより優先される)
referenceDateMethodNo基準日の算定方式。"individual"=原則どおり労働者ごとに個別付与(省略時のデフォルト)。"uniform"=斉一的取扱い(全労働者共通の基準日に統一して前倒し付与)
weeklyScheduledDaysNo週所定労働日数(比例付与を計算したい場合に指定。1〜4日で比例付与対象、5日以上は通常の労働者扱い)
weeklyScheduledHoursNo週所定労働時間(任意。30時間以上の場合は比例付与の対象外であることの検証に使う)
uniformBasisMonthDaysNo斉一的取扱い(uniform)で使う、会社共通の基準日候補("MM-DD"形式の配列。例: ["04-01"] や ["04-01","10-01"])。referenceDateMethodが"uniform"の場合は必須
Behavior4/5

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

With no annotations, the description fully discloses behavior: it calculates based on legal minimum, handles uniform method with chain of early grants, and validates a lower bound date. It does not explicitly state it is read-only, but as a calculation tool, that is implied.

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 a single paragraph of four sentences, front-loading the main purpose. It is concise without waste, though a slightly more structured format (e.g., bullet points for return values) could improve readability.

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?

The description covers core calculation and two methods, and mentions return values (grant date, days, shortened period for uniform). However, without an output schema, it lacks details on the exact format of the response, which is needed for a 7-parameter tool.

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 coverage is 100%, so the description adds minimal extra meaning beyond the schema. The description provides some behavioral context for parameters (e.g., the lower bound check) but does not enhance individual parameter understanding significantly.

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?

The description clearly states the tool calculates annual paid leave entitlement (grant date and days) based on hire date and reference date method, distinguishing between individual and uniform methods. It is distinct from sibling tools like check_attendance_rate or list_grant_schedule.

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?

The description implies usage through its purpose but provides no explicit when-to-use or when-not-to-use guidance. It does not mention alternatives or context for choosing this over sibling tools.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/skypier-jp-works/mcp-jp-paid-leave'

If you have feedback or need assistance with the MCP directory API, please join our Discord server