Skip to main content
Glama
kinbinghua-lgtm

agent-core-mcp

date_add

Read-onlyIdempotent

Add or subtract days, weeks, months, years, hours, minutes, or seconds from an ISO-8601 date, with calendar-correct results across month ends and leap years.

Instructions

Offset an ISO-8601 date by days, weeks, months, years, hours, minutes or seconds. Negative amounts subtract. Calendar-correct across month ends and leap years.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
dateYesBase date, e.g. 2026-01-31
unitNoUnit (default days)
amountYesAmount to add; negative to subtract

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.1

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint, and non-destructive behavior, so the bar is lower. The description adds useful behavioral detail beyond the annotations: negative amounts subtract and arithmetic is calendar-correct across month ends and leap years. It does not cover error handling or return format.

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?

Three short, front-loaded sentences with no filler. The purpose, sign convention, and calendar behavior are stated efficiently.

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 simple date utility with full schema coverage and safety annotations, the description is largely complete. It omits any mention of the return format, which matters slightly since no output schema exists, but the core operation is clear.

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 description coverage is 100%, so the schema already documents each parameter. The description adds semantic meaning by clarifying that negative amounts subtract and that month/year arithmetic is calendar-correct, which is not fully conveyed by the schema.

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 (offset) and resource (ISO-8601 date) with the supported units. It does not differentiate from the sibling date_calc tool, so it falls short of a 5.

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

Usage Guidelines2/5

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

The description explains what the tool does but gives no explicit guidance on when to choose it over alternatives like date_calc, nor any exclusions or prerequisites. Usage is only implied by the operation itself.

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