Skip to main content
Glama

mechacut

date_parse

Parse one date (ISO 8601, RFC 2822, epoch seconds, slashed numeric: 03/04/05-style is REFUSED with both readings named until prefer is given (13/04 and 05/05 answer — the bytes decide) — never guessed — or month-name form) -> ISO, UTC, epoch, weekday, ISO week, naive flag. 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": {
      "text": "<text>"
    },
    "name": "date_parse"
  }
}

Input Schema

NameRequiredDescriptionDefault
tzNoIANA zone to interpret a naive value in
textYes
preferNoorder for slashed ambiguous datesdmy

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.3/5.0
Behavior4/5

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

No annotations are supplied, so the description carries the full load and does well: it discloses the refusal-with-both-readings behavior on ambiguous input, that values are 'never guessed,' that the default order is dmy, and that the call is 'Free.' It stops short of describing the shape of an error/refusal response or the default timezone applied when 'tz' is omitted.

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?

A single sentence front-loads verb and resource, then nests format and output lists; nothing is extraneous and the output arrow gives a scannable contract. The deep parenthetical with em-dashes makes it dense enough that the ambiguity rule is easy to skim past, costing a point on readability.

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 three parameters, no annotations, and no output schema, the description supplies most of what an agent needs: accepted formats, ambiguity policy, default order, and the returned fields. Remaining gaps are minor but real — no statement of default timezone behavior, error shape, or whether strictly invalid dates (e.g., 31/02) are rejected or normalized.

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 67%, with 'tz' and 'prefer' already documented in the schema, yet the description adds real meaning: it explains exactly what 'prefer' unlocks (03/04/05 is refused until given), shows worked readings (13/04 and 05/05), and ties 'tz' to the reported 'naive flag' and UTC output. Only 'text' is left without added semantics, which the format enumeration largely covers.

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 ('Parse') and a precisely scoped resource ('one date'), then enumerates the accepted input formats (ISO 8601, RFC 2822, epoch seconds, slashed numeric, month-name) and the exact outputs (ISO, UTC, epoch, weekday, ISO week, naive flag). That combination makes it unmistakable against siblings like date_calc, date_civil, and date_tz, which operate on dates rather than decoding a single string.

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 gives a clear condition for the tricky case: slashed ambiguous dates are refused until 'prefer' is supplied, so the agent knows to pass 'prefer' rather than guess. It does not name alternative sibling tools (e.g., date_civil or date_tz) or state exclusions such as multi-date input, so routing guidance is implicit rather than explicit.

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.