Skip to main content
View source

Google Calendar

View as Markdown

A RocketRide tool family that exposes Google Calendar, Docs, Drive, Gmail, and Sheets to an agent. Pick the service-specific tool matching the Google Workspace resource the agent must operate, rather than using a general HTTP tool.

About Google Workspace

Google Workspace is a collection of cloud productivity services including mail, calendars, documents, file storage, and spreadsheets. Organizations use its services for collaboration and administrative work.

What it does

This parent groups five no-lane tool services: Calendar, Docs, Drive, Gmail, and Sheets. Each service authenticates through the shared Google lifecycle, builds only its own Google API client, and registers functions under its own server-name prefix. Select a service according to the resource the agent needs; the individual variant READMEs document their service-specific calls in depth.

As a tool

Each service registers exactly the functions below. A function name is prefixed by its service name; check_connection checks that service's configured access and connection. Individual operation arguments and return shapes are exposed in each function's registered schema.

FunctionDescription
calendar.check_connectionGoogle Calendar operation registered by this service.
calendar.event_listGoogle Calendar operation registered by this service.
calendar.event_getGoogle Calendar operation registered by this service.
calendar.event_instancesGoogle Calendar operation registered by this service.
calendar.freebusy_queryGoogle Calendar operation registered by this service.
calendar.calendar_listGoogle Calendar operation registered by this service.
calendar.calendar_getGoogle Calendar operation registered by this service.
calendar.acl_listGoogle Calendar operation registered by this service.
calendar.event_createGoogle Calendar operation registered by this service.
calendar.event_updateGoogle Calendar operation registered by this service.
calendar.event_moveGoogle Calendar operation registered by this service.
calendar.event_quick_addGoogle Calendar operation registered by this service.
calendar.calendar_createGoogle Calendar operation registered by this service.
calendar.calendar_updateGoogle Calendar operation registered by this service.
calendar.acl_insertGoogle Calendar operation registered by this service.
calendar.acl_deleteGoogle Calendar operation registered by this service.
calendar.event_deleteGoogle Calendar operation registered by this service.
calendar.calendar_deleteGoogle Calendar operation registered by this service.
docs.check_connectionGoogle Docs operation registered by this service.
docs.document_getGoogle Docs operation registered by this service.
docs.document_createGoogle Docs operation registered by this service.
docs.batch_updateGoogle Docs operation registered by this service.
docs.text_appendGoogle Docs operation registered by this service.
docs.text_replaceGoogle Docs operation registered by this service.
docs.image_insertGoogle Docs operation registered by this service.
docs.table_insertGoogle Docs operation registered by this service.
drive.check_connectionGoogle Drive operation registered by this service.
drive.file_listGoogle Drive operation registered by this service.
drive.file_searchGoogle Drive operation registered by this service.
drive.file_getGoogle Drive operation registered by this service.
drive.file_downloadGoogle Drive operation registered by this service.
drive.file_exportGoogle Drive operation registered by this service.
drive.drives_listGoogle Drive operation registered by this service.
drive.changes_listGoogle Drive operation registered by this service.
drive.file_createGoogle Drive operation registered by this service.
drive.file_updateGoogle Drive operation registered by this service.
drive.file_copyGoogle Drive operation registered by this service.
drive.file_moveGoogle Drive operation registered by this service.
drive.file_trashGoogle Drive operation registered by this service.
drive.file_untrashGoogle Drive operation registered by this service.
drive.folder_createGoogle Drive operation registered by this service.
drive.permission_listGoogle Drive operation registered by this service.
drive.permission_updateGoogle Drive operation registered by this service.
drive.permission_deleteGoogle Drive operation registered by this service.
drive.permission_createGoogle Drive operation registered by this service.
drive.file_deleteGoogle Drive operation registered by this service.
gmail.check_connectionGmail operation registered by this service.
gmail.message_listGmail operation registered by this service.
gmail.message_searchGmail operation registered by this service.
gmail.message_getGmail operation registered by this service.
gmail.message_modifyGmail operation registered by this service.
gmail.message_batch_modifyGmail operation registered by this service.
gmail.label_applyGmail operation registered by this service.
gmail.label_removeGmail operation registered by this service.
gmail.thread_getGmail operation registered by this service.
gmail.thread_listGmail operation registered by this service.
gmail.label_listGmail operation registered by this service.
gmail.label_createGmail operation registered by this service.
gmail.label_updateGmail operation registered by this service.
gmail.label_deleteGmail operation registered by this service.
gmail.draft_listGmail operation registered by this service.
gmail.draft_getGmail operation registered by this service.
gmail.draft_createGmail operation registered by this service.
gmail.draft_updateGmail operation registered by this service.
gmail.draft_sendGmail operation registered by this service.
gmail.draft_deleteGmail operation registered by this service.
gmail.message_sendGmail operation registered by this service.
gmail.message_trashGmail operation registered by this service.
gmail.message_untrashGmail operation registered by this service.
gmail.attachment_getGmail operation registered by this service.
gmail.history_listGmail operation registered by this service.
gmail.message_deleteGmail operation registered by this service.
gmail.messages_batchDeleteGmail operation registered by this service.
gmail.thread_modifyGmail operation registered by this service.
gmail.thread_trashGmail operation registered by this service.
gmail.thread_untrashGmail operation registered by this service.
gmail.thread_deleteGmail operation registered by this service.
gmail.message_archiveGmail operation registered by this service.
gmail.message_mark_readGmail operation registered by this service.
gmail.message_mark_unreadGmail operation registered by this service.
gmail.message_starGmail operation registered by this service.
gmail.message_unstarGmail operation registered by this service.
gmail.message_get_bodyGmail operation registered by this service.
gmail.filter_listGmail operation registered by this service.
gmail.filter_createGmail operation registered by this service.
gmail.filter_deleteGmail operation registered by this service.
gmail.watch_startGmail operation registered by this service.
gmail.watch_stopGmail operation registered by this service.
gmail.send_as_listGmail operation registered by this service.
gmail.send_as_getGmail operation registered by this service.
gmail.send_as_createGmail operation registered by this service.
gmail.send_as_updateGmail operation registered by this service.
gmail.send_as_deleteGmail operation registered by this service.
gmail.imap_getGmail operation registered by this service.
gmail.imap_updateGmail operation registered by this service.
gmail.pop_getGmail operation registered by this service.
gmail.pop_updateGmail operation registered by this service.
gmail.vacation_getGmail operation registered by this service.
gmail.vacation_updateGmail operation registered by this service.
gmail.forwarding_address_listGmail operation registered by this service.
gmail.forwarding_address_createGmail operation registered by this service.
gmail.forwarding_address_deleteGmail operation registered by this service.
gmail.delegate_listGmail operation registered by this service.
gmail.delegate_createGmail operation registered by this service.
gmail.delegate_deleteGmail operation registered by this service.
gmail.smime_listGmail operation registered by this service.
gmail.smime_set_defaultGmail operation registered by this service.
gmail.smime_deleteGmail operation registered by this service.
sheets.check_connectionGoogle Sheets operation registered by this service.
sheets.values_getGoogle Sheets operation registered by this service.
sheets.values_batch_getGoogle Sheets operation registered by this service.
sheets.spreadsheet_getGoogle Sheets operation registered by this service.
sheets.values_updateGoogle Sheets operation registered by this service.
sheets.values_batch_updateGoogle Sheets operation registered by this service.
sheets.values_appendGoogle Sheets operation registered by this service.
sheets.values_clearGoogle Sheets operation registered by this service.
sheets.spreadsheet_createGoogle Sheets operation registered by this service.
sheets.sheet_addGoogle Sheets operation registered by this service.
sheets.sheet_deleteGoogle Sheets operation registered by this service.
sheets.sheet_duplicateGoogle Sheets operation registered by this service.
sheets.sheet_copy_toGoogle Sheets operation registered by this service.
sheets.batch_updateGoogle Sheets operation registered by this service.

Write, delete, and sharing calls can be refused by the configured access tier or explicit safety flags. Connection and Google API failures surface through the tool call; call the relevant check_connection function when a scope or permission error needs diagnosis.

Configuration

Choose the authentication mode and the narrowest access tier for each service. The five services are independently configured, so setting a high tier for one does not broaden another service.

Google authentication

Each service has authType with service as the default and supports a service-account key, optional administrator email, or a user OAuth token. Use service authentication when the service account has the intended resource access; use user OAuth when the calls must act as the signed-in user. Missing service credentials or a user token whose scopes do not cover the selected tier produce configuration warnings.

Google Calendar

Calendar defaults to the write access tier; readonly allows only event, calendar, ACL, and free/busy reads. Deleting events or calendars remains refused until allowDelete is enabled. Public or domain-wide ACL inserts require allowPublicSharing; keep both safety flags off unless the agent has an explicit destructive or sharing responsibility.

Google Docs

Docs defaults to write, which permits document creation, text and structural updates. Use readonly for an agent that should only read document text and metadata. In particular, reserve batch_update for agents that intentionally issue structured Docs update requests.

Google Drive

Drive defaults to write; readonly supports listing, metadata, downloading, and export without modifications. Public or external sharing is blocked until allowPublicSharing is on. Permanent file_delete bypasses Trash and is separately blocked until allowHardDelete is on; prefer trashing for recoverable removal.

Gmail

Gmail defaults to modify, permitting reads and organization but not sending. Select readonly for an inspection agent, send when it must send mail, settings or settings_sharing only for the corresponding administrative operations, and full only when permanent deletion is intended. Even at the full tier, hard deletion is blocked until allowHardDelete is enabled.

Google Sheets

Sheets defaults to write, covering spreadsheet creation, values operations, sheet structure changes, and batch updates. Select readonly when the agent should only retrieve values and metadata.

Authentication

Google user mode relies on the stored user OAuth token; service mode uses the configured service account material, optionally with an administrator identity for delegated access. Select access tiers through the service configuration rather than hand-entering scopes. The connection-check tool verifies whether granted OAuth scopes cover the selected tier.

Notes

Separate server names

Calendar, Docs, Drive, Gmail, and Sheets use the calendar, docs, drive, gmail, and sheets prefixes respectively. They are distinct tool servers even though they share authentication lifecycle code.

Upstream docs

Schema

Google Calendar (services.calendar.json)

FieldTypeDescriptionDefault
calendar.accessstringAccess level
Calendar scopes to request. readonly: read events, calendars, ACLs, and free/busy only. write: full read/write (create, update, move, quick-add events; manage calendars and ACLs). Deletion additionally requires the allowDelete flag; public/domain-wide ACL sharing requires allowPublicSharing.
"write"
calendar.allowDeletebooleanAllow event / calendar deletion
When off (the default), event_delete and calendar_delete are refused even at the write tier. Enable only if the agent should be able to permanently delete events and calendars — this is irreversible.
false
calendar.allowPublicSharingbooleanAllow public / domain-wide calendar sharing
Off by default. When off, acl_insert refuses rules that expose the calendar beyond individual grantees (scopeType 'default' = anyone on the internet, and 'domain' = everyone in a domain). Turn on to allow public or domain-wide sharing. Grants to individual users/groups are not gated.
false

Google Docs (services.docs.json)

FieldTypeDescriptionDefault
docs.accessstringAccess level
Docs scopes to request. readonly: read document text and metadata only. write: full read/write (create documents, append and replace text, insert images and tables, and run arbitrary batchUpdate requests).
"write"

Google Drive (services.drive.json)

FieldTypeDescriptionDefault
drive.accessstringAccess level
Drive scopes to request. readonly: list, read metadata, download, and export only. write: full read/write (create, update, copy, move, trash, folders, and sharing).
"write"
drive.allowHardDeletebooleanAllow permanent delete
Off by default. When off, file_delete (which permanently deletes a file, bypassing Trash and irreversibly) is refused. Turn on to allow permanent deletion; file_trash is the recoverable alternative.
false
drive.allowPublicSharingbooleanAllow public / external sharing
Off by default. When off, permission_create refuses anyone-with-link grants and grants to a domain or user outside the account's own domain. Turn on to allow sharing files publicly or with external parties.
false

Gmail (services.gmail.json)

FieldTypeDescriptionDefault
gmail.accessstringAccess level
Gmail scopes to request. readonly: read only. modify: read + label/organize. send: modify + send mail. settings: modify + filters/IMAP/POP/vacation/forwarding. settings_sharing: settings + sendAs/delegation/S⁠MIME. full: complete mailbox access, required for permanent delete.
"modify"
gmail.allowHardDeletebooleanAllow permanent delete
Enable permanent message/thread deletion (requires full access tier). Disabled by default to protect against accidental data loss.
false

Google Sheets (services.sheets.json)

FieldTypeDescriptionDefault
sheets.accessstringAccess level
Sheets scopes to request. readonly: read values and metadata only. write: full read/write (create, update, append, clear, and structure changes such as add/delete/duplicate sheet).
"write"

Dependencies

  • google-api-python-client
  • google-auth
  • google-auth-oauthlib
  • google-auth-httplib2
  • idna >=3.15
  • protobuf >=5.29.6