Skip to main content
Glama

Get calendar events

get_calendar_events
Read-only

List events from the user's connected calendars, Google and Outlook together, ordered by start time: summary, start/end, location, organizer, attendees and their RSVP status, a meeting link when there is one, and which provider and account each event came from (Outlook events carry a web_link that opens them in Outlook). With no time range it returns upcoming events from now. For one whole day ('who am I meeting today', 'what's on tomorrow', 'Friday the 21st') pass day: 'today', 'tomorrow', 'yesterday' or a date YYYY-MM-DD, read midnight to midnight in the user's timezone, the same day the Today page shows. Otherwise time_min and time_max are RFC3339 timestamps built from the current date in the system prompt; past ranges work too. Every result carries owner_clock (the user's timezone, now and today): if the range you read is not the day the user asked about, read again before answering. query free-text matches event titles, descriptions, and attendees, so an empty result with a query means nothing matched it, not that the calendar is clear. If the result has accounts_failed or an error, those calendars were not read: say so and never call the calendar clear on the strength of a partial or failed read. For 'how many meetings' questions over long ranges (a quarter, a year), set count_only=true; it sweeps the whole range and returns the total plus a per-month breakdown instead of the events themselves, so a 12-month count is one call. By default this reads each account's main calendar. When a Google account can list its calendars, the result carries available_calendars (name, id, access role), shared calendars included: pass a calendar's name or id as calendar_id ('Family') to read it, or all_calendars=true to read every calendar at once. For an Outlook calendar, get its id from list_outlook_calendars. If the result says no calendar is connected (or the account lacks calendar access), show the user the message and link them to https://youspot.com/user/integrations/gmail.

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": "get_calendar_events"
  }
}

Input Schema

NameRequiredDescriptionDefault
dayNoOne whole day in the user's timezone: 'today', 'tomorrow', 'yesterday' or 'YYYY-MM-DD'. Replaces time_min and time_max.
queryNoFree-text search over events (titles, descriptions, attendees). Omit to list everything in the range.
accountNoEmail address of one connected Google account or Outlook mailbox. Omit to read all connected calendars.
time_maxNoLatest event start, RFC3339.
time_minNoEarliest event end, RFC3339 ('2026-08-19T00:00:00Z'). Defaults to now when time_max is also omitted.
count_onlyNoReturn only counts (total and per calendar month) instead of the events. Sweeps far more of the range (up to 12,500 events) than an event listing can. Use for totals and "how many" questions.
calendar_idNoWhich calendar to read: a name or id from available_calendars, or an id from list_google_calendars or list_outlook_calendars. Omit for each account's main calendar.
max_resultsNoMax events to return (default 10, max 250).
all_calendarsNoRead every Google calendar the user can see events on, shared ones included, instead of just the main one. Each event then names its calendar.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / day
      Added value: +{
      +  "description": "One whole day in the user's timezone: 'today', 'tomorrow', 'yesterday' or 'YYYY-MM-DD'. Replaces time_min and time_max.",
      +  "type": "string"
      +}
  2. Changed2 schema fields changed
    • addedInput schema / properties / all_calendars
      Added value: +{
      +  "description": "Read every Google calendar the user can see events on, shared ones included, instead of just the main one. Each event then names its calendar.",
      +  "type": "boolean"
      +}
    • changedInput schema / properties / calendar_id / description
      Previous value: -"Which calendar to read: an id from list_google_calendars or list_outlook_calendars. Omit for each account's main calendar."New value: +"Which calendar to read: a name or id from available_calendars, or an id from list_google_calendars or list_outlook_calendars. Omit for each account's main calendar."
  3. Changed2 schema fields changed
    • changedInput schema / properties / account / description
      Previous value: -"Email address of one connected Google account. Omit to read all connected accounts."New value: +"Email address of one connected Google account or Outlook mailbox. Omit to read all connected calendars."
    • changedInput schema / properties / calendar_id / description
      Previous value: -"Which calendar to read: an id from list_google_calendars. Omit for the primary calendar."New value: +"Which calendar to read: an id from list_google_calendars or list_outlook_calendars. Omit for each account's main calendar."
  4. Changed2 schema fields changed
    • changedInput schema / properties / calendar_id / description
      Previous value: -"Which calendar to read — an id from list_google_calendars. Omit for the primary calendar."New value: +"Which calendar to read: an id from list_google_calendars. Omit for the primary calendar."
    • changedInput schema / properties / count_only / description
      Previous value: -"Return only counts — total and per calendar month — instead of the events. Sweeps far more of the range (up to 12,500 events) than an event listing can. Use for totals and \"how many\" questions."New value: +"Return only counts (total and per calendar month) instead of the events. Sweeps far more of the range (up to 12,500 events) than an event listing can. Use for totals and \"how many\" questions."
  5. First observed

TDQS

A4.4/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true, so the safety profile is covered; the description adds genuinely useful behavior beyond that — partial-failure semantics (accounts_failed/error means those calendars were not read and must not be reported as clear), the owner_clock re-read rule, and the default of reading only each account's main calendar. It does not cover pagination or result ordering beyond 'ordered by start time', and max_results truncation behavior is left to the schema.

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

Conciseness4/5

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

Front-loaded with the resource and returned fields, then ordered by decision: day vs range, then query, then failure handling, then count_only, then calendar selection. It is a dense single block and a few clauses (the Outlook web_link aside, the integrations URL) could be trimmed, but nearly every sentence carries operational instruction.

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?

With no output schema, the description carries the full burden and does so: it names the returned fields, owner_clock, available_calendars, accounts_failed, and the no-calendar-connected message with a remediation link. For a 9-parameter, multi-provider read tool this is complete enough to call correctly without further exploration.

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

Parameters4/5

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

Schema coverage is 100%, so the baseline is 3, but the description adds real meaning: `day` is read midnight-to-midnight in the user's timezone and replaces time_min/time_max, past ranges are allowed, and an empty result with `query` means nothing matched rather than a clear calendar. It also explains that calendar_id accepts a name or an id from available_calendars, which the schema only gestures at.

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?

Opens with a specific verb and resource ('List events from the user's connected calendars, Google and Outlook together') and enumerates the returned fields, so the agent knows exactly what it gets back. It is clearly distinguishable from the sibling mutation tools (create_calendar_event, update_calendar_event) and from list_outlook_calendars, which it explicitly defers to for Outlook calendar ids.

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?

Gives explicit routing rules: use `day` for whole-day questions with concrete example phrasings, otherwise build `time_min`/`time_max` from the current date in the system prompt, and use count_only=true for 'how many' questions over quarters or years. It also names the alternative source for Outlook calendar ids and states the fallback when no calendar is connected.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.