Skip to main content
Glama

Count Vietnamese working days

vn_holidays_count_working_days
Read-onlyIdempotent

Counts working days between two dates, skipping weekends, public holidays and nghỉ bù, with negative results when the end precedes the start.

Instructions

Number of working days in (from, to]: the start date is not counted, the end date is; negative if to is before from. Skips weekends, holidays and nghỉ bù. certain: false if unannounced Tết or National Day 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": {
      "from": "<from>",
      "to": "<to>"
    },
    "name": "vn_holidays_count_working_days"
  }
}

Input Schema

NameRequiredDescriptionDefault
toYes
fromYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.6/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, non-destructive, closed-world behavior, so the bar is lower. The description still adds real value by disclosing exclusion endpoints, negative-result behavior, the nghỉ bù skip, and the partial-confidence signal for unannounced Tết/National Day days—none of which the annotations convey.

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 dense sentences, front-loaded with the interval definition before the edge-case rules. Nothing is wasted, though the 'certain: false' clause is compressed to the point of ambiguity about what the field belongs to.

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 carries the return-value burden and only partially meets it: 'certain' is referenced without saying it is a returned field or what accompanies it. Combined with the missing date-format convention, a caller has enough to invoke it but not full confidence in parsing results.

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

Parameters3/5

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

Schema coverage is 0%, so the description must carry the load. It does explain that 'from' is exclusive and 'to' inclusive and that the result flips sign when reversed, which is genuinely useful. However, it never states the expected string format for the date parameters, so a caller still has to guess.

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 resource: it counts working days over a half-open interval (from, to]. The interval semantics plus the holiday-skipping rule clearly distinguish it from vn_holidays_add_working_days and vn_holidays_is_working_day, though no sibling is named.

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 directionality rule (negative if to precedes from) and the exclusion of weekends, holidays, and nghỉ bù imply when the tool applies, but there is no explicit statement of when to prefer it over the sibling add/is-working-day tools, or any prerequisite guidance.

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