Skip to main content
Glama

Time of Meeting

Add days, weeks, or working days

add_days
Read-onlyIdempotent

Add a whole number of days, weeks, or working_days (business days) to a date. Use when the user asks for the date a number of days or business days from another date. amount may be negative. unit weeks is seven calendar days: 3 weeks from Friday 2026-10-23 is 2026-11-13. unit working_days skips Saturday, Sunday, and that country's national public holidays, and the start date is not counted: 10 working days from Friday 2026-10-23 is 2026-11-06 when none of those weekdays is a holiday. country is required for working_days. For days and weeks it is optional and is not used in the arithmetic. The result is the landing date, its weekday, iso_week, and us_week. The request date, amount, unit, and country are not repeated. Holiday dates are the bundled vacanza/holidays list (MIT) for 2026, 2027, and 2028. A walk that leaves those years returns an error.

Input Schema

NameRequiredDescriptionDefault
dateYesStart date, YYYY-MM-DD.
unitYesdays, weeks (7 days), or working_days.
amountYesWhole number of units to add. Negative walks backward.
countryNoRequired when unit is working_days. ISO code or English country name.

Output Schema

NameRequiredDescriptionDefault
errorNo
weeksYesISO week (Monday start; week 1 contains the year's first Thursday) and US week (Sunday start; 1 January is week 1 of that calendar year).
resultYes
sourceYes
weekdayYes
holidaysYes
candidatesNo
alternativesNoOther cities that matched the same name, after the best-ranked city was chosen. The order is the site search order: match, then priority, then population.
country_nameYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • addedInput schema / if
      Added value: +{
      +  "properties": {
      +    "unit": {
      +      "const": "working_days"
      +    }
      +  },
      +  "required": [
      +    "unit"
      +  ]
      +}
    • addedInput schema / then
      Added value: +{
      +  "required": [
      +    "country"
      +  ]
      +}
  2. Added

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, non-destructive and closed-world, so the safety bar is low. The description goes well beyond them by disclosing negative amounts, that weeks means seven calendar days, that working_days skips weekends plus national holidays without counting the start date, the bundled vacanza/holidays source and its 2026-2028 coverage, and that a walk leaving those years errors out.

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?

Front-loaded with the action, then usage, then edge semantics and error behavior; every sentence carries information. The worked-date examples are slightly verbose but earn their place by pinning down non-obvious counting rules.

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 4-parameter conversion tool with full schema coverage, annotations, and an output schema, the description covers inputs, boundary error behavior, and data-source scope. Nothing an agent needs to call it correctly is missing.

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 coverage is 100%, so baseline is 3; the description still adds real meaning: that amount may be negative, that country is mandatory for working_days but ignored for days and weeks, and the arithmetic semantics of each unit. Only the negative-amount point partly duplicates the schema text.

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 (add a whole number of days/weeks/working_days to a date) and even illustrates it with concrete dates. It does not name or distinguish itself from the sibling add_business_days, which covers overlapping semantics, so an agent must infer the split.

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

Usage Guidelines4/5

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

"Use when the user asks for the date a number of days or business days from another date" gives a clear triggering condition. There are no exclusions or named alternatives, so the overlap with add_business_days and days_between is left unresolved.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources