Skip to main content
Glama

Resolve a natural-language date

resolve_date
Read-only

Turn one date/time phrase ("next Friday at 3pm", "in 2 weeks", "tomorrow 9am EST", "Dec 25 to Jan 2") into exact ISO 8601 UTC and local timestamps in an IANA zone, with precision, which parts were stated, DST gap/fold flags and ambiguity flags. found:false when no date is recognized. Use before acting on any date a user typed.

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

Input Schema

NameRequiredDescriptionDefault
textYesThe phrase (max 512 bytes).
localeNoLanguage of the text. en reads 03/04 as March 4; en-GB as 3 April. Default en.
timezoneNoIANA time zone for reading and reporting local times, e.g. "America/Denver". Default UTC.
referenceNoISO 8601 date or date-time that relative phrases are resolved against (e.g. "2026-11-11T09:00:00-07:00"). Default: current server time.
forward_dateNoAlways pick the future reading of phrases like "Friday" or "October 5". Default false (closest reading).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.3/5.0
Behavior5/5

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

Annotations only cover the safety profile (readOnly, non-destructive, not idempotent, closed-world); the description goes well beyond them by describing the return contract in the absence of an output schema: UTC and local timestamps, precision, which parts were stated, DST gap/fold flags, ambiguity flags, and found:false for unrecognized input. The non-idempotency implied by the default 'current server time' reference is consistent with idempotentHint=false.

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?

Two sentences with no filler, and the core verb-plus-resource is front-loaded. The first sentence is a dense run-on listing output fields, which slightly hurts parseability, but each clause carries information the agent needs given there is no output schema.

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?

For a five-parameter tool with one required field and no output schema, the description covers purpose, usage timing, return contents, and the failure signal (found:false). It does not describe the concrete response structure (field names, nesting) or the range output for phrases like 'Dec 25 to Jan 2', which would fully close the gap.

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 100%, including locale disambiguation examples (03/04 as March 4 vs 3 April), so the schema already carries parameter meaning. The description adds only phrase examples ('next Friday at 3pm', 'Dec 25 to Jan 2') and reiterates the IANA zone and ISO 8601 conventions, which is baseline-level value.

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?

Uses a precise verb ('Turn one date/time phrase') and specifies both the input form (a single natural-language phrase) and the output (ISO 8601 UTC plus local timestamps in an IANA zone). The focus on 'one phrase' plus five resolution parameters implicitly separates it from bulk-extraction siblings like extract_dates, and an agent can tell immediately what it returns.

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?

States an explicit usage rule: 'Use before acting on any date a user typed,' which tells the agent when this tool should precede downstream actions. It stops short of naming alternatives (e.g. extract_dates for multiple phrases in a body of text) or stating when not to use it, so it is clear but not fully routing.

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