Skip to main content
Glama

mechacut

date_calc

Date arithmetic: add (calendar-aware duration like "1y2m3dT4h", month-end clamped), business_days (n, holidays, weekend), diff (days|business_days|human|calendar; business_days counts base-exclusive by default, include_base=true counts BOTH endpoints, backward windows with include_base are refused, not mirrored), boundary (day|week|month|quarter|year, start|end), age. Free.

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": {
      "base": "<base>",
      "op": "<op>"
    },
    "name": "date_calc"
  }
}

Input Schema

NameRequiredDescriptionDefault
opYes
tzNo
baseYes
paramsNo

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?

With no annotations at all, the description carries the full burden and does disclose real behavioral rules: month-end clamping for durations, business_days counting base-exclusive by default, include_base=true counting BOTH endpoints, and backward windows with include_base being refused rather than mirrored. It also declares the tool 'Free', a cost signal not present in structured fields. Gaps remain on timezone handling and error/return behavior.

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

Conciseness4/5

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

It is a single dense sentence with no filler — every clause carries operation semantics and nothing is redundant. The aggressive parenthetical stacking (especially the long diff clause) hurts scannability, but the operation list is front-loaded and the size is appropriate for a five-mode dispatch tool.

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?

For a tool with no annotations, no output schema, a nested params object and 0% schema description coverage, the definition covers the operation modes well but is silent on the base date format, timezone behavior, and what any operation returns. An agent could pick the right op but would likely have to guess at input formats on the first call.

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 coverage is 0% across 4 parameters including a nested 'params' object, so the description must compensate. It does name several params (n, holidays, weekend, include_base) and enumerates op values, but it never specifies the format expected for the required 'base' parameter or what 'tz' does, leaving two of four parameters semantically opaque.

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 the resource (date arithmetic) and enumerates the five operations it performs (add, business_days, diff, boundary, age) with a parenthetical of what each does, so an agent knows exactly what the tool covers. It stops short of distinguishing itself from siblings like date_week, date_window or date_civil, which overlap with the 'boundary' and 'diff' operations.

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 through the per-operation taxonomy: an agent can infer which op handles duration addition vs. difference vs. boundary snapping. However there is no explicit 'use this when' framing, no exclusions, and no routing advice against the many sibling date tools (date_civil, date_week, date_window), leaving selection to inference.

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.