Skip to main content
Glama

영업일·공휴일·기한 날짜 계산

calc_business_days

Calculate Korean business days and deadlines using official holiday data. Determine if a date is a business day, count remaining business days, and adjust due dates by N business or calendar days.

Instructions

한국 영업일·공휴일 기준 날짜 계산 (키 불요). 영업일 여부·공휴일 명칭·기한 조정·N영업일/N달력일 기한· 남은 영업일 세기를 돌려줍니다.

⚠️ 공휴일은 법령 개정으로 바뀝니다 — 2027년부터 노동절(5/1) 공휴일 신설로 2027-05-03(월)이 대체공휴일입니다. 모델의 자체 달력 지식은 최신 개정을 모릅니다 — 기한·영업일·공휴일이 걸린 날짜 질문에는 반드시 이 도구를 호출하세요.

  • 건너뛴 비영업일 목록(날짜·요일·공휴일 명칭)과 근거 조문이 동봉됩니다

  • 근로자의 날(5/1)은 관공서 공휴일이 아니어서 민법 기간계산과 고시 영업일 계산이 갈립니다 (2027년부터 차이 소멸)

  • 공휴일 데이터가 없거나 미검증인 연도는 warnings 로 알립니다

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
dateYes기준일 (YYYYMMDD). 단독으로 주면 이 날짜가 영업일인지, 아니라면 어느 공휴일인지와 다음 최초 영업일(기한 말일 조정 결과)을 돌려줍니다
add_business_daysNo기준일 다음 날부터 N영업일 후의 기한을 계산합니다 (예: 이사회 의결일 + 상장 3영업일 / 비상장·공익법인 7영업일)
add_calendar_daysNo기준일 다음 날부터 N일(달력일) 후의 기한을 계산합니다 (예: 분기 종료 후 45일). 말일이 비영업일이면 다음 영업일로의 조정 결과를 함께 줍니다
count_business_days_toNo기준일 다음 날부터 이 날짜까지의 영업일 수를 셉니다 (예: 오늘부터 기한까지 남은 영업일)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.5/5.0
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 important behavioral traits: it returns skipped non-business days with dates, weekdays, holiday names, and legal basis; it warns about missing/unverified holiday data via warnings; it explains the nuance that Labor Day (5/1) is not a public office holiday, causing divergence between civil law and notice-based business day calculations until 2027. It also warns that holiday laws change and gives a concrete example (2027-05-03 substitute holiday). This is rich behavioral context beyond a simple 'calculates business days' statement.

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 moderately sized but information-dense. It front-loads the core purpose in the first sentence, then provides critical usage warnings and behavioral details. The bullet points are well-structured. It loses one point because the warning about 2027 Labor Day is somewhat verbose and could be tightened, but every sentence earns its place by conveying important caveats.

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 tool's complexity (4 parameters, no output schema, no annotations), the description is quite complete. It explains what each parameter returns, warns about data limitations, and provides legal context. It doesn't explicitly describe the output format structure, but without an output schema, a brief note on return shape would help. However, the description does list the types of outputs (business day status, holiday name, deadline adjustment, skipped days list, legal basis, warnings), which is sufficient for an agent to understand what to expect.

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 100%, so the baseline is 3. The description adds value by explaining the semantics of each parameter with examples: add_business_days for '이사회 의결일 + 상장 3영업일 / 비상장·공익법인 7영업일', add_calendar_days for '분기 종료 후 45일', count_business_days_to for '오늘부터 기한까지 남은 영업일'. It also clarifies that date alone returns business-day status and next business day. This goes beyond the schema's basic descriptions, though it doesn't add syntax details for the date format (already in schema pattern).

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 computes Korean business days, holidays, and deadline adjustments, listing specific outputs (business day status, holiday name, deadline adjustment, N-business-day/N-calendar-day deadlines, remaining business day count). It distinguishes itself from sibling tools by being the only date-calculation tool among disclosure/search/audit tools.

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

Usage Guidelines5/5

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

The description explicitly instructs when to use the tool: '기한·영업일·공휴일이 걸린 날짜 질문에는 반드시 이 도구를 호출하세요' (must call this tool for date questions involving deadlines, business days, holidays). It also warns that the model's own calendar knowledge is outdated, providing a clear directive to prefer this tool over internal knowledge. It does not name specific sibling alternatives, but the sibling list contains no other date-calculation tool, so the guidance is sufficient.

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