Skip to main content
Glama

Add Vietnamese working days

vn_holidays_add_working_days
Read-onlyIdempotent

Calculate the date that is n working days after or before a given date, skipping weekends, Vietnamese holidays and compensatory days; start date excluded, with a certainty flag for unannounced holidays.

Instructions

The date n working days after (or before, n < 0) a date, skipping weekends, holidays and nghỉ bù; the start date is not counted. certain: false if unannounced days were crossed.

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": {
      "day": "<day>",
      "month": "<month>",
      "year": "<year>",
      "n": "<n>"
    },
    "name": "vn_holidays_add_working_days"
  }
}

Input Schema

NameRequiredDescriptionDefault
nYes
dayYes
yearYes
monthYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.2/5.0
Behavior4/5

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

Annotations already cover read-only, idempotent, non-destructive and closed-world, so the safety profile is settled. The description adds real behavior beyond that: which day categories are skipped, that the start date is excluded, and that the result carries a 'certain: false' signal when unannounced days were crossed. Since no output schema exists, surfacing that confidence field is genuinely valuable; the untranslated 'nghỉ bù' and the absence of a stated return shape keep 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?

Two short sentences with no filler, and the core semantics (offset direction, skipped day types, exclusive start) are front-loaded. The phrasing 'The date n working days after ... a date' is slightly awkward and the trailing 'certain' clause reads as a fragment, but nothing is wasted.

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

Completeness3/5

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

With no output schema and 0% parameter coverage, the definition should explain the return value and the date triple. It partially compensates by disclosing the 'certain' flag, but the actual returned date format and the day/month/year contract are left for the agent to guess. Adequate for the core computation, incomplete for correct invocation.

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

Parameters2/5

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

Schema description coverage is 0%, so the description carries the full burden, yet it only explains n (offset semantics, negative means before, start date not counted). The day/month/year triple is left completely bare — no statement that month is 1-indexed, no valid ranges, no indication of whether they must form a real calendar date. Three of four parameters remain undefined in both structured and unstructured fields.

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?

The description states a specific operation: returning the date that is n working days after (or before, when n < 0) a given date. It also names the exclusions (weekends, holidays, nghỉ bù), which distinguishes it from vn_holidays_count_working_days and vn_holidays_is_working_day. It never names a sibling explicitly, so it stops short of a 5.

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

Usage Guidelines2/5

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

There is no explicit when-to-use or when-not-to-use guidance, and no routing to the obvious alternatives (count_working_days for counting, is_working_day for a single check). The negative-n convention is the only usage-style hint, and it is a parameter rule rather than tool selection guidance.

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