View as Markdown
Google Calendar icon

Google Calendar ACTION

List Events

List or search the events on a Google Calendar. Use this for "what's on my calendar", "what's my schedule/agenda", "what's coming up", "am I busy/free", or any question about the events in a date range: set timeMin/timeMax for the window, q to search event text, and singleEvents to true to expand recurring events into individual occurrences. Response size matters here: by default every field of every matching event is returned, which runs 2-10 KB per event (long descriptions, full attendee lists, HTML links), so one busy week can exceed 100 KB and overflow an AI agent's context window. Request only what the question needs — fields: "compact" (equivalently fields: "summary,start,end") answers a schedule question in a fraction of the bytes, and maxAttendees: 1 drops guest lists when the question is not about who is attending. See the documentation
  • Action
  • Read only
  • OAuth
  • SDK
  • MCP

IMPLEMENTATION

Call this tool

Connect a user's Google Calendar account once, then configure and run List Events from your backend or agent.

import { PipedreamClient } from "@pipedream/sdk"

const pd = new PipedreamClient({
  projectId: process.env.PIPEDREAM_PROJECT_ID!,
  clientId: process.env.PIPEDREAM_CLIENT_ID!,
  clientSecret: process.env.PIPEDREAM_CLIENT_SECRET!,
  projectEnvironment: "production",
})

const result = await pd.actions.run({
  id: "google_calendar-list-events",
  externalUserId: "{external_user_id}", // any stable ID for this user in your system
  configuredProps: {
    google_calendar: { authProvisionId: "apn_xxxxxxx" },
    calendarId: "Calendar",
    fields: "Fields",
  },
})

console.log(result)

SCHEMA

Inputs

Pipedream supplies the connected account. Your application provides the operation-specific values below. Dynamic inputs are resolved against that user's account.

List Events inputs
Property Type Description
calendarId Calendar string
Optionally select the calendar, defaults to the primary calendar for the logged-in user
Optional Dynamic
fields Fields string
Which fields to return for each event, as a comma-separated list (e.g. summary,start,end) — use this to keep the response small enough to work with. Shorthand: compact returns summary,start,end,status,location, which is what a "what's on my calendar" / schedule question needs. Add attendees only when the question is about who is invited, description only when the event's notes are needed, and htmlLink only when a link back to Google Calendar is requested — those three are what make responses large. The event's id is always returned, so the event can still be updated, deleted, or responded to without listing again. Leave blank to return the complete event resource (the default, and the largest possible response).
Optional
iCalUID iCal UID string
Specifies event ID in the iCalendar format to be included in the response. Optional.
Optional
maxAttendees Max Attendees integer
The maximum number of attendees to include per event. Leave unset and EVERY attendee of every event is returned — on events with large invite lists this is usually the single largest part of the response. Set to 1 when the question isn't about who is attending (only the authenticated user is returned).
Optional
maxResults Max Results integer
Maximum number of events returned on one result page. The number of events in the resulting page may be less than this value, or none at all, even if there are more events matching the query. Incomplete pages can be detected by a non-empty nextPageToken field in the response. By default the value is 250 events. The page size can never be larger than 2500 events. Optional.
Optional
orderBy Order By string
The order of the events returned in the result. Optional. The default is an unspecified, stable order. Must set Single Events to true to order by startTime.
Optional
privateExtendedProperty Private extended property string
Extended properties constraint specified as propertyName=value. Matches only private properties. This parameter might be repeated multiple times to return events that match all given constraints.
Optional
q Query string
Free text search terms to find events that match these terms in any field, except for extended properties. Optional.
Optional
sharedExtendedProperty Shared Extended Property string
Extended properties constraint specified as propertyName=value. Matches only shared properties. This parameter might be repeated multiple times to return events that match all given constraints.
Optional
showDeleted Show Deleted boolean
Whether to include deleted events (with status equals "cancelled") in the result. Cancelled instances of recurring events (but not the underlying recurring event) will still be included if showDeleted and singleEvents are both False. If showDeleted and singleEvents are both True, only single instances of deleted events (but not the underlying recurring events) are returned. Optional. The default is False.
Optional
showHiddenInvitations Show Hidden Invitations boolean
Whether to include hidden invitations in the result. Optional. The default is False.
Optional
singleEvents Single Events boolean
Whether to expand recurring events into instances and only return single one-off events and instances of recurring events, but not the underlying recurring events themselves. Optional. The default is False.
Optional
timeMax Max Time string
Upper bound (exclusive) for an event's time to filter by. Must be an RFC3339 timestamp with mandatory time zone offset, for example, 2011-06-03T10:00:00-07:00, 2011-06-03T10:00:00Z. Milliseconds may be provided but are ignored. Must be greater than Min Time.
Optional
timeMin Min time string
Lower bound (exclusive) for an event's time to filter by. Must be an RFC3339 timestamp with mandatory time zone offset, for example, 2011-06-03T10:00:00-07:00, 2011-06-03T10:00:00Z. Milliseconds may be provided but are ignored. Must be smaller than Max Time.
Optional
timeZone Time Zone string
Time zone used in the response. Optional. The default is the time zone of the calendar.
Optional Dynamic
updatedMin Minimum Updated Time string
Lower bound for an event's last modification time (as a RFC3339 timestamp) to filter by. When specified, entries deleted since this time will always be included regardless of showDeleted. Optional. The default is not to filter by last modification time.
Optional
eventTypes Event Types string[]
Filter events by event type
Optional

REFERENCE

Tool details

Behavior hints are published with the component in the Pipedream registry and surface as MCP tool annotations, so an agent can reason about a tool before it calls it.

Registry key
google_calendar-list-events
Version
0.1.1
App
Google Calendar
Authentication
OAuth
Read-only
Yes
Destructive
No
Open world
Yes