Skip to main content
Glama

utility-converter

calculate_date

Calculate the difference between two dates, or add/subtract days from a date.

Operations:

  • "difference": days between start_date and end_date (end_date required).

  • "add": the date days days after start_date.

  • "subtract": the date days days before start_date.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
daysNoNumber of days to add or subtract (only for "add"/"subtract").
end_dateNoSecond date in ISO format (only for "difference").
operationYesOne of "difference", "add", "subtract".
start_dateYesBase date in ISO format, e.g. "2026-07-13".

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.2/5.0
Behavior3/5

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

No annotations are provided, so the description carries the full burden. It explains three operations and their parameter dependencies, but does not disclose edge cases (e.g., invalid dates, timezone assumptions) or output format details. The presence of an output schema mitigates this somewhat.

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?

The description is very concise, uses bullet points for clarity, and is front-loaded with the core purpose. Every sentence earns its place with no redundancy.

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?

Given the tool's moderate complexity (three operations, 4 parameters, output schema exists), the description adequately covers operations and parameter roles. It lacks explanation of return value format, but the output schema likely handles that.

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 baseline is 3. The description adds value by explaining how parameters relate to each operation (e.g., end_date only for 'difference'), which goes beyond the schema descriptions.

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 description clearly states it calculates date differences or adds/subtracts days. It distinguishes from sibling tools (e.g., convert_timestamp, convert_units) by focusing on date-specific operations.

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?

The description explicitly lists each operation with required parameters (e.g., 'difference' requires end_date, 'add' requires days). It provides clear context for when to use each operation, though it does not mention when not to use or compare to siblings.

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.