繰越・時効消滅日数の計算
calculate_carryoverCalculate annual paid leave carryover under Japan's Labor Standards Act. Based on grant and usage records, it determines days that expire after 2 years and remaining leave as of a specific date.
Instructions
複数回の付与記録と取得記録から、時効2年(労働基準法第115条)による消滅日数と、基準日時点の残日数を計算します。取得は古い付与分から順に消化するものとして計算します。
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": {
"grants": "<grants>",
"asOfDate": "<asOfDate>"
},
"name": "calculate_carryover"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| grants | Yes | 付与記録の配列(複数年分をまとめて渡せる) | |
| asOfDate | Yes | 基準日(この日時点の残日数・消滅日数を計算する) (YYYY-MM-DD形式、例: 2026-08-15) | |
| usageRecords | No | 年次有給休暇を取得した記録の配列(省略時は消化なしとして計算) |