parse_temporal_expression_tool
Convert natural language time expressions like 'next Friday at 5pm' into exact ISO-8601 timestamps, preventing AI date hallucinations and schema failures.
Instructions
[Cost: $0.0002 USDC on Base & Solana] Deterministically converts conversational and relative time phrases ('next Tuesday at 4:30 PM', 'in 3 business days', 'yesterday at close') into strict ISO-8601 UTC and local timezone timestamps in sub-millisecond execution.
Eliminates LLM timestamp hallucinations and schema validation crashes without prompt round-trips.
Args:
query: Natural language date/time expression (e.g. 'next Friday at 5pm', 'in 4 hours', 'Sep 25, 2026 14:00').
reference_time: Optional ISO timestamp to anchor relative calculations against (defaults to current verified UTC time).
timezone: Target timezone name or abbreviation (e.g. 'America/New_York', 'UTC', 'EST', 'Europe/London', 'Asia/Tokyo').
payment_signature: Optional x402 Base/Solana USDC payment transaction hash or authorized key.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | Yes | ||
| timezone | No | UTC | |
| reference_time | No | ||
| payment_signature | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |