Skip to main content
Glama

dates parse

dates_parse
Read-only

Turn natural-language dates into exact timestamps: 'next Friday at 3pm', 'in 2 weeks', 'Dec 2-5', 'tomorrow morning' in any timezone, with start and end, local and UTC times and which parts were certain. Costs $0.002 USDC per call (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": {
      "text": "<text>"
    },
    "name": "dates_parse"
  }
}

Input Schema

NameRequiredDescriptionDefault
textYes
timezoneNo
referenceNoISO date-time to resolve relative dates from

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already declare readOnlyHint and openWorldHint, but the description adds material context they don't carry: a per-call price of $0.002 USDC via x402 (a payment/authorization requirement an agent must anticipate) and the shape of the result (start/end, local and UTC, certainty markers). It stops short of describing failure behavior on unparseable input.

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?

One tightly packed sentence that leads with the capability, follows with examples and output shape, and ends with the cost constraint. Every clause carries information an agent can act on.

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 correctly compensates by specifying the return structure and the certainty indication, and the examples cover ranges as well as single points. Gaps remain around the undocumented timezone and reference parameters and error handling for non-date input.

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 description coverage is only 33% — 'reference' is documented, 'text' and 'timezone' are not. The description partially compensates by demonstrating the kinds of strings 'text' accepts and by noting 'any timezone', but it never explains the reference/anchor concept or timezone format expectations.

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?

Precise verb+resource: converting natural-language date strings into exact timestamps, with concrete input examples ('next Friday at 3pm', 'Dec 2-5') that make the capability unmistakable. It does not explicitly differentiate itself from near-siblings like calendar_parse or dates_business_days, which share the date/time domain.

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 context is implied by the examples rather than stated: an agent can infer this is for free-form date expressions, but there is no explicit when-to-use, when-not-to-use, or named alternative (e.g., use dates_business_days for business-day math).

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