Skip to main content
Glama

Calendar Get Calendar Context

calendar_get_calendar_context
Read-onlyIdempotent

Retrieve 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

NameRequiredDescriptionDefault
include_calendarsNoAlso 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

NameRequiredDescriptionDefault
countNoNumber of items in this response.
has_moreNoWhether another page is available.
timezoneNo
calendarsNo
fetched_atNoRFC3339 time when this response was fetched.
utc_offsetNo
day_of_weekNo
current_dateNo
current_timeNo
utc_datetimeNo
timezone_nameNo
next_page_tokenNoOpaque token for the next page, or null.
current_utc_timeNo
current_local_timeNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv2.2.0

TDQS

A4.3/5.0
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations already cover read-only, idempotent, non-destructive and open-world behavior, yet the description still adds real context: the calendar list is fetched across all pages, has_more is always false, and setting include_calendars false skips the lookup and returns null calendars. It stops short of stating auth prerequisites or failure modes, so it is strong but not exhaustive.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The purpose and usage guidance are correctly front-loaded in the first two sentences, but the remainder is a long enumeration of every return field with aliases and enum values. Because an output schema already exists, much of that enumeration duplicates structured data and dilutes an otherwise tight definition.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a single-optional-parameter read tool with full annotations and an output schema, the description leaves nothing an agent needs unresolved: it says when to call it, what it returns conceptually, and how the one flag changes behavior. Complexity is low and the coverage is proportionate.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100% and the single include_calendars property already documents its default and the exact effect of setting it to false. The description adds no additional syntax or edge-case meaning for that parameter, so the schema is doing the work and the baseline 3 applies.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The first sentence names a specific verb and resource and enumerates exactly what is returned: the account time zone, the current date/time in it, and the user's calendars. That is clearly distinct from event-centric siblings like calendar_read_events, and the agent can tell it is a prerequisite/context tool without opening the schema.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

It states two explicit use cases: call before converting relative phrases such as "tomorrow at 3pm" into the absolute times other calendar tools accept, and use it to find a calendar_id other than 'primary'. That is direct when-to-use guidance tied to concrete downstream tools rather than generic advice.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Deploy Server

Other Tools