Current Date and Time
current_datetimeGet current date and time with optional IANA timezone. Use to compute ages, durations, or timestamp events accurately.
Instructions
Return the current date and time. Use this whenever you need to know "now", compute ages/durations, or timestamp something — never guess the date.
Args:
timezone (string): Optional IANA timezone, e.g. "Europe/Madrid", "America/New_York", "UTC". Defaults to the system timezone.
Returns the ISO timestamp, a human-readable string, and component parts.
Example: { "timezone": "Asia/Tokyo" }
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "current_datetime"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| timezone | No | IANA timezone (default: system local) |