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
| Name | Required | Description | Default |
|---|---|---|---|
| query | No | Free-text search across event summary, description, location, attendees, etc. | |
| detailed | No | If true, includes attendees, attachments, conferencing details, and extended properties. | |
| event_id | No | Specific event ID to retrieve. If provided, other filter params are ignored. | |
| time_max | No | End of time range in RFC3339 format (e.g. "2025-01-31T23:59:59Z"). | |
| time_min | No | Start of time range in RFC3339 format (e.g. "2025-01-01T00:00:00Z"). Defaults to now if not specified. | |
| calendar_id | No | Calendar ID to query. Use "primary" for the main calendar, or an email address for a shared calendar. | primary |
| max_results | No | Maximum number of events to return (default 25, max 2500). |