Skip to main content
Glama

Date Calculator

date_calculator
Read-onlyIdempotent

Count signed calendar days or weekdays between dates, or add and subtract calendar units with month-end clamping.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
endNoGregorian calendar date YYYY-MM-DD, years 0001–9999
dateNoGregorian calendar date YYYY-MM-DD, years 0001–9999
modeYesOperation
unitNoCalendar unit
startNoGregorian calendar date YYYY-MM-DD, years 0001–9999
amountNoSigned whole calendar units; negative subtracts
inclusiveNoCount both endpoints; default excludes earlier endpoint and includes later endpoint
weekdaysOnlyNoCount Monday–Friday only; holidays are included

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.8/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 profile is covered. The description adds real behavioural detail beyond that: results are signed (direction matters) and month arithmetic clamps at month end, neither of which appears in the annotations.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

A single front-loaded sentence that pairs each mode with its defining behaviour and wastes no words. Both branches are covered in one compact clause each, which is exactly the right size for this tool.

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?

An output schema exists, so return values need not be described, and annotations carry the safety profile. The description covers both modes plus clamping, leaving only minor gaps such as inclusive-endpoint defaults (which the schema already documents) and explicit sibling disambiguation.

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 description coverage is 100% and every parameter (mode, start/end, date/amount/unit, inclusive, weekdaysOnly) is documented in the schema itself. The description restates the concepts of weekdays and calendar units without adding format, default, or edge-case semantics beyond what the schema already provides, so the baseline 3 applies.

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 names a specific verb pair (count / add-subtract) and the exact resource (calendar days, weekdays, calendar units), and it distinguishes the two operating modes ('between' vs 'shift') that the schema's oneOf encodes. It is nearly enough to separate it from neighbours like calendar_age_difference or julian_day_convert, though it never names those siblings explicitly.

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?

Usage is implied rather than stated: the reader can infer that date-range counting uses the 'between' branch and arithmetic uses the 'shift' branch. There is no explicit when-to-use/when-not guidance and no routing away from overlapping siblings such as calendar_age_difference, so an agent must infer selection from the schema.

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