Skip to main content
Glama

Date Difference (Years, Months, Days)

date_diff_calendar
Read-onlyIdempotent

Work out the difference between two calendar dates as whole years, months and days, plus the total days and the weeks and leftover days. Send start and end (YYYY-MM-DD). If end is before start the answer is worked from the earlier date and says it is backward. Optionally send inclusive true to count the later date as a day too (a 1 to 31 March stay is 31 days, not 30). The month-end rule is stated in every answer and the answer says when it was used. Answer fields: ok, verdict, result, rule, does_not, sources, observation, signature, verify. Errors: ok false with the reason (bad input, too large, hourly limit). Free. No model, no network, nothing you send is stored by the tool, and every answer is signed with LLPRO's key (check it at https://llpro.ai/date-diff-calendar). Not legal, tax or financial advice.

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

Input Schema

NameRequiredDescriptionDefault
endYesSecond date, YYYY-MM-DD (1990 to 2100). May be before start.
startYesFirst date, YYYY-MM-DD (1990 to 2100).
inclusiveNotrue to count the later date as a day as well (adds one day to the later date). Default false.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4/5.0
Behavior4/5

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

Annotations already declare read-only, idempotent, closed-world, non-destructive, so the bar is lower, yet the description still adds real value: the month-end rule is stated in every answer and flagged when applied, reversed inputs are reported as backward, and error paths (bad input, too large, hourly limit) are named. The provenance/signature boilerplate is less about tool behavior but does disclose that nothing is stored and no network or model is used.

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

Conciseness3/5

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

The core purpose and the inclusive rule are front-loaded, but the paragraph then drifts into trust/provenance marketing — signature verification, a URL, 'Free. No model, no network', and a legal disclaimer — plus an enumeration of nine answer fields. Several sentences do not help an agent decide or invoke the 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?

With no output schema, the description usefully names the answer fields (ok, verdict, result, rule, does_not, sources, observation, signature, verify) and the error shape, and it explains the month-end rule and inclusive counting. What is missing is any statement of limits or range constraints beyond 'too large' and the schema's 1990–2100 window.

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 baseline is 3; the description earns above that by giving a concrete worked example of inclusive ('a 1 to 31 March stay is 31 days, not 30') and by clarifying the backward-date handling, both of which add meaning the schema's terse 'adds one day to the later date' does not fully convey.

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?

States a specific verb and resource: difference between two calendar dates expressed as whole years, months and days plus total days and weeks/leftover days. The output decomposition is concrete enough that an agent can distinguish this from generic date arithmetic or business-day tools 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 Guidelines3/5

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

Gives calling guidance (send start and end as YYYY-MM-DD, optionally inclusive) and explains the reversed-order behavior, but never says when to pick this over alternatives such as business-day counters, nor when not to use it. Usage context is implied rather than routed.

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