Google Workspace (gsuite-sdk)

v0.15.0
io.github.PabloAlaniz/gsuite-sdk Checked 2 days ago Published 10 days ago

Gmail, Calendar, Drive, Sheets, Tasks and Contacts for agents, with your own Google login

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

auth_status

Whether the server has a valid Google login, and for which account and scopes.

gmail_read

Read one email: headers, text body and attachment list.

ParameterTypeDescription
message_id *string

gmail_send

Send an email. Confirm recipients and content with the user first.

ParameterTypeDescription
body *string
subject *string
to *array
bcc
cc
htmlboolean

gmail_reply

Reply in the thread of a message. Confirm the content with the user first.

ParameterTypeDescription
body *string
message_id *string
reply_allboolean

gmail_create_draft

Save a draft without sending it (safe way to propose an email).

ParameterTypeDescription
body *string
subject *string
to *array
bcc
cc
htmlboolean

gmail_read_thread

Read a whole conversation: every message with its text body, oldest first. Messages carry their `thread_id`, so search or read a message first.

ParameterTypeDescription
thread_id *string

gmail_list_labels

Every label (system and user) with its ID and unread counts.

gmail_list_drafts

Saved drafts as summaries with their `draft_id`.

ParameterTypeDescription
max_resultsinteger

gmail_modify_labels

Add or remove labels on messages; labels are names or IDs. Recipes: archive = remove ["INBOX"]; mark read = remove ["UNREAD"]; mark unread = add ["UNREAD"]; star = add ["STARRED"]; file = add ["Work"]. Use gmail_trash to delete.

ParameterTypeDescription
message_ids *array
add
remove

gmail_forward

Forward a message with an optional note above it. Confirm recipients with the user first.

ParameterTypeDescription
message_id *string
to *array
bodystring
include_attachmentsboolean

gmail_send_draft

Send a saved draft. Confirm with the user first.

ParameterTypeDescription
draft_id *string

gmail_create_label

Create a label; "Parent/Child" nests it.

ParameterTypeDescription
name *string

gmail_trash

Move messages to the trash (Gmail empties it after 30 days). Confirm with the user first.

ParameterTypeDescription
message_ids *array

gmail_delete_draft

Discard a draft for good.

ParameterTypeDescription
draft_id *string

calendar_list_events

Events from now until `days` ahead.

ParameterTypeDescription
calendar_id
daysinteger
max_resultsinteger

calendar_create_event

Create an event. `start`/`end` are ISO; a date alone makes an all-day event. `meet` adds a Google Meet link; `send_updates="all"` emails the attendees (confirm with the user first).

ParameterTypeDescription
start *string
summary *string
attendees
calendar_id
description
end
location
meetboolean
send_updatesstring

calendar_delete_event

Delete an event. Confirm with the user first.

ParameterTypeDescription
event_id *string
calendar_id
send_updatesstring

calendar_free_busy

Busy intervals per calendar (default: the user's) between two ISO datetimes.

ParameterTypeDescription
time_max *string
time_min *string
calendars

drive_read_file

Text of a file: Google Docs/Slides as text, Google Sheets as CSV, and plain-text files as they are. Binary files (PDF, images) are refused.

ParameterTypeDescription
file_id *string
max_charsinteger

drive_upload

Upload a local file (path on the machine running this server).

ParameterTypeDescription
path *string
name
parent_id

drive_share

Share a file with a person (email) or with anyone who has the link (anyone=true). Confirm with the user first.

ParameterTypeDescription
file_id *string
anyoneboolean
email
notifyboolean
rolestring

sheets_read

Read a range. `spreadsheet` is a URL, an ID or an exact title; `sheet` is the tab (default: the first one). Values come back as displayed.

ParameterTypeDescription
spreadsheet *string
rangestring
sheet

sheets_append

Append rows after the last one with data.

ParameterTypeDescription
rows *array
spreadsheet *string
sheet

sheets_update

Overwrite a range starting at `range` (e.g. "B2") with a 2D list of values.

ParameterTypeDescription
range *string
spreadsheet *string
values *array
sheet

sheets_upsert

Update the rows whose `key` column matches and append the rest. The first row of the sheet is the header; rows are {column: value}.

ParameterTypeDescription
key *string
rows *array
spreadsheet *string
sheet

tasks_list

Tasks of a list (default: the user's main list), pending only unless show_completed. Needs the Tasks scope.

ParameterTypeDescription
due_before
max_resultsinteger
show_completedboolean
tasklist_idstring

tasks_add

Create a task (a subtask when `parent` is a task ID). `due` is a day.

ParameterTypeDescription
title *string
due
notes
parent
tasklist_idstring

tasks_complete

Mark a task as completed.

ParameterTypeDescription
task_id *string
tasklist_idstring

contacts_get

One contact by ID ("c123" or "people/c123").

ParameterTypeDescription
contact_id *string

contacts_list_groups

Contact groups (labels) with their member counts. System groups such as "myContacts" are included.

contacts_group_members

The contacts in a group (ID like "a1b2" or "contactGroups/a1b2").

ParameterTypeDescription
group_id *string

contacts_create_group

Create a contact group (label).

ParameterTypeDescription
name *string

contacts_modify_group

Add contacts to a group and/or remove them (contact IDs). Removing keeps the contact. `skipped` lists contacts Google left as they were.

ParameterTypeDescription
group_id *string
add
remove

contacts_delete_group

Delete a contact group; its contacts stay. Confirm with the user first.

ParameterTypeDescription
group_id *string

searchconsole_list_sites

Search Console properties the user can see (siteUrl, permissionLevel). Domain properties look like "sc-domain:example.com".

searchconsole_query

Search analytics: clicks, impressions, ctr and position, grouped by `dimensions` (each row's `keys` maps dimension -> value). Dates are ISO days (data lags ~2-3 days). `filters` are ANDed: [{"dimension": "query", "operator": "contains", "expression": "shoes"}]; operators: equals, notEquals, contains, notContains, includingRegex, excludingRegex. `row_limit` max 25000.

ParameterTypeDescription
end_date *string
site_url *string
start_date *string
dimensions
filters
row_limitinteger
search_typestring
start_rowinteger

searchconsole_inspect_url

URL Inspection: Google index status, coverage, canonical and last crawl for one URL of a property; `raw` has the full result (mobile usability, rich results).

ParameterTypeDescription
site_url *string
url *string
language_code

searchconsole_list_sitemaps

Sitemaps submitted for a property, with status, errors and warnings.

ParameterTypeDescription
site_url *string

analytics_account_summaries

GA4 accounts with their properties (use it to find property IDs).

analytics_list_properties

GA4 properties of an account ("123" or "accounts/123").

ParameterTypeDescription
account_id *string
show_deletedboolean

analytics_run_report

GA4 Data API runReport. Metrics e.g. activeUsers, sessions, screenPageViews, conversions; dimensions e.g. date, country, pagePath, sessionSource. Dates: ISO days or today/yesterday/NdaysAgo; `date_ranges` ([[start, end], ...]) overrides start/end. Filters are ANDed: {"field": "country", "value": "Argentina"}, {"field": .., "operator": "CONTAINS", "value": ..}, {"field": .., "values": [..]}, numeric {"field": "sessions", "operator": "GREATER_THAN", "value": 10}; "not": true negates. Each row has `dimensions` (name -> value) and numeric `me…

ParameterTypeDescription
metrics *array
property_id *string
date_ranges
descendingboolean
dimension_filters
dimensions
end_datestring
limitinteger
metric_filters
offsetinteger
order_by
start_datestring

analytics_run_realtime_report

GA4 realtime report (last 30 minutes). Default metric activeUsers; dimensions e.g. country, unifiedScreenName, deviceCategory.

ParameterTypeDescription
property_id *string
dimension_filters
dimensions
limitinteger
metrics

tagmanager_list_accounts

Tag Manager accounts (path like "accounts/123").

tagmanager_list_containers

Containers of an account ("accounts/123"), with their public GTM-XXXX id.

ParameterTypeDescription
account_path *string

tagmanager_list_workspaces

Workspaces of a container ("accounts/123/containers/456").

ParameterTypeDescription
container_path *string

tagmanager_list_tags

Tags of a workspace ("accounts/1/containers/2/workspaces/3").

ParameterTypeDescription
workspace_path *string

tagmanager_list_triggers

Triggers of a workspace ("accounts/1/containers/2/workspaces/3").

ParameterTypeDescription
workspace_path *string

tagmanager_list_variables

Variables of a workspace ("accounts/1/containers/2/workspaces/3").

ParameterTypeDescription
workspace_path *string

tagmanager_list_versions

Version headers of a container ("accounts/123/containers/456").

ParameterTypeDescription
container_path *string