Skip to main content
Glama

datetime.payroll_period

Read-onlyIdempotent

Calculates the monthly payroll settlement period for a given as-of date, returning start and end dates based on a configurable start day from 1 to 28.

Instructions

as_of(YYYY-MM-DD)가 속한 월 단위 급여 정산 기간의 period_start, period_end 를 구한다. start_day(128, 기본 1)일에 시작해 다음 달 start_day 전날에 끝난다. 지급일이 아닌 산정 기간이며 2931일 시작은 지원하지 않는다.

Input Schema

NameRequiredDescriptionDefault
as_ofYes
start_dayNo

Output Schema

NameRequiredDescriptionDefault
_metaNo서버가 붙이는 영수증(integrity), 엔진, 힌트
traceYes계산 근거(tool, formula, inputs, steps, output)
period_endYes
period_startYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.3.0

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already cover read-only/idempotent/closed-world, and the description goes beyond them by spelling out the exact interval rule (start on start_day, end the day before next month's start_day) and the hard constraint that 29–31 is unsupported. Missing is what happens on an invalid start_day (error vs clamp), which keeps it from a 5.

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?

Three compact sentences ordered as output-what → rule → caveat, with no filler. Slight density cost comes from packing the range, default and unsupported-case into one clause, but nothing is wasted.

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?

With only 2 parameters, no output schema text needed and annotations covering safety, the description is essentially complete for correct invocation. A note on invalid start_day handling or on whether as_of is clamped would close the remaining edge case.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0%, so the description must carry both parameters, and it largely does: as_of is shown as YYYY-MM-DD and start_day is bounded to 1~28 with default 1 plus its effect on the interval end. The only redundancy is restating the default already present in the schema.

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?

Starts with a precise verb-and-resource statement: it computes period_start and period_end of the monthly payroll settlement period containing as_of. An agent immediately knows this is a payroll-period boundary calculator, distinct from generic date arithmetic or tax-period siblings.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The closing sentence '지급일이 아닌 산정 기간이며' pre-empts the most likely misuse (treating the result as a pay date) and states an explicit unsupported case (start_day 29~31). It does not name a sibling alternative, so it stops short of a 5.

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

Deploy Server

Other Tools