A Google Calendar API mock for scheduling meetings.
Give your agent seeded calendars, events and attendees. It can create a meeting; read the event afterwards to check its start, end and guest list.
meeting_createdCalls POST /calendar/v3/calendars/*/events
Starting records
calendars
- ref
team- summary
Acme team- description
Time off, all-hands and company events
events
- ref
ridgeway_checkin- summary
Ridgeway Robotics pilot check-in- description
Week 2 of the pilot: warehouse data in the sales pipeline, open questions on exports.- start
2026-11-02T10:00:00-08:00
events / ridgeway_checkin / attendees
erin.walsh@ridgeway-robotics.example- name
Erin Walsh
Connect your agent to the Google Calendar mock
When ancha runs your agent, it sets:
GOOGLE_CALENDAR_API_URLGOOGLE_CALENDAR_ACCESS_TOKEN
Point the client you already use at them.
import { auth, calendar } from '@googleapis/calendar';
const oauth = new auth.OAuth2();
oauth.setCredentials({ access_token: process.env.GOOGLE_CALENDAR_ACCESS_TOKEN });
const cal = calendar({ version: 'v3', auth: oauth });
const options = { rootUrl: process.env.GOOGLE_CALENDAR_API_URL + '/' };
const { data } = await cal.events.list({ calendarId: 'primary', timeMin: '2026-11-02T00:00:00Z', singleEvents: true, orderBy: 'startTime', maxResults: 10 }, options);Locally, ancha runs your agent as an ordinary process, so keep real Google Calendar credentials out of its environment.
See all 20 endpoints
calendar
/calendar/v3/calendars/calendar/v3/calendars/:calendarId/calendar/v3/calendars/:calendarId/calendar/v3/calendars/:calendarId/calendar/v3/calendars/:calendarId/events/calendar/v3/calendars/:calendarId/events/calendar/v3/calendars/:calendarId/events/:eventId/calendar/v3/calendars/:calendarId/events/:eventId/calendar/v3/calendars/:calendarId/events/:eventId/calendar/v3/calendars/:calendarId/events/:eventId/calendar/v3/calendars/:calendarId/events/:eventId/instances/calendar/v3/calendars/:calendarId/events/:eventId/move/calendar/v3/calendars/:calendarId/events/import/calendar/v3/calendars/:calendarId/events/quickAdd/calendar/v3/colors/calendar/v3/freeBusy/calendar/v3/users/me/calendarList/calendar/v3/users/me/calendarList/:calendarId/calendar/v3/users/me/settings/calendar/v3/users/me/settings/:settingSeed your own data
The data the Google Calendar mock starts with on every run, cut to a few records. ancha twins seed google-calendar prints every field.
Full seed YAML
twins:
- google-calendar
seed:
google-calendar:
owner:
email: ben@acme.example
name: Ben Carter
calendars:
- ref: team
summary: Acme team
description: Time off, all-hands and company events
access: writer
color_id: "7"
events:
- ref: ridgeway_checkin
summary: Ridgeway Robotics pilot check-in
description: "Week 2 of the pilot: warehouse data in the sales pipeline, open questions on exports."
start: 2026-11-02T10:00:00-08:00
end: 2026-11-02T10:30:00-08:00
meet: true
created: -50h
attendees:
- email: erin.walsh@ridgeway-robotics.example
name: Erin Walsh
response: accepted
Check what your agent did
Checks YAML
checks:
- id: meeting_created
trace:
called: POST /calendar/v3/calendars/*/eventsTested together
All 43 toolsGoogle Calendar API mock FAQ
How can I test a scheduling agent that checks Google Calendar availability?
Call POST / with timeMin, timeMax and calendar IDs in items. Ancha expands recurring events, clips busy periods to that window and merges overlapping periods. Cancelled events and events marked transparent are excluded from busy time.
How do recurring meetings appear in the Google Calendar mock?
List events with singleEvents=true to expand a recurring series into occurrences; use orderBy=startTime to sort them. Each occurrence has its own ID, recurringEventId and originalStartTime. A weekly RRULE can select weekdays with BYDAY and end after COUNT occurrences.
What does the Calendar sandbox return if my agent creates the same event ID twice?
When an event with that ID already exists in the calendar, the mock returns 409 with reason duplicate. Supply a valid event id in POST / to exercise that retry path.
Install the CLI and run your agent against the Google Calendar mock.
Ancha is not affiliated with Google Calendar.