Overview
Add Google Contacts to any ModuleX agent or workflow. Manage Google Contacts (People API v1) — create, list, get, update, and delete the authenticated user’s contacts, plus list Google Workspace directory people. All calls go tohttps://people.googleapis.com/v1.
Authentication
Google OAuth2
Connect using Google OAuth (recommended) — Contacts + Directory scopes.Required Credentials
| Field | Description | Required | Format |
|---|---|---|---|
| Client ID | Google Cloud OAuth 2.0 Client ID. | Yes | xxxxxxxxxxxx-xxxxxxxxxxxxxxxx.apps.googleusercontent.com |
| Client Secret | Google Cloud OAuth 2.0 Client Secret. | Yes | GOCSPX-xxxxxxxxxxxxxxxxxxxxxxxx |
OAuth Configuration
- Authorization URL:
https://accounts.google.com/o/oauth2/v2/auth - Token URL:
https://oauth2.googleapis.com/token - Scopes:
https://www.googleapis.com/auth/contacts,https://www.googleapis.com/auth/directory.readonly
Available Actions
create_contact — Create a new contact in the authenticated user's Google Contacts.
create_contact — Create a new contact in the authenticated user's Google Contacts.
Parameters
Response
delete_contact — Delete a contact by its People API resource name (e.g. 'people/c123456').
delete_contact — Delete a contact by its People API resource name (e.g. 'people/c123456').
get_contact — Fetch a single contact by its People API resource name.
get_contact — Fetch a single contact by its People API resource name.
Parameters
Response
list_contacts — List every contact owned by the authenticated user (auto-paginates).
list_contacts — List every contact owned by the authenticated user (auto-paginates).
list_directory_contacts — List contacts from the Google Workspace directory (domain contacts / domain profiles). Requires the directory.readonly OAuth scope.
list_directory_contacts — List contacts from the Google Workspace directory (domain contacts / domain profiles). Requires the directory.readonly OAuth scope.
Parameters
fields.100)false)Response
update_contact — Update an existing contact. Re-fetches the latest etag first to avoid stale-update errors.
update_contact — Update an existing contact. Re-fetches the latest etag first to avoid stale-update errors.
Parameters
Response
Limits & Quotas
- Google People API default quota: 90 reads/minute and 60 writes/minute per user, 1,200 reads/minute per project. Higher limits available via Google Cloud quota request.
list_contactsauto-paginates throughpeople/me/connections— beware large contact directories (each page is 100 contacts by default; the implementation fetches every page in sequence).list_directory_contactsreturns one page per call; supplypage_token/sync_tokenfrom a previous response for pagination or incremental sync.update_contactperforms an extraGETto refresh the etag before thePATCH. Stale-etag updates are rejected by Google with HTTP 400.- Error model: non-2xx responses raise
httpx.HTTPStatusError. The modulex runtime surfaces these as failed tool calls — plan for retries on the agent side if a transient 5xx is possible.