Skip to main content
Glama

Calendar Search Events

calendar_search_events
Read-onlyIdempotent

Search a Google calendar for events within a set time window, using presets like today or next 7 days or explicit start and end times, and get compact results with IDs, titles, times, and response status.

Instructions

Find events on one calendar in a time window, given as a range_preset or explicit time_min/time_max. For the user's upcoming week plus pending invitations use calendar_get_calendar_digest, and for full details of known events use calendar_read_events. Returns compact events (id, title, start and end in the account time zone, all_day, status, organizer, my_response, requires_response, meeting_url, location, is_recurring, updated_at), count, next_page_token, account_timezone and the effective_time_min/effective_time_max that were applied.

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_search_events"
  }
}

Input Schema

NameRequiredDescriptionDefault
order_byNo'startTime' sorts by start (applied only when single_events is true; otherwise no order is requested) or 'updated' sorts by last modification time.startTime
time_maxNoRFC3339 time with offset, e.g. '2026-03-08T00:00:00Z'; returns events that start before it. Overrides the end of range_preset.
time_minNoRFC3339 time with offset, e.g. '2026-03-01T00:00:00Z'; returns events that end after it. Overrides the start of range_preset; with no time_min, time_max or range_preset the list is unbounded and starts at the calendar's oldest events.
page_tokenNoThe next_page_token from the previous response of this same call; omit for the first page. Keep every other argument the same; range_preset 'next_7_days' moves with the clock, so page with the effective_time_min/effective_time_max of the first response.
calendar_idNoCalendar ID: 'primary' for the user's main calendar, or an ID from calendar_get_calendar_context's calendars (often an email address).primary
max_resultsNoEvents per page; next_page_token continues the list.
range_presetNoWindow in the account's time zone: 'today' or 'tomorrow' (midnight to midnight), 'this_week' (Monday 00:00 for 7 days) or 'next_7_days' (from now). Fills only the bound that time_min or time_max leaves unset.
single_eventsNoTrue expands recurring events into their individual occurrences (instance IDs). False returns each series once, as its master event.

Output Schema

NameRequiredDescriptionDefault
countNoNumber of items in this response.
eventsNoEvents on this page.
has_moreNoWhether another page is available.
fetched_atNoRFC3339 time when this response was fetched.
range_presetNoThe range_preset that was applied, or null.
next_page_tokenNoOpaque token for the next page, or null.
account_timezoneNoIANA time zone of every time in this result.
effective_time_maxNoWindow end actually sent to Google; reuse it when paging.
effective_time_minNoWindow start actually sent to Google; reuse it when paging.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed14 schema fields changedv2.2.0
    • changedInput schema / properties / max_results / description
      Previous value: -"Maximum events per page, 1 to 2500; next_page_token continues the list."New value: +"Events per page; next_page_token continues the list."
    • addedInput schema / properties / max_results / maximum
      Added value: +2500
    • addedInput schema / properties / max_results / minimum
      Added value: +1
    • addedOutput schema / properties / account_timezone / description
      Added value: +"IANA time zone of every time in this result."
    • addedOutput schema / properties / effective_time_max / description
      Added value: +"Window end actually sent to Google; reuse it when paging."
    • addedOutput schema / properties / effective_time_max / type
      Added value: +[
      +  "string",
      +  "null"
      +]
    • addedOutput schema / properties / effective_time_min / description
      Added value: +"Window start actually sent to Google; reuse it when paging."
    • addedOutput schema / properties / effective_time_min / type
      Added value: +[
      +  "string",
      +  "null"
      +]
    • addedOutput schema / properties / events / description
      Added value: +"Events on this page."
    • addedOutput schema / properties / events / items / description
      Added value: +"Compact event."
    • addedOutput schema / properties / events / items / properties
      Added value: +{
      +  "all_day": {
      +    "description": "Whether the event spans whole days.",
      +    "type": "boolean"
      +  },
      +  "attendee_count": {
      +    "description": "Number of guests.",
      +    "type": "integer"
      +  },
      +  "end": {
      +    "description": "End in the account time zone (RFC3339), or a date for all-day events.",
      +    "type": [
      +      "string",
      +      "null"
      +    ]
      +  },
      +  "event_timezone": {
      +    "description": "Zone the event was scheduled in, when it differs from the account's.",
      +    "type": [
      +      "string",
      +      "null"
      +    ]
      +  },
      +  "id": {
      +    "description": "Event ID (an instance ID for an expanded recurring event).",
      +    "type": [
      +      "string",
      +      "null"
      +    ]
      +  },
      +  "is_recurring": {
      +    "description": "Whether the event belongs to a recurring series.",
      +    "type": "boolean"
      +  },
      +  "location": {
      +    "description": "Location text.",
      +    "type": [
      +      "string",
      +      "null"
      +    ]
      +  },
      +  "meeting_url": {
      +    "description": "Video meeting link.",
      +    "type": [
      +      "string",
      +      "null"
      +    ]
      +  },
      +  "my_response": {
      +    "description": "The user's own response: needsAction, accepted, declined or tentative.",
      +    "type": [
      +      "string",
      +      "null"
      +    ]
      +  },
      +  "organizer": {
      +    "description": "Organizer name and email.",
      +    "type": "object"
      +  },
      +  "requires_response": {
      +    "description": "True when the user has not answered the invitation.",
      +    "type": "boolean"
      +  },
      +  "start": {
      +    "description": "Start in the account time zone (RFC3339), or a date for all-day events.",
      +    "type": [
      +      "string",
      +      "null"
      +    ]
      +  },
      +  "status": {
      +    "description": "confirmed, tentative or cancelled.",
      +    "type": [
      +      "string",
      +      "null"
      +    ]
      +  },
      +  "title": {
      +    "description": "Event title, '(untitled event)' when it has none.",
      +    "type": "string"
      +  },
      +  "updated_at": {
      +    "description": "Last modification time in the account time zone.",
      +    "type": [
      +      "string",
      +      "null"
      +    ]
      +  }
      +}
    • addedOutput schema / properties / events / items / type
      Added value: +"object"
    • addedOutput schema / properties / range_preset / description
      Added value: +"The range_preset that was applied, or null."
    • addedOutput schema / properties / range_preset / type
      Added value: +[
      +  "string",
      +  "null"
      +]
  2. Addedv2.1.0

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, non-destructive and open-world, so the safety profile is covered. The description adds genuine behavioral context beyond that: the compact return payload, and the pagination caveat that range_preset 'next_7_days' moves with the clock so pages must be paged with the effective_time_min/effective_time_max from the first response. It stops short of mentioning auth or rate-limit behavior, so it is strong rather than exhaustive.

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?

Three front-loaded sentences: purpose first, sibling routing second, return shape third. Wording is dense and purposeful, but the enumerated return-field list is partially redundant given that an output schema already exists, which slightly dilutes the economy.

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 an eight-parameter, all-optional search tool this is complete: it covers scope, alternatives, the pagination edge case that the schema alone cannot convey, and the shape of the result. The presence of an output schema means it does not need to explain return values in more depth.

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 description coverage is 100%, so every one of the eight parameters is already documented in the schema, including the override relationship between range_preset and time_min/time_max. The description only restates that these are the accepted ways to express the window and does not add syntax or interaction detail beyond the schema. Baseline 3 is appropriate when the schema carries the semantics.

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 description opens with a specific verb and resource ('Find events on one calendar') and immediately bounds the scope to a time window expressed as range_preset or time_min/time_max. It explicitly distinguishes itself from calendar_get_calendar_digest and calendar_read_events, so an agent can route correctly without opening either 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?

Two alternatives are named along with the exact conditions that select them: calendar_get_calendar_digest for the upcoming week plus pending invitations, and calendar_read_events for full details of known events. This leaves the agent with explicit when-to-use and when-to-use-something-else guidance rather than inference.

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