Skip to main content
Glama

time_parse

Read-only

Natural-language date parser — Turn phrases like 'next friday at 3pm PST', 'in 3 business days', 'Dec 10', 'end of month', '2 hours ago' or 'tomorrow 9am' into an exact timestamp: UTC + local ISO with offset, epoch, weekday, all-day flag, business-day and US federal holiday check, relative 'in 5 days', matched/ignored words, assumptions and confidence. Offline, DST-aware via IANA zones. Optional: tz (IANA zone or PST/EST/CT etc, default UTC), now (ISO reference time), calendar=us|none. 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": {
      "text": "<text>"
    },
    "name": "time_parse"
  }
}

Input Schema

NameRequiredDescriptionDefault
textYese.g. next friday at 3pm

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4/5.0
Behavior5/5

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

Well beyond the annotations, which only declare readOnly/openWorld/non-destructive: the description discloses the full return shape (UTC + local ISO with offset, epoch, weekday, all-day flag, holiday check, matched/ignored words, assumptions, confidence), the offline and DST-aware execution model, and a per-call price of $0.002 USDC via x402. That pricing and privacy/offline context is exactly the kind of operational detail an agent needs before invoking.

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?

Purpose and the example phrases are front-loaded, and every clause carries information (output fields, defaults, price). It is a single long em-dash sentence with a dense nested list, which is readable but slightly overstuffed; a short break before the pricing/parameters sentence would improve scanability.

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 takes on the burden of enumerating return fields, and it covers execution model, defaults, and cost. It loses a point for the documented tz/now/calendar options that the schema does not accept, leaving an agent uncertain which inputs are actually valid.

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 100% for the single 'text' parameter, but the description adds real meaning: accepted IANA zone names and shorthand abbreviations (PST/EST/CT), the UTC default, that 'now' is an ISO reference time, and that calendar accepts us|none. The one defect is that tz, now, and calendar are described as optional inputs while the input schema exposes only 'text', so an agent following the prose would attempt parameters the schema rejects.

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?

Names a specific verb and resource (natural-language date parser) and backs it with five concrete example phrases that pin down the input grammar ('next friday at 3pm PST', 'in 3 business days', 'end of month'). It does not, however, differentiate itself from the sibling time_date_parse, which an agent could plausibly pick instead.

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 examples and through stated defaults for tz/now/calendar, so an agent can infer this is the tool for turning a phrase into a timestamp. There is no explicit when-to-use / when-not-to-use guidance and no routing to related siblings such as time_convert, time_business_days, or time_holidays, even though the description advertises overlapping capabilities (business days, US federal holidays, relative output).

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