Calendar Get Calendar Context
calendar_get_calendar_contextRetrieve the account's time zone, current date and time, and calendar list to resolve relative phrases like 'tomorrow at 3pm' and find calendar IDs beyond 'primary'.
Instructions
Get the account's Calendar time zone, the current date and time in it, and the user's calendars. Call it before turning relative phrases such as "tomorrow at 3pm" into the times other calendar tools take, or to find a calendar_id other than 'primary'. Returns current_date, current_time, day_of_week, timezone and timezone_name (both the IANA name), utc_offset, current_local_time, current_utc_time (also as utc_datetime), count, has_more (false), next_page_token, fetched_at and calendars: each with id (the calendar_id), name, description, primary, access_role (owner, writer, reader or freeBusyReader), time_zone, hidden and selected (shown in the user's Google Calendar view).
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": "calendar_get_calendar_context"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| include_calendars | No | Also list every calendar in the user's calendar list (all pages). False returns only the clock and time zone, with calendars null, and skips that lookup. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| count | No | Number of items in this response. | |
| has_more | No | Whether another page is available. | |
| timezone | No | ||
| calendars | No | ||
| fetched_at | No | RFC3339 time when this response was fetched. | |
| utc_offset | No | ||
| day_of_week | No | ||
| current_date | No | ||
| current_time | No | ||
| utc_datetime | No | ||
| timezone_name | No | ||
| next_page_token | No | Opaque token for the next page, or null. | |
| current_utc_time | No | ||
| current_local_time | No |