time-tool
Convert natural language time descriptions (e.g., '2pm today') into precise time values. Optionally specify a timezone for accurate results.
Instructions
This tool is capable of returning the time from a natural language query. If the user asks about the 'current time' use this tool. Try to kee time_description as close to the users initial query as possible. For example if someone says 'was X person seen today?' then time_description should be 'today'.
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": {
"time_description": "<time_description>",
"timezone": "<timezone>"
},
"name": "time-tool"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| time_description | Yes | A natural language description of the time (e.g., '2pm today', 'tomorrow at noon'). | |
| timezone | Yes | Optional IANA timezone string (e.g., 'America/Los_Angeles', 'UTC'). Will default to system timezone if not provided. |