Skip to main content
Glama
skypier-jp-works

mcp-jp-paid-leave

繰越・時効消滅日数の計算

calculate_carryover

Calculate 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条)による消滅日数と、基準日時点の残日数を計算します。取得は古い付与分から順に消化するものとして計算します。

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
grantsYes付与記録の配列(複数年分をまとめて渡せる)
asOfDateYes基準日(この日時点の残日数・消滅日数を計算する) (YYYY-MM-DD形式、例: 2026-08-15)
usageRecordsNo年次有給休暇を取得した記録の配列(省略時は消化なしとして計算)
Behavior4/5

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

No annotations are provided, so the description carries the full burden. It discloses the FIFO consumption assumption and the computation of expiration and remaining days, though it does not mention side effects or permissions (likely read-only).

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?

The description is two sentences, front-loading the purpose then providing one key behavioral detail. No redundant information.

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?

Given the complexity (multiple grants, usage records, FIFO, statute) and no output schema, the description covers inputs, outputs, and calculation logic adequately. Lacks edge case handling but sufficient for typical use.

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 each parameter. The description adds no additional per-parameter detail beyond overall context, setting a baseline of 3.

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 expiration days under the 2-year statute and remaining days as of a reference date using multiple grant and usage records. It is distinct from sibling tools like check_attendance_rate or calculate_entitlement.

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 explains the calculation method (FIFO consumption) and inputs, but does not explicitly state when to use this tool over alternatives or provide exclusions.

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