Skip to main content
Glama

Lookup Kit

date_add

Read-only

Date calculator, add or subtract days, weeks, months or years to a date. Add (or subtract, with negative numbers) days, weeks, months and years to a date (YYYY-MM-DD). Month ends are handled (Jan 31 + 1 month = Feb 28/29). Price: $0.001 per call (x402, USDC on Base).

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": {
      "date": "<date>"
    },
    "name": "date_add"
  }
}

Input Schema

NameRequiredDescriptionDefault
dateYes
daysNo
weeksNo
yearsNo
monthsNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.6/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true and openWorldHint=false, and the description adds real behavioral context beyond them: month-end clamping semantics (Jan 31 + 1 month = Feb 28/29) and a paid-call model ($0.001 per call via x402/USDC on Base), which an agent needs to know before invoking. It doesn't disclose the result shape, but the pricing and rollover details are substantive additions.

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?

Front-loads the purpose well, but the first two sentences are essentially redundant, restating 'add or subtract days, weeks, months or years' twice. The pricing note is useful but the duplicated sentence costs space without adding information.

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?

Covers input format, sign convention, edge-case rollover, and cost, which is most of what a 5-parameter, no-output-schema tool needs. Still missing are the return value (presumably a YYYY-MM-DD string) and the order in which multiple offsets are applied, both of which affect correctness.

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?

With 0% schema description coverage and 5 parameters, the description carries the burden and mostly does: it pins the date format to YYYY-MM-DD, names all four offset units, and explains that negative values subtract. It doesn't clarify how multiple units combine or that omitted offsets default to 0, leaving a small ambiguity.

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+resource: add or subtract days/weeks/months/years to a date. It doesn't distinguish itself from siblings like days_between or business_days, so the agent must infer that this tool shifts a single date rather than computing a difference or skipping weekends.

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 one concrete usage rule — use negative numbers to subtract — which is genuinely useful. However, it never says when to prefer this over date-difference or business-day tools, so selection guidance is only implied.

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