Skip to main content
Glama

Is it a working day in Vietnam?

vn_holidays_is_working_day
Read-onlyIdempotent

Determine whether a date is a working day for Vietnamese public-sector staff by checking weekdays, holidays, nghỉ bù, and swapped Saturdays, with uncertainty flagged for unannounced years.

Instructions

Whether a date is a working day for public-sector staff (Monday-Friday minus holidays and nghỉ bù, plus swapped Saturdays). certain: false when the year is not announced and the date may still become a Tết or National Day day off.

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>"
    },
    "name": "vn_holidays_is_working_day"
  }
}

Input Schema

NameRequiredDescriptionDefault
dayYes
yearYes
monthYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.4/5.0
Behavior4/5

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

Annotations already cover safety (readOnly, idempotent, non-destructive, closed-world), so the description's real contribution is the domain rule plus the 'certain: false' uncertainty signal for years whose holidays are not yet announced. That is meaningful behavior beyond the structured fields, though it does not spell out how the result should be treated when certainty is false.

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 tight sentences with the core definition front-loaded and the caveat second. The telegraphic 'certain: false' phrasing is slightly compressed but still readable and wastes no words.

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, the description partially shoulders the return-value burden by naming a 'certain' field alongside the boolean answer, but it leaves the full response shape (e.g., holiday name or reason) unspecified. For a three-parameter date predicate this is adequate but not complete.

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% and the three parameters (day, month, year) have no constraints beyond generic integer bounds. The description never clarifies expected ranges (1-31, 1-12), calendar assumptions, or invalid-date handling, so it does not compensate for the schema gap.

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 gives a concrete predicate and even defines the domain rule precisely: weekday-based working days minus holidays and nghỉ bù, plus swapped Saturdays. An agent knows exactly what question this tool answers. It does not contrast itself with sibling tools such as vn_holidays_count_working_days or vn_holidays_add_working_days, so it falls 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 Guidelines3/5

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

The phrase 'for public-sector staff' implicitly scopes when the answer applies, and the caveat about unannounced years hints at when results are provisional. However, there is no explicit when-to-use statement, no mention of when to prefer the weekday-counting or add-days siblings, and no exclusions.

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