Get Current Time
current_timeReturns the current time in UTC and a specified or guessed timezone.
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_time"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| format | No | The format for the returned time string. Either a dayjs token string (e.g. "YYYY-MM-DD HH:mm:ss") or a named format: "iso8601" / "rfc3339" (ISO 8601 UTC), "unix" (epoch seconds), "unix_ms" (epoch milliseconds). | YYYY-MM-DD HH:mm:ss |
| timezone | No | The IANA timezone name (e.g., "America/New_York"). Defaults to the server's guessed timezone. |