Skip to main content
Glama

getEvents

Retrieves Google Calendar events by ID or lists events within a time range, with optional text search; defaults to future events and supports shared calendars.

Instructions

Retrieves events from a Google Calendar. Can get a single event by ID, or list events in a time range with optional search. By default only returns future events (time_min defaults to now). To retrieve past events, set time_min to a past date (e.g. "2025-01-01T00:00:00Z"). Use calendar_id to query another user's calendar (requires sharing) or "primary" for the authenticated user.

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

Input Schema

NameRequiredDescriptionDefault
queryNoFree-text search across event summary, description, location, attendees, etc.
detailedNoIf true, includes attendees, attachments, conferencing details, and extended properties.
event_idNoSpecific event ID to retrieve. If provided, other filter params are ignored.
time_maxNoEnd of time range in RFC3339 format (e.g. "2025-01-31T23:59:59Z").
time_minNoStart of time range in RFC3339 format (e.g. "2025-01-01T00:00:00Z"). Defaults to now if not specified.
calendar_idNoCalendar ID to query. Use "primary" for the main calendar, or an email address for a shared calendar.primary
max_resultsNoMaximum number of events to return (default 25, max 2500).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv4.0.0-rc.1

TDQS

A3.6/5.0
Behavior3/5

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

With no annotations, the description carries the full behavioral burden. It usefully discloses the non-obvious future-only default and the workaround for past events, plus the sharing requirement for non-primary calendars, but it is silent on pagination (max_results 2500 cap with no continuation token described), auth/scope requirements, and error behavior for an invalid event_id.

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?

Four sentences, front-loaded with the core purpose before the mode split, then defaults, then calendar targeting. Every sentence is relevant, though the time_min default explanation duplicates what the schema already states, making it slightly longer than strictly necessary.

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

Completeness3/5

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

For a 7-parameter list/read tool with no output schema, the description covers invocation well but never describes the return shape (event fields, the effect of 'detailed', or result ordering) or how to page past max_results. That leaves a real gap that the missing output schema would otherwise have absorbed.

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%, so every parameter is already documented. The description's parameter content largely restates the schema — 'event_id overrides other filters' and 'time_min defaults to now' are both in the schema already — so it adds only marginal interpretation (why you would set a past time_min) rather than new semantics. Baseline 3 applies.

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

Purpose4/5

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

The description gives a specific verb and resource ('Retrieves events from a Google Calendar') and explicitly splits the tool into two modes: single-event lookup by event_id and range listing with query. It does not explicitly contrast itself with any sibling tool, but the resource (calendar events) is distinct enough from the getMessage/getFileInfo family that an agent can place it correctly.

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

Usage Guidelines4/5

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

It gives clear operating context: event_id for a single event, time range plus optional query for listing, and calendar_id='primary' versus a shared calendar (with the sharing prerequisite called out). It does not name an alternative tool for cases like free/busy lookup or cross-calendar search, so there is no explicit exclusion, but the modal guidance is strong.

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