Skip to main content
Glama

Add or subtract a date

shift_date
Read-onlyIdempotent

Use for 'what date is N days, weeks, months or years before or after X', including business-day deadlines. Without exclusions, applies days, weeks, months, then years. With exclusions, all units become calendar days, and that many non-excluded days are counted: 1 month after 2027-01-15, excluding Saturday and Sunday, gives 2027-03-01, not 2027-02-15. The start date is not counted; the destination is. To move a plain date such as 'one month later' to a working day instead, set roll to next or previous. If holiday data is unavailable, the call fails. Returns the date, its weekday and ISO week, warnings to read, the rules used and a share link.

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": {
      "start": "<start>",
      "mode": "<mode>"
    },
    "name": "shift_date"
  }
}

Input Schema

NameRequiredDescriptionDefault
daysNoDays to move. With an exclusion, only days that are not excluded are counted, and the years, months and weeks are first converted to their calendar-day span from start.
modeYesDirection: add moves forward from start, subtract moves back.
rollNonext or previous: apply the units as plain calendar arithmetic, then move day by day in that direction to the first day that is not excluded. This needs an exclusion, and not all seven weekdays. none: no such move; with an exclusion, the units are counted in days that are not excluded.none
startYesDate that the move starts from, as year, month and day, for example 2027-01-15. It is not counted.
weeksNoWeeks to move, 7 days each.
yearsNoCalendar years to move. A 29 February that the target year does not have becomes 28 February.
monthsNoCalendar months to move. A day that the target month does not have becomes the last day of that month.
regionNoRegion of country, to also exclude its regional public holidays: the exact code that list_locations gives for the country. Omit it to use only the national calendar.
countryNoCountry whose public holidays excludeHolidays removes, as its code from list_locations, for example US or DE. Necessary when excludeHolidays is true or region is set.
languageNoLanguage of the Date Calculator page that shareUrl opens. The call fails when that page does not offer the country. nb and no, zh-Hans and zh-cn, and zh-Hant and zh-tw are the same language. Weekday names and warnings in the result are always English.en
excludeHolidaysNoExclude public holidays, including observed dates, as full days. The data does not mark half-day holidays. Requires country; unavailable holiday data is an error.
excludeWeekdaysNoWeekdays that do not count, as numbers: 0 is Sunday, 1 is Monday, and so on to 6 for Saturday. Use [0,6] for a Saturday and Sunday weekend; some countries have a different weekend, so choose the days for the country.

Output Schema

NameRequiredDescriptionDefault
okYesAlways true. An error result has no structured content.
dateYesThe answer: the date after the move.
rulesYesThe inputs as the calculation applied them, with defaults filled in, and the rules it followed in words. country is the country that was sent, or null.
isoWeekYesISO 8601 week of date.
weekdayYesEnglish weekday name of date.
shareUrlYesLink that opens this calculation in the Date Calculator on onlinealarmkur.com. With roll, it opens the plain calculation with no roll and no exclusions.
warningsYesEnglish notes that change how to read the result; tell the user about them. Empty when there are none.
holidayDataYesSource, version and coverage of the holiday data that the calculation used. Null when it used no holiday data.
rollAppliedYesTrue when roll moved the date away from an excluded day.
businessDaysRanYesTrue when the move counted only days that are not excluded. False for plain calendar arithmetic, which includes every roll.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed13 schema fields changed
    • changedInput schema / properties / country / description
      Previous value: -"Canonical uppercase ISO country code; discover supported codes with list_locations."New value: +"Country whose public holidays excludeHolidays removes, as its code from list_locations, for example US or DE. Necessary when excludeHolidays is true or region is set."
    • changedInput schema / properties / excludeWeekdays / description
      Previous value: -"Weekdays to exclude: 0 Sunday through 6 Saturday. Default none. Use [0,6] for a Saturday and Sunday weekend; some countries have a different weekend, so choose the days for the country."New value: +"Weekdays that do not count, as numbers: 0 is Sunday, 1 is Monday, and so on to 6 for Saturday. Use [0,6] for a Saturday and Sunday weekend; some countries have a different weekend, so choose the days for the country."
    • changedInput schema / properties / language / description
      Previous value: -"Website language, default en. All 32 site languages; nb/no and zh-Hans/zh-cn, zh-Hant/zh-tw aliases are accepted. Holiday names may fall back to their native language. Weekday names in results are always English."New value: +"Language of the Date Calculator page that shareUrl opens. The call fails when that page does not offer the country. nb and no, zh-Hans and zh-cn, and zh-Hant and zh-tw are the same language. Weekday names and warnings in the result are always English."
    • changedInput schema / properties / region / description
      Previous value: -"Exact subdivision code from list_locations; omit for the national calendar."New value: +"Region of country, to also exclude its regional public holidays: the exact code that list_locations gives for the country. Omit it to use only the national calendar."
    • changedInput schema / properties / roll / description
      Previous value: -"Default none. next or previous: apply the units as plain calendar arithmetic, then move day by day in that direction to the first day that is not excluded. Requires an exclusion, and not all seven weekdays."New value: +"next or previous: apply the units as plain calendar arithmetic, then move day by day in that direction to the first day that is not excluded. This needs an exclusion, and not all seven weekdays. none: no such move; with an exclusion, the units are counted in days that are not excluded."
    • changedInput schema / properties / start / description
      Previous value: -"Calendar date, YYYY-MM-DD."New value: +"Date that the move starts from, as year, month and day, for example 2027-01-15. It is not counted."
    • changedInput schema / properties / years / description
      Previous value: -"Calendar years to move."New value: +"Calendar years to move. A 29 February that the target year does not have becomes 28 February."
    • changedOutput schema / properties / holidayData / anyOf
      Previous value: -[
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "category": {
      -        "const": "public",
      -        "type": "string"
      -      },
      -      "country": {
      -        "description": "Canonical uppercase ISO country code; discover supported codes with list_locations.",
      -        "pattern": "^[A-Z]{2}$",
      -        "type": "string"
      -      },
      -      "coverage": {
      -        "additionalProperties": false,
      -        "properties": {
      -          "endYear": {
      -            "maximum": 9999,
      -            "minimum": 1,
      -            "type": "integer"
      -          },
      -          "startYear": {
      -            "maximum": 9999,
      -            "minimum": 1,
      -            "type": "integer"
      -          }
      -        },
      -        "required": [
      -          "startYear",
      -          "endYear"
      -        ],
      -        "type": "object"
      -      },
      -      "dataVersion": {
      -        "type": "string"
      -      },
      -      "fetchedRange": {
      -        "additionalProperties": false,
      -        "properties": {
      -          "endYear": {
      -            "maximum": 9999,
      -            "minimum": 1,
      -            "type": "integer"
      -          },
      -          "startYear": {
      -            "maximum": 9999,
      -            "minimum": 1,
      -            "type": "integer"
      -          }
      -        },
      -        "required": [
      -          "startYear",
      -          "endYear"
      -        ],
      -        "type": "object"
      -      },
      -      "generatedAt": {
      -        "type": "string"
      -      },
      -      "languageFallback": {
      -        "type": "boolean"
      -      },
      -      "languageRequested": {
      -        "type": "string"
      -      },
      -      "languageUsed": {
      -        "type": "string"
      -      },
      -      "observed": {
      -        "const": true,
      -        "type": "boolean"
      -      },
      -      "region": {
      -        "anyOf": [
      -          {
      -            "description": "Exact subdivision code from list_locations; omit for the national calendar.",
      -            "maxLength": 64,
      -            "type": "string"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ]
      -      },
      -      "source": {
      -        "const": "https://api.onlinealarmkur.com",
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "source",
      -      "dataVersion",
      -      "generatedAt",
      -      "country",
      -      "region",
      -      "coverage",
      -      "fetchedRange",
      -      "languageRequested",
      -      "languageUsed",
      -      "languageFallback",
      -      "category",
      -      "observed"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]New value: +[
      +  {
      +    "additionalProperties": false,
      +    "properties": {
      +      "category": {
      +        "const": "public",
      +        "description": "Always public: the data holds public holidays only.",
      +        "type": "string"
      +      },
      +      "country": {
      +        "description": "Country of the holiday calendar that the calculation used.",
      +        "pattern": "^[A-Z]{2}$",
      +        "type": "string"
      +      },
      +      "coverage": {
      +        "additionalProperties": false,
      +        "description": "First and last year that the calendar has data for.",
      +        "properties": {
      +          "endYear": {
      +            "maximum": 9999,
      +            "minimum": 1,
      +            "type": "integer"
      +          },
      +          "startYear": {
      +            "maximum": 9999,
      +            "minimum": 1,
      +            "type": "integer"
      +          }
      +        },
      +        "required": [
      +          "startYear",
      +          "endYear"
      +        ],
      +        "type": "object"
      +      },
      +      "dataVersion": {
      +        "description": "Version of the holiday dataset: a hash of its content, so it changes only when the data changes.",
      +        "type": "string"
      +      },
      +      "fetchedRange": {
      +        "additionalProperties": false,
      +        "description": "First and last year of the holiday data that the calculation loaded.",
      +        "properties": {
      +          "endYear": {
      +            "maximum": 9999,
      +            "minimum": 1,
      +            "type": "integer"
      +          },
      +          "startYear": {
      +            "maximum": 9999,
      +            "minimum": 1,
      +            "type": "integer"
      +          }
      +        },
      +        "required": [
      +          "startYear",
      +          "endYear"
      +        ],
      +        "type": "object"
      +      },
      +      "generatedAt": {
      +        "description": "Build time of the holiday data, as the dataset gives it.",
      +        "type": "string"
      +      },
      +      "languageFallback": {
      +        "description": "True when the calendar does not have the requested language. The names are then in the calendar's default language.",
      +        "type": "boolean"
      +      },
      +      "languageRequested": {
      +        "description": "Language requested for the holiday names, in the code form of the holiday data: no, zh-cn and zh-tw show as nb, zh-Hans and zh-Hant.",
      +        "type": "string"
      +      },
      +      "languageUsed": {
      +        "description": "Language of the holiday names that the data gave.",
      +        "type": "string"
      +      },
      +      "observed": {
      +        "const": true,
      +        "description": "Always true: observed dates are included.",
      +        "type": "boolean"
      +      },
      +      "region": {
      +        "anyOf": [
      +          {
      +            "maxLength": 64,
      +            "type": "string"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ],
      +        "description": "Region of that calendar. Null for the national calendar."
      +      },
      +      "source": {
      +        "const": "https://api.onlinealarmkur.com",
      +        "description": "Origin of the holiday data.",
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "source",
      +      "dataVersion",
      +      "generatedAt",
      +      "country",
      +      "region",
      +      "coverage",
      +      "fetchedRange",
      +      "languageRequested",
      +      "languageUsed",
      +      "languageFallback",
      +      "category",
      +      "observed"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • addedOutput schema / properties / rules / properties / adjustmentRule / description
      Added value: +"In words: how the units and the exclusions were applied. Only for add and subtract."
    • addedOutput schema / properties / rules / properties / boundaryRule / description
      Added value: +"In words: which of the first and the last day the calculation counted."
    • changedOutput schema / properties / rules / properties / country / anyOf
      Previous value: -[
      -  {
      -    "description": "Canonical uppercase ISO country code; discover supported codes with list_locations.",
      -    "pattern": "^[A-Z]{2}$",
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]New value: +[
      +  {
      +    "pattern": "^[A-Z]{2}$",
      +    "type": "string"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • addedOutput schema / properties / rules / properties / language / description
      Added value: +"Language of the page that shareUrl opens, with nb, zh-Hans and zh-Hant shown as no, zh-cn and zh-tw."
    • changedOutput schema / properties / rules / properties / region / anyOf
      Previous value: -[
      -  {
      -    "description": "Exact subdivision code from list_locations; omit for the national calendar.",
      -    "maxLength": 64,
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]New value: +[
      +  {
      +    "maxLength": 64,
      +    "type": "string"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
  2. Changed15 schema fields changed
    • addedInput schema / properties / days / description
      Added value: +"Days to move. With an exclusion, only days that are not excluded are counted, and the years, months and weeks are first converted to their calendar-day span from start."
    • addedInput schema / properties / mode / description
      Added value: +"Direction: add moves forward from start, subtract moves back."
    • addedInput schema / properties / months / description
      Added value: +"Calendar months to move. A day that the target month does not have becomes the last day of that month."
    • addedInput schema / properties / weeks / description
      Added value: +"Weeks to move, 7 days each."
    • addedInput schema / properties / years / description
      Added value: +"Calendar years to move."
    • addedOutput schema / properties / businessDaysRan / description
      Added value: +"True when the move counted only days that are not excluded. False for plain calendar arithmetic, which includes every roll."
    • addedOutput schema / properties / date / description
      Added value: +"The answer: the date after the move."
    • addedOutput schema / properties / holidayData / description
      Added value: +"Source, version and coverage of the holiday data that the calculation used. Null when it used no holiday data."
    • addedOutput schema / properties / isoWeek / description
      Added value: +"ISO 8601 week of date."
    • addedOutput schema / properties / ok / description
      Added value: +"Always true. An error result has no structured content."
    • addedOutput schema / properties / rollApplied / description
      Added value: +"True when roll moved the date away from an excluded day."
    • addedOutput schema / properties / rules / description
      Added value: +"The inputs as the calculation applied them, with defaults filled in, and the rules it followed in words. country is the country that was sent, or null."
    • addedOutput schema / properties / shareUrl / description
      Added value: +"Link that opens this calculation in the Date Calculator on onlinealarmkur.com. With roll, it opens the plain calculation with no roll and no exclusions."
    • addedOutput schema / properties / warnings / description
      Added value: +"English notes that change how to read the result; tell the user about them. Empty when there are none."
    • addedOutput schema / properties / weekday / description
      Added value: +"English weekday name of date."
  3. Changed3 schema fields changed
    • removedInput schema / properties / region / pattern
      Removed value: -"^[\\p{L}\\p{N}][\\p{L}\\p{N} _.'-]{0,63}$"
    • changedOutput schema / properties / holidayData / anyOf
      Previous value: -[
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "category": {
      -        "const": "public",
      -        "type": "string"
      -      },
      -      "country": {
      -        "description": "Canonical uppercase ISO country code; discover supported codes with list_locations.",
      -        "pattern": "^[A-Z]{2}$",
      -        "type": "string"
      -      },
      -      "coverage": {
      -        "additionalProperties": false,
      -        "properties": {
      -          "endYear": {
      -            "maximum": 9999,
      -            "minimum": 1,
      -            "type": "integer"
      -          },
      -          "startYear": {
      -            "maximum": 9999,
      -            "minimum": 1,
      -            "type": "integer"
      -          }
      -        },
      -        "required": [
      -          "startYear",
      -          "endYear"
      -        ],
      -        "type": "object"
      -      },
      -      "dataVersion": {
      -        "type": "string"
      -      },
      -      "fetchedRange": {
      -        "additionalProperties": false,
      -        "properties": {
      -          "endYear": {
      -            "maximum": 9999,
      -            "minimum": 1,
      -            "type": "integer"
      -          },
      -          "startYear": {
      -            "maximum": 9999,
      -            "minimum": 1,
      -            "type": "integer"
      -          }
      -        },
      -        "required": [
      -          "startYear",
      -          "endYear"
      -        ],
      -        "type": "object"
      -      },
      -      "generatedAt": {
      -        "type": "string"
      -      },
      -      "languageFallback": {
      -        "type": "boolean"
      -      },
      -      "languageRequested": {
      -        "type": "string"
      -      },
      -      "languageUsed": {
      -        "type": "string"
      -      },
      -      "observed": {
      -        "const": true,
      -        "type": "boolean"
      -      },
      -      "region": {
      -        "anyOf": [
      -          {
      -            "description": "Exact subdivision code from list_locations; omit for the national calendar.",
      -            "maxLength": 64,
      -            "pattern": "^[\\p{L}\\p{N}][\\p{L}\\p{N} _.'-]{0,63}$",
      -            "type": "string"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ]
      -      },
      -      "source": {
      -        "const": "https://api.onlinealarmkur.com",
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "source",
      -      "dataVersion",
      -      "generatedAt",
      -      "country",
      -      "region",
      -      "coverage",
      -      "fetchedRange",
      -      "languageRequested",
      -      "languageUsed",
      -      "languageFallback",
      -      "category",
      -      "observed"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]New value: +[
      +  {
      +    "additionalProperties": false,
      +    "properties": {
      +      "category": {
      +        "const": "public",
      +        "type": "string"
      +      },
      +      "country": {
      +        "description": "Canonical uppercase ISO country code; discover supported codes with list_locations.",
      +        "pattern": "^[A-Z]{2}$",
      +        "type": "string"
      +      },
      +      "coverage": {
      +        "additionalProperties": false,
      +        "properties": {
      +          "endYear": {
      +            "maximum": 9999,
      +            "minimum": 1,
      +            "type": "integer"
      +          },
      +          "startYear": {
      +            "maximum": 9999,
      +            "minimum": 1,
      +            "type": "integer"
      +          }
      +        },
      +        "required": [
      +          "startYear",
      +          "endYear"
      +        ],
      +        "type": "object"
      +      },
      +      "dataVersion": {
      +        "type": "string"
      +      },
      +      "fetchedRange": {
      +        "additionalProperties": false,
      +        "properties": {
      +          "endYear": {
      +            "maximum": 9999,
      +            "minimum": 1,
      +            "type": "integer"
      +          },
      +          "startYear": {
      +            "maximum": 9999,
      +            "minimum": 1,
      +            "type": "integer"
      +          }
      +        },
      +        "required": [
      +          "startYear",
      +          "endYear"
      +        ],
      +        "type": "object"
      +      },
      +      "generatedAt": {
      +        "type": "string"
      +      },
      +      "languageFallback": {
      +        "type": "boolean"
      +      },
      +      "languageRequested": {
      +        "type": "string"
      +      },
      +      "languageUsed": {
      +        "type": "string"
      +      },
      +      "observed": {
      +        "const": true,
      +        "type": "boolean"
      +      },
      +      "region": {
      +        "anyOf": [
      +          {
      +            "description": "Exact subdivision code from list_locations; omit for the national calendar.",
      +            "maxLength": 64,
      +            "type": "string"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ]
      +      },
      +      "source": {
      +        "const": "https://api.onlinealarmkur.com",
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "source",
      +      "dataVersion",
      +      "generatedAt",
      +      "country",
      +      "region",
      +      "coverage",
      +      "fetchedRange",
      +      "languageRequested",
      +      "languageUsed",
      +      "languageFallback",
      +      "category",
      +      "observed"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • changedOutput schema / properties / rules / properties / region / anyOf
      Previous value: -[
      -  {
      -    "description": "Exact subdivision code from list_locations; omit for the national calendar.",
      -    "maxLength": 64,
      -    "pattern": "^[\\p{L}\\p{N}][\\p{L}\\p{N} _.'-]{0,63}$",
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]New value: +[
      +  {
      +    "description": "Exact subdivision code from list_locations; omit for the national calendar.",
      +    "maxLength": 64,
      +    "type": "string"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
  4. Changed15 schema fields changed
    • changedInput schema / properties / excludeHolidays / description
      Previous value: -"Exclude public holidays, including observed dates. Requires country; unavailable holiday data is an error."New value: +"Exclude public holidays, including observed dates, as full days. The data does not mark half-day holidays. Requires country; unavailable holiday data is an error."
    • changedInput schema / properties / excludeWeekdays / description
      Previous value: -"Weekdays to exclude: 0 Sunday through 6 Saturday. Default none; use [0,6] for Saturday/Sunday weekends."New value: +"Weekdays to exclude: 0 Sunday through 6 Saturday. Default none. Use [0,6] for a Saturday and Sunday weekend; some countries have a different weekend, so choose the days for the country."
    • changedInput schema / properties / language / description
      Previous value: -"Website language, default en. All 32 site languages; nb/no and zh-Hans/zh-cn, zh-Hant/zh-tw aliases are accepted. Holiday names may fall back to their native language."New value: +"Website language, default en. All 32 site languages; nb/no and zh-Hans/zh-cn, zh-Hant/zh-tw aliases are accepted. Holiday names may fall back to their native language. Weekday names in results are always English."
    • addedInput schema / properties / roll
      Added value: +{
      +  "default": "none",
      +  "description": "Default none. next or previous: apply the units as plain calendar arithmetic, then move day by day in that direction to the first day that is not excluded. Requires an exclusion, and not all seven weekdays.",
      +  "enum": [
      +    "none",
      +    "next",
      +    "previous"
      +  ],
      +  "type": "string"
      +}
    • addedInput schema / properties / start / description
      Added value: +"Calendar date, YYYY-MM-DD."
    • addedOutput schema / properties / isoWeek
      Added value: +{
      +  "pattern": "^\\d{4}-W\\d{2}$",
      +  "type": "string"
      +}
    • addedOutput schema / properties / rollApplied
      Added value: +{
      +  "type": "boolean"
      +}
    • addedOutput schema / properties / rules / properties / country / anyOf
      Added value: +[
      +  {
      +    "description": "Canonical uppercase ISO country code; discover supported codes with list_locations.",
      +    "pattern": "^[A-Z]{2}$",
      +    "type": "string"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • removedOutput schema / properties / rules / properties / country / description
      Removed value: -"Canonical uppercase ISO country code; discover supported codes with list_locations."
    • removedOutput schema / properties / rules / properties / country / pattern
      Removed value: -"^[A-Z]{2}$"
    • removedOutput schema / properties / rules / properties / country / type
      Removed value: -"string"
    • addedOutput schema / properties / rules / properties / roll
      Added value: +{
      +  "enum": [
      +    "none",
      +    "next",
      +    "previous"
      +  ],
      +  "type": "string"
      +}
    • addedOutput schema / properties / warnings
      Added value: +{
      +  "items": {
      +    "type": "string"
      +  },
      +  "type": "array"
      +}
    • addedOutput schema / properties / weekday
      Added value: +{
      +  "type": "string"
      +}
    • changedOutput schema / required
      Previous value: -[
      -  "ok",
      -  "date",
      -  "businessDaysRan",
      -  "rules",
      -  "holidayData",
      -  "shareUrl"
      -]New value: +[
      +  "ok",
      +  "date",
      +  "weekday",
      +  "isoWeek",
      +  "businessDaysRan",
      +  "rollApplied",
      +  "warnings",
      +  "rules",
      +  "holidayData",
      +  "shareUrl"
      +]
  5. First observed

TDQS

A4.5/5.0
Behavior5/5

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

Annotations already mark this readOnly, idempotent and non-destructive, yet the description still adds substantive behavior: the unit application order (days, weeks, months, years), the rule that exclusions collapse all units to calendar days, the exact start-not-counted/destination-counted convention, and the failure mode 'If holiday data is unavailable, the call fails'. The worked example of 1 month after 2027-01-15 rolling to 2027-03-01 discloses a non-obvious result that no annotation or schema field conveys.

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 triggering question pattern, then ordered from default behavior to exclusion behavior to roll, with a concrete example placed where the confusion peaks. The closing sentence enumerating return values (date, weekday, ISO week, warnings, rules used, share link) is largely redundant against the existing output schema and could be cut.

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?

For a 12-parameter tool with three interacting behavioral modes (plain arithmetic, exclusion counting, and roll-forward), the description covers the interactions and the failure condition that an agent could not derive from the schema alone. The remaining gap is routing: the sibling count_days is an obvious alternative for interval questions and is never mentioned.

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 the schema already explains every parameter, making 3 the floor. The description goes beyond it by explaining the interaction between months and excludeWeekdays — the semantics of 'counted in non-excluded days' — which the schema only states per-field, not as a combined rule, and by tying roll to its prerequisite (needs an exclusion and not all seven weekdays).

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 opening sentence states the exact question shape the tool answers ('what date is N days, weeks, months or years before or after X') plus the business-day variant, which unambiguously sets it apart from count_days or get_holidays. An agent knows this is date arithmetic, not date difference or holiday lookup, without opening the schema.

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?

It gives explicit selection criteria for the tricky branch: 'To move a plain date such as one month later to a working day instead, set roll to next or previous', and contrasts the with-exclusions vs without-exclusions counting regimes. What's missing is direct routing against the sibling count_days for the reverse operation (finding the span between two dates), so an agent must infer that boundary.

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.