Skip to main content
Glama

time_date_parse

Read-only

Parse messy dates into ISO 8601 — Normalize human or machine date strings into ISO 8601: ISO, RFC 2822, 03/04/2026 (flags day/month ambiguity and gives the alternative), 4 Mar 2026, March 4th 2026 3pm EST, YYYYMMDD, unix seconds/ms, month-year, and relative phrases (today, tomorrow 9:30am, next friday, 3 days ago, in 2 weeks). Times without a zone are read in tz=; returns date, weekday, time, UTC offset, instant, unix, format detected and confidence. Params: date= (one) or dates= (up to 50, separated by |); order= mdy|dmy|ymd for ambiguous numeric dates (default mdy); tz= IANA zone (default UTC); ref= YYYY-MM-DD reference for relative dates (default today). Price: $0.002 USDC (Base, via x402).

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": "time_date_parse"
  }
}

Input Schema

NameRequiredDescriptionDefault
dateYesMarch 4th, 2026 3pm

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.9/5.0
Behavior4/5

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

Annotations supply the safety profile (readOnly, non-destructive, open-world), and the description adds real behavior beyond them: ambiguous numeric dates are flagged with the alternative interpretation, batch size is capped at 50, and the per-call price ($0.002 USDC via x402) is disclosed — a cost trait no annotation carries. It stops short of describing error behavior for unparseable input, so not a 5.

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?

The purpose and the ISO 8601 output target are front-loaded, and the format list is scannable rather than wasted. The single dense dash-and-semicolon block is slightly hard to parse and repeats 'ISO 8601' in the opening clause, but there is little filler.

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 no output schema, the description carries return-value burden and does so by naming the returned fields (date, weekday, time, UTC offset, instant, unix, format detected, confidence). Format coverage, ambiguity handling, timezone default, relative-date anchor and pricing are all present; only failure behavior and the schema/parameter mismatch remain as gaps.

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 100% for the single declared parameter, so the baseline is 3, and the description does add meaning (order=mdy|dmy|ymd semantics, tz default UTC, ref being the anchor for relative phrases). But it also advertises a 'dates=' parameter, an 'order' enum, 'tz' and 'ref' that are absent from the supplied schema, so an agent following the text could pass arguments the schema rejects — the extra detail is partly inconsistent rather than purely additive.

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 opens with a specific verb+resource ('Parse messy dates into ISO 8601 — Normalize human or machine date strings') and immediately enumerates the input families it handles (ISO, RFC 2822, slash-dates, month-year, unix, relative phrases). No sibling tool in the list (time_date_math, time_convert, time_dst) does this, so the agent can route without opening another schema.

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 input examples and the note that times without a zone are read in tz=, which tells the agent enough to know this tool is for turning free-form date text into a structured date. However, there is no explicit when-to-use/when-not guidance and no named alternative (e.g. time_date_math for arithmetic, time_convert for zone shifting), so the agent must infer boundaries.

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