datetime Server Tool provides models with the current date and time. Instead of hardcoding dates in system prompts or relying on models’ training cutoffs, use this tool to give models accurate, real-time temporal awareness.
Quick Start
- TypeScript
- Python
- cURL
Configuration
| Parameter | Type | Default | Description |
|---|---|---|---|
id | string | — | Must be "datetime" |
timezone | string | "UTC" | IANA timezone identifier (e.g. "America/New_York", "Asia/Shanghai", "Europe/London") |
Tool Response Format
When the model invokesdatetime, ARouter returns the following structure as the tool result:
Use Cases
Scheduling and planning:Pricing
Thedatetime tool is free — no additional charge beyond normal LLM token costs for the injected tool result.
Next Steps
- Web Search Tool — Real-time web search with citations
- Server Tools Overview — All available server tools