# Google Calendar

> Connect Google Calendar to FlyMyAI agents.

Lets an agent read and manage events across the calendars you own or are
subscribed to in Google Calendar.

## What it can do

| Method | What it does |
| --- | --- |
| `calendar_list_calendars` | List calendars: id, summary, primary, accessRole. |
| `calendar_list_events` | List events in a calendar (calendar_id default `primary`); time_min/time_max in RFC3339. |
| `calendar_create_event` | Create an event with start/end dateTime in RFC3339. |

## How to get credentials

Google Calendar uses Google OAuth - there's no token to copy.

1. In FlyMyAI, open the Google Calendar MCP and start the setup flow.
2. Sign in to the Google account whose calendars the agent should use.
3. Approve the scopes. Google Calendar requests read/write on calendars
   and events.
4. You're returned to FlyMyAI; the tool flips to **Configured**.

If you work with multiple Google accounts, pick the right one on the
Google account chooser before approving.

## Fields to fill in FlyMyAI

No fields - OAuth handles it. Reconnect if you need to switch accounts.

## Troubleshooting

- **Agent only sees one calendar** - Google shows the primary calendar
  first. Ask the agent to call `list_calendars` - all subscribed
  calendars should be there, identified by `id`.
- **403 on create/update** - the calendar is read-only for your account
  (e.g. a shared calendar without write permission). Choose a different
  calendar or ask the owner to grant *Make changes to events*.
- **Event timezone looks wrong** - Google returns events in the
  calendar's timezone. Pass `timeZone` explicitly when creating events if
  your account's default differs.

## Links

- [Google Calendar settings](https://calendar.google.com/calendar/u/0/r/settings)
- [Calendar API reference](https://developers.google.com/calendar/api/v3/reference)
