Skip to main content
Glama

datetime.day_count

Read-onlyIdempotent

Calculates day counts and annualized year fractions between two dates using selected day-count conventions for interest and finance calculations.

Instructions

이자 계산용 일수 days(정수)와 연 환산 비율 year_fraction(Decimal 문자열)을 구한다. convention 은 30/360(말일 31일 보정만 적용, 2월 말일 규칙 없음) | ACT/365 | ACT/ACT(연 경계별 윤년 분모) | ACT/360 이며 날짜는 YYYY-MM-DD, end 는 start 이후여야 한다. 비율은 반올림 없이 유효 50자리까지 나온다.

Input Schema

NameRequiredDescriptionDefault
endYes
startYes
conventionYes

Output Schema

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

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.3.0

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already cover the safety profile (readOnly, idempotent, closed-world), yet the description adds substantial behavior: output precision capped at 50 significant digits with no rounding, output types (integer vs Decimal string), and the exact 30/360 variant (31st end-of-month adjustment only, no February rule) plus per-year-boundary leap denominators for ACT/ACT. These are real implementation details an agent could not infer. Minor gap: no error/edge behavior for equal or reversed dates beyond 'end must be after start'.

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 sentences, front-loaded with what is returned, followed by the convention taxonomy and the date constraint. Dense but every clause is load-bearing; the parenthetical convention qualifiers are exactly the disambiguation needed.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a 3-required-param calculation tool with an output schema (so return structure needn't be explained, though types are still noted), the description supplies output meaning, convention semantics, date format, and input constraint. An agent can call it correctly without opening anything else.

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

Parameters5/5

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

Schema description coverage is 0% and the convention parameter has no enum, so the description carries the full burden — and it does: all four convention values are enumerated with their distinguishing semantics, the date format YYYY-MM-DD is given for start/end, and the start<end ordering is stated. Nothing about the three required parameters is left undocumented.

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?

States a specific verb and result set: computes interest-accrual day count (integer days) and annualized year_fraction (Decimal string), which is far more precise than a generic 'date difference'. It never names a sibling such as datetime.diff to draw the boundary, so it falls short of the top mark.

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 domain anchor ('이자 계산용', for interest calculation) implies the intended use case, and the ordering constraint that end must follow start is stated. However, there is no explicit guidance on when to choose this over datetime.diff or the business-day tools, and no exclusions.

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