clovyr-workspace-mcp

v1.8.2.post1
clovyr-workspace-mcp Checked 2 days ago Published 10 months ago

Comprehensive, highly performant Google Workspace Streamable HTTP & SSE MCP Server for Calendar, Gmail, Docs, Sheets, Slides & Drive

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

start_google_auth Start Google Auth

Manually initiate Google OAuth authentication flow. NOTE: This is a legacy OAuth 2.0 tool and is disabled when OAuth 2.1 is enabled. The authentication system automatically handles credential checks and prompts for authentication when needed. Only use this tool if: 1. You need to re-authenticate with different credentials 2. You want to proactively authenticate before using other tools 3. The automatic authentication flow failed and you need to retry In most cases, simply try calling the Google Workspace tool you need - it will automatically handle authentication if required.

ParameterTypeDescription
service_name *string
user_google_emailstring

search_gmail_messages Search Gmail Messages

Searches messages in a user's Gmail account based on a query. Returns both Message IDs and Thread IDs for each found message, along with Gmail web interface links for manual verification. Supports pagination via page_token parameter.

ParameterTypeDescription
query *stringThe search query. Supports standard Gmail search operators.
user_google_email *stringThe user's Google email address. Required.
page_sizeintegerThe maximum number of messages to return. Defaults to 10.
page_tokenToken for retrieving the next page of results. Use the next_page_token from a previous response.

get_gmail_message_content Get Gmail Message Content

Retrieves the full content (subject, sender, recipients, plain text body) of a specific Gmail message.

ParameterTypeDescription
message_id *stringThe unique ID of the Gmail message to retrieve.
user_google_email *stringThe user's Google email address. Required.

get_gmail_messages_content_batch Get Gmail Messages Content Batch

Retrieves the content of multiple Gmail messages in a single batch request. Supports up to 25 messages per batch to prevent SSL connection exhaustion.

ParameterTypeDescription
message_ids *arrayList of Gmail message IDs to retrieve (max 25 per batch).
user_google_email *stringThe user's Google email address. Required.
formatstringMessage format. "full" includes body, "metadata" only headers.

get_gmail_attachment_content Get Gmail Attachment Content

Downloads the content of a specific email attachment.

ParameterTypeDescription
attachment_id *stringThe ID of the attachment to download.
message_id *stringThe ID of the Gmail message containing the attachment.
user_google_email *stringThe user's Google email address. Required.

send_gmail_message Send Gmail Message

Sends an email using the user's Gmail account. Supports both new emails and replies with optional attachments. Supports Gmail's "Send As" feature to send from configured alias addresses.

ParameterTypeDescription
body *stringEmail body content (plain text or HTML).
subject *stringEmail subject.
to *stringRecipient email address.
user_google_email *stringThe user's Google email address. Required for authentication.
attachmentsOptional list of attachments. Each can have: "path" (file path, auto-encodes), OR "content" (standard base64, not urlsafe) + "filename". Optional "mime_type". Example: [{"path": "/path/to/file.pdf"}]…
bccOptional BCC email address.
body_formatstringEmail body format. Use 'plain' for plaintext or 'html' for HTML content.
ccOptional CC email address.
from_emailOptional 'Send As' alias email address. Must be configured in Gmail settings (Settings > Accounts > Send mail as). If not provided, uses the authenticated user's email.
in_reply_toOptional Message-ID of the message being replied to.
referencesOptional chain of Message-IDs for proper threading.
thread_idOptional Gmail thread ID to reply within.

draft_gmail_message Draft Gmail Message

Creates a draft email in the user's Gmail account. Supports both new drafts and reply drafts with optional attachments. Supports Gmail's "Send As" feature to draft from configured alias addresses.

ParameterTypeDescription
body *stringEmail body (plain text).
subject *stringEmail subject.
user_google_email *stringThe user's Google email address. Required for authentication.
attachmentsOptional list of attachments. Each can have: 'path' (file path, auto-encodes), OR 'content' (standard base64, not urlsafe) + 'filename'. Optional 'mime_type' (auto-detected from path if not provided).
bccOptional BCC email address.
body_formatstringEmail body format. Use 'plain' for plaintext or 'html' for HTML content.
ccOptional CC email address.
from_emailOptional 'Send As' alias email address. Must be configured in Gmail settings (Settings > Accounts > Send mail as). If not provided, uses the authenticated user's email.
in_reply_toOptional Message-ID of the message being replied to.
referencesOptional chain of Message-IDs for proper threading.
thread_idOptional Gmail thread ID to reply within.
toOptional recipient email address.

get_gmail_thread_content Get Gmail Thread Content

Retrieves the complete content of a Gmail conversation thread, including all messages.

ParameterTypeDescription
thread_id *stringThe unique ID of the Gmail thread to retrieve.
user_google_email *stringThe user's Google email address. Required.

get_gmail_threads_content_batch Get Gmail Threads Content Batch

Retrieves the content of multiple Gmail threads in a single batch request. Supports up to 25 threads per batch to prevent SSL connection exhaustion.

ParameterTypeDescription
thread_ids *arrayA list of Gmail thread IDs to retrieve. The function will automatically batch requests in chunks of 25.
user_google_email *stringThe user's Google email address. Required.

list_gmail_labels List Gmail Labels

Lists all labels in the user's Gmail account.

ParameterTypeDescription
user_google_email *stringThe user's Google email address. Required.

manage_gmail_label Manage Gmail Label

Manages Gmail labels: create, update, or delete labels.

ParameterTypeDescription
action *stringAction to perform on the label.
user_google_email *stringThe user's Google email address. Required.
label_idLabel ID. Required for update and delete operations.
label_list_visibilitystringWhether the label is shown in the label list.
message_list_visibilitystringWhether the label is shown in the message list.
nameLabel name. Required for create, optional for update.

list_gmail_filters List Gmail Filters

Lists all Gmail filters configured in the user's mailbox.

ParameterTypeDescription
user_google_email *stringThe user's Google email address. Required.

create_gmail_filter Create Gmail Filter

Creates a Gmail filter using the users.settings.filters API.

ParameterTypeDescription
action *objectFilter action object as defined in the Gmail API.
criteria *objectFilter criteria object as defined in the Gmail API.
user_google_email *stringThe user's Google email address. Required.

delete_gmail_filter Delete Gmail Filter

Deletes a Gmail filter by ID.

ParameterTypeDescription
filter_id *stringID of the filter to delete.
user_google_email *stringThe user's Google email address. Required.

modify_gmail_message_labels Modify Gmail Message Labels

Adds or removes labels from a Gmail message. To archive an email, remove the INBOX label. To delete an email, add the TRASH label.

ParameterTypeDescription
message_id *stringThe ID of the message to modify.
user_google_email *stringThe user's Google email address. Required.
add_label_idsarrayLabel IDs to add to the message.
remove_label_idsarrayLabel IDs to remove from the message.

batch_modify_gmail_message_labels Batch Modify Gmail Message Labels

Adds or removes labels from multiple Gmail messages in a single batch request.

ParameterTypeDescription
message_ids *arrayA list of message IDs to modify.
user_google_email *stringThe user's Google email address. Required.
add_label_idsarrayLabel IDs to add to messages.
remove_label_idsarrayLabel IDs to remove from messages.

search_drive_files Search Drive Files

Searches for files and folders within a user's Google Drive, including shared drives.

ParameterTypeDescription
query *stringThe search query string. Supports Google Drive search operators.
user_google_email *stringThe user's Google email address. Required.
corporaBodies of items to query (e.g., 'user', 'domain', 'drive', 'allDrives'). If 'drive_id' is specified and 'corpora' is None, it defaults to 'drive'. Otherwise,…
drive_idID of the shared drive to search. If None, behavior depends on `corpora` and `include_items_from_all_drives`.
include_items_from_all_drivesbooleanWhether shared drive items should be included in results. Defaults to True. This is effective when not specifying a `drive_id`.
page_sizeintegerThe maximum number of files to return. Defaults to 10.

get_drive_file_content Get Drive File Content

Retrieves the content of a specific Google Drive file by ID, supporting files in shared drives. • Native Google Docs, Sheets, Slides → exported as text / CSV. • Office files (.docx, .xlsx, .pptx) → unzipped & parsed with std-lib to extract readable text. • Any other file → downloaded; tries UTF-8 decode, else notes binary.

ParameterTypeDescription
file_id *stringDrive file ID.
user_google_email *stringThe user’s Google email address.

get_drive_file_download_url Get Drive File Download Url

Gets a download URL for a Google Drive file. The file is prepared and made available via HTTP URL. For Google native files (Docs, Sheets, Slides), exports to a useful format: • Google Docs → PDF (default) or DOCX if export_format='docx' • Google Sheets → XLSX (default), PDF if export_format='pdf', or CSV if export_format='csv' • Google Slides → PDF (default) or PPTX if export_format='pptx' For other files, downloads the original file format.

ParameterTypeDescription
file_id *stringThe Google Drive file ID to get a download URL for.
user_google_email *stringThe user's Google email address. Required.
export_formatOptional export format for Google native files. Options: 'pdf', 'docx', 'xlsx', 'csv', 'pptx'. If not specified, uses sensible defaults (PDF for Docs/Slides, XLSX for Sheets).…

list_drive_items List Drive Items

Lists files and folders, supporting shared drives. If `drive_id` is specified, lists items within that shared drive. `folder_id` is then relative to that drive (or use drive_id as folder_id for root). If `drive_id` is not specified, lists items from user's "My Drive" and accessible shared drives (if `include_items_from_all_drives` is True).

ParameterTypeDescription
user_google_email *stringThe user's Google email address. Required.
corporaCorpus to query ('user', 'drive', 'allDrives'). If `drive_id` is set and `corpora` is None, 'drive' is used. If None and no `drive_id`, API defaults apply.
drive_idID of the shared drive. If provided, the listing is scoped to this drive.
folder_idstringThe ID of the Google Drive folder. Defaults to 'root'. For a shared drive, this can be the shared drive's ID to list its root, or a folder ID within that shared drive.
include_items_from_all_drivesbooleanWhether items from all accessible shared drives should be included if `drive_id` is not set. Defaults to True.
page_sizeintegerThe maximum number of items to return. Defaults to 100.

create_drive_file Create Drive File

Creates a new file in Google Drive, supporting creation within shared drives. Accepts either direct content or a fileUrl to fetch the content from.

ParameterTypeDescription
file_name *stringThe name for the new file.
user_google_email *stringThe user's Google email address. Required.
contentIf provided, the content to write to the file.
fileUrlIf provided, fetches the file content from this URL. Supports file://, http://, and https:// protocols.
folder_idstringThe ID of the parent folder. Defaults to 'root'. For shared drives, this must be a folder ID within the shared drive.
mime_typestringThe MIME type of the file. Defaults to 'text/plain'.

get_drive_file_permissions Get Drive File Permissions

Gets detailed metadata about a Google Drive file including sharing permissions.

ParameterTypeDescription
file_id *stringThe ID of the file to check permissions for.
user_google_email *stringThe user's Google email address. Required.

check_drive_file_public_access Check Drive File Public Access

Searches for a file by name and checks if it has public link sharing enabled.

ParameterTypeDescription
file_name *stringThe name of the file to check.
user_google_email *stringThe user's Google email address. Required.

update_drive_file Update Drive File

Updates metadata and properties of a Google Drive file.

ParameterTypeDescription
file_id *stringThe ID of the file to update. Required.
user_google_email *stringThe user's Google email address. Required.
add_parentsComma-separated folder IDs to add as parents.
copy_requires_writer_permissionWhether copying requires writer permission.
descriptionNew description for the file.
mime_typeNew MIME type (note: changing type may require content upload).
nameNew name for the file.
propertiesCustom key-value properties for the file.
remove_parentsComma-separated folder IDs to remove from parents.
starredWhether to star/unstar the file.
trashedWhether to move file to/from trash.
writers_can_shareWhether editors can share the file.

share_drive_file Share Drive File

Shares a Google Drive file or folder with a user, group, domain, or anyone with the link. When sharing a folder, all files inside inherit the permission.

ParameterTypeDescription
file_id *stringThe ID of the file or folder to share. Required.
user_google_email *stringThe user's Google email address. Required.
allow_file_discoveryFor 'domain' or 'anyone' shares - whether the file can be found via search. Defaults to None (API default).
email_messageCustom message for the notification email.
expiration_timeExpiration time in RFC 3339 format (e.g., "2025-01-15T00:00:00Z"). Permission auto-revokes after this time.
rolestringPermission role - 'reader', 'commenter', or 'writer'. Defaults to 'reader'.
send_notificationbooleanWhether to send a notification email. Defaults to True.
share_typestringType of sharing - 'user', 'group', 'domain', or 'anyone'. Defaults to 'user'.
share_withEmail address (for user/group), domain name (for domain), or omit for 'anyone'.

batch_share_drive_file Batch Share Drive File

Shares a Google Drive file or folder with multiple users or groups in a single operation. Each recipient can have a different role and optional expiration time. Note: Each recipient is processed sequentially. For very large recipient lists, consider splitting into multiple calls.

ParameterTypeDescription
file_id *stringThe ID of the file or folder to share. Required.
recipients *arrayList of recipient objects. Each should have: - email (str): Recipient email address. Required for 'user' or 'group' share_type. - role (str): Permission role - 'reader', 'commenter', or 'writer'. Defa…
user_google_email *stringThe user's Google email address. Required.
email_messageCustom message for notification emails.
send_notificationbooleanWhether to send notification emails. Defaults to True.

update_drive_permission Update Drive Permission

Updates an existing permission on a Google Drive file or folder.

ParameterTypeDescription
file_id *stringThe ID of the file or folder. Required.
permission_id *stringThe ID of the permission to update (from get_drive_file_permissions). Required.
user_google_email *stringThe user's Google email address. Required.
expiration_timeExpiration time in RFC 3339 format (e.g., "2025-01-15T00:00:00Z"). Set or update when permission expires.
roleNew role - 'reader', 'commenter', or 'writer'. If not provided, role unchanged.

remove_drive_permission Remove Drive Permission

Removes a permission from a Google Drive file or folder, revoking access.

ParameterTypeDescription
file_id *stringThe ID of the file or folder. Required.
permission_id *stringThe ID of the permission to remove (from get_drive_file_permissions). Required.
user_google_email *stringThe user's Google email address. Required.

copy_drive_file Copy Drive File

Creates a copy of an existing Google Drive file. This tool copies the template document to a new location with an optional new name. The copy maintains all formatting and content from the original file.

ParameterTypeDescription
file_id *stringThe ID of the file to copy. Required.
user_google_email *stringThe user's Google email address. Required.
new_nameNew name for the copied file. If not provided, uses "Copy of [original name]".
parent_folder_idstringThe ID of the folder where the copy should be created. Defaults to 'root' (My Drive).

transfer_drive_ownership Transfer Drive Ownership

Transfers ownership of a Google Drive file or folder to another user. This is an irreversible operation. The current owner will become an editor. Only works within the same Google Workspace domain or for personal accounts.

ParameterTypeDescription
file_id *stringThe ID of the file or folder to transfer. Required.
new_owner_email *stringEmail address of the new owner. Required.
user_google_email *stringThe user's Google email address. Required.
move_to_new_owners_rootbooleanIf True, moves the file to the new owner's My Drive root. Defaults to False.

list_calendars List Calendars

Retrieves a list of calendars accessible to the authenticated user.

ParameterTypeDescription
user_google_email *stringThe user's Google email address. Required.

get_events Get Events

Retrieves events from a specified Google Calendar. Can retrieve a single event by ID or multiple events within a time range. You can also search for events by keyword by supplying the optional "query" param.

ParameterTypeDescription
user_google_email *stringThe user's Google email address. Required.
calendar_idstringThe ID of the calendar to query. Use 'primary' for the user's primary calendar. Defaults to 'primary'. Calendar IDs can be obtained using `list_calendars`.
detailedbooleanWhether to return detailed event information including description, location, attendees, and attendee details (response status, organizer, optional flags). Defaults to False.
event_idThe ID of a specific event to retrieve. If provided, retrieves only this event and ignores time filtering parameters.
include_attachmentsbooleanWhether to include attachment information in detailed event output. When True, shows attachment details (fileId, fileUrl, mimeType, title) for events that have attachments. Only applies when detailed=…
max_resultsintegerThe maximum number of events to return. Defaults to 25. Ignored if event_id is provided.
queryA keyword to search for within event fields (summary, description, location). Ignored if event_id is provided.
time_maxThe end of the time range (exclusive) in RFC3339 format. If omitted, events starting from `time_min` onwards are considered (up to `max_results`). Ignored if event_id is provided.
time_minThe start of the time range (inclusive) in RFC3339 format (e.g., '2024-05-12T10:00:00Z' or '2024-05-12'). If omitted, defaults to the current time. Ignored if event_id is provided.

create_event Create Event

Creates a new event.

ParameterTypeDescription
end_time *stringEnd time (RFC3339, e.g., "2023-10-27T11:00:00-07:00" or "2023-10-28" for all-day).
start_time *stringStart time (RFC3339, e.g., "2023-10-27T10:00:00-07:00" or "2023-10-27" for all-day).
summary *stringEvent title.
user_google_email *stringThe user's Google email address. Required.
add_google_meetbooleanWhether to add a Google Meet video conference to the event. Defaults to False.
attachmentsList of Google Drive file URLs or IDs to attach to the event.
attendeesAttendee email addresses.
calendar_idstringCalendar ID (default: 'primary').
descriptionEvent description.
guests_can_invite_othersWhether attendees other than the organizer can invite others to the event. Defaults to None (uses Google Calendar default of True).
guests_can_modifyWhether attendees other than the organizer can modify the event. Defaults to None (uses Google Calendar default of False).
guests_can_see_other_guestsWhether attendees other than the organizer can see who the event's attendees are. Defaults to None (uses Google Calendar default of True).
locationEvent location.
remindersJSON string or list of reminder objects. Each should have 'method' ("popup" or "email") and 'minutes' (0-40320). Max 5 reminders. Example: '[{"method": "popup", "minutes": 15}]' or [{"method": "popup"…
timezoneTimezone (e.g., "America/New_York").
transparencyEvent transparency for busy/free status. "opaque" shows as Busy (default), "transparent" shows as Available/Free. Defaults to None (uses Google Calendar default).
use_default_remindersbooleanWhether to use calendar's default reminders. If False, uses custom reminders. Defaults to True.
visibilityEvent visibility. "default" uses calendar default, "public" is visible to all, "private" is visible only to attendees, "confidential" is same as private (legacy). Defaults to None (uses Google Calenda…

modify_event Modify Event

Modifies an existing event.

ParameterTypeDescription
event_id *stringThe ID of the event to modify.
user_google_email *stringThe user's Google email address. Required.
add_google_meetWhether to add or remove Google Meet video conference. If True, adds Google Meet; if False, removes it; if None, leaves unchanged.
attendeesAttendees as email strings or objects with metadata. Supports: ["email@example.com"] or [{"email": "email@example.com", "responseStatus": "accepted", "organizer": true, "optional": true}]. When using…
calendar_idstringCalendar ID (default: 'primary').
color_idEvent color ID (1-11). If None, preserves existing color.
descriptionNew event description.
end_timeNew end time (RFC3339, e.g., "2023-10-27T11:00:00-07:00" or "2023-10-28" for all-day).
guests_can_invite_othersWhether attendees other than the organizer can invite others to the event. If None, preserves existing setting.
guests_can_modifyWhether attendees other than the organizer can modify the event. If None, preserves existing setting.
guests_can_see_other_guestsWhether attendees other than the organizer can see who the event's attendees are. If None, preserves existing setting.
locationNew event location.
remindersJSON string or list of reminder objects to replace existing reminders. Each should have 'method' ("popup" or "email") and 'minutes' (0-40320). Max 5 reminders. Example: '[{"method": "popup", "minutes"…
start_timeNew start time (RFC3339, e.g., "2023-10-27T10:00:00-07:00" or "2023-10-27" for all-day).
summaryNew event title.
timezoneNew timezone (e.g., "America/New_York").
transparencyEvent transparency for busy/free status. "opaque" shows as Busy, "transparent" shows as Available/Free. If None, preserves existing transparency setting.
use_default_remindersWhether to use calendar's default reminders. If specified, overrides current reminder settings.
visibilityEvent visibility. "default" uses calendar default, "public" is visible to all, "private" is visible only to attendees, "confidential" is same as private (legacy). If None, preserves existing visibilit…

delete_event Delete Event

Deletes an existing event.

ParameterTypeDescription
event_id *stringThe ID of the event to delete.
user_google_email *stringThe user's Google email address. Required.
calendar_idstringCalendar ID (default: 'primary').

query_freebusy Query Freebusy

Returns free/busy information for a set of calendars.

ParameterTypeDescription
time_max *stringThe end of the interval for the query in RFC3339 format (e.g., '2024-05-12T18:00:00Z' or '2024-05-12').
time_min *stringThe start of the interval for the query in RFC3339 format (e.g., '2024-05-12T10:00:00Z' or '2024-05-12').
user_google_email *stringThe user's Google email address. Required.
calendar_expansion_maxMaximum number of calendars for which FreeBusy information is to be provided. Optional. Maximum value is 50.
calendar_idsList of calendar identifiers to query. If not provided, queries the primary calendar. Use 'primary' for the user's primary calendar or specific calendar IDs obtained from `list_calendars`.
group_expansion_maxMaximum number of calendar identifiers to be provided for a single group. Optional. An error is returned for a group with more members than this value. Maximum value is 100.

search_docs Search Docs

Searches for Google Docs by name using Drive API (mimeType filter).

ParameterTypeDescription
query *string
user_google_email *string
page_sizeinteger

get_doc_content Get Doc Content

Retrieves content of a Google Doc or a Drive file (like .docx) identified by document_id. - Native Google Docs: Fetches content via Docs API. - Office files (.docx, etc.) stored in Drive: Downloads via Drive API and extracts text.

ParameterTypeDescription
document_id *string
user_google_email *string

list_docs_in_folder List Docs In Folder

Lists Google Docs within a specific Drive folder.

ParameterTypeDescription
user_google_email *string
folder_idstring
page_sizeinteger

create_doc Create Doc

Creates a new Google Doc and optionally inserts initial content.

ParameterTypeDescription
title *string
user_google_email *string
contentstring

modify_doc_text Modify Doc Text

Modifies text in a Google Doc - can insert/replace text and/or apply formatting in a single operation.

ParameterTypeDescription
document_id *stringID of the document to update
start_index *integerStart position for operation (0-based)
user_google_email *stringUser's Google email address
background_colorstringBackground/highlight color (#RRGGBB)
boldbooleanWhether to make text bold (True/False/None to leave unchanged)
end_indexintegerEnd position for text replacement/formatting (if not provided with text, text is inserted)
font_familystringFont family name (e.g., "Arial", "Times New Roman")
font_sizeintegerFont size in points
italicbooleanWhether to make text italic (True/False/None to leave unchanged)
textstringNew text to insert or replace with (optional - can format existing text without changing it)
text_colorstringForeground text color (#RRGGBB)
underlinebooleanWhether to underline text (True/False/None to leave unchanged)

find_and_replace_doc Find And Replace Doc

Finds and replaces text throughout a Google Doc.

ParameterTypeDescription
document_id *stringID of the document to update
find_text *stringText to search for
replace_text *stringText to replace with
user_google_email *stringUser's Google email address
match_casebooleanWhether to match case exactly

insert_doc_elements Insert Doc Elements

Inserts structural elements like tables, lists, or page breaks into a Google Doc.

ParameterTypeDescription
document_id *stringID of the document to update
element_type *stringType of element to insert ("table", "list", "page_break")
index *integerPosition to insert element (0-based)
user_google_email *stringUser's Google email address
columnsintegerNumber of columns for table (required for table)
list_typestringType of list ("UNORDERED", "ORDERED") (required for list)
rowsintegerNumber of rows for table (required for table)
textstringInitial text content for list items

insert_doc_image Insert Doc Image

Inserts an image into a Google Doc from Drive or a URL.

ParameterTypeDescription
document_id *stringID of the document to update
image_source *stringDrive file ID or public image URL
index *integerPosition to insert image (0-based)
user_google_email *stringUser's Google email address
heightintegerImage height in points (optional)
widthintegerImage width in points (optional)

update_doc_headers_footers Update Doc Headers Footers

Updates headers or footers in a Google Doc.

ParameterTypeDescription
content *stringText content for the header/footer
document_id *stringID of the document to update
section_type *stringType of section to update ("header" or "footer")
user_google_email *stringUser's Google email address
header_footer_typestringType of header/footer ("DEFAULT", "FIRST_PAGE_ONLY", "EVEN_PAGE")

batch_update_doc Batch Update Doc

Executes multiple document operations in a single atomic batch update.

ParameterTypeDescription
document_id *stringID of the document to update
operations *arrayList of operation dictionaries. Each operation should contain: - type: Operation type ('insert_text', 'delete_text', 'replace_text', 'format_text', 'insert_table', 'insert_page_break') -…
user_google_email *stringUser's Google email address

inspect_doc_structure Inspect Doc Structure

Essential tool for finding safe insertion points and understanding document structure. USE THIS FOR: - Finding the correct index for table insertion - Understanding document layout before making changes - Locating existing tables and their positions - Getting document statistics and complexity info CRITICAL FOR TABLE OPERATIONS: ALWAYS call this BEFORE creating tables to get a safe insertion index. WHAT THE OUTPUT SHOWS: - total_elements: Number of document elements - total_length: Maximum safe index for insertion - tables: Number of existing tables - table_details: Position and dimensions…

ParameterTypeDescription
document_id *stringID of the document to inspect
user_google_email *stringUser's Google email address
detailedbooleanWhether to return detailed structure information

create_table_with_data Create Table With Data

Creates a table and populates it with data in one reliable operation. CRITICAL: YOU MUST CALL inspect_doc_structure FIRST TO GET THE INDEX! MANDATORY WORKFLOW - DO THESE STEPS IN ORDER: Step 1: ALWAYS call inspect_doc_structure first Step 2: Use the 'total_length' value from inspect_doc_structure as your index Step 3: Format data as 2D list: [["col1", "col2"], ["row1col1", "row1col2"]] Step 4: Call this function with the correct index and data EXAMPLE DATA FORMAT: table_data = [ ["Header1", "Header2", "Header3"], # Row 0 - headers ["Data1", "Data2", "Data3"], # Row 1 -…

ParameterTypeDescription
document_id *stringID of the document to update
index *integerDocument position (MANDATORY: get from inspect_doc_structure 'total_length')
table_data *array2D list of strings - EXACT format: [["col1", "col2"], ["row1col1", "row1col2"]]
user_google_email *stringUser's Google email address
bold_headersbooleanWhether to make first row bold (default: true)

debug_table_structure Debug Table Structure

ESSENTIAL DEBUGGING TOOL - Use this whenever tables don't work as expected. USE THIS IMMEDIATELY WHEN: - Table population put data in wrong cells - You get "table not found" errors - Data appears concatenated in first cell - Need to understand existing table structure - Planning to use populate_existing_table WHAT THIS SHOWS YOU: - Exact table dimensions (rows × columns) - Each cell's position coordinates (row,col) - Current content in each cell - Insertion indices for each cell - Table boundaries and ranges HOW TO READ THE OUTPUT: - "dimensions": "2x3" = 2 rows, 3 columns - "position": "(…

ParameterTypeDescription
document_id *stringID of the document to inspect
user_google_email *stringUser's Google email address
table_indexintegerWhich table to debug (0 = first table, 1 = second table, etc.)

export_doc_to_pdf Export Doc To Pdf

Exports a Google Doc to PDF format and saves it to Google Drive.

ParameterTypeDescription
document_id *stringID of the Google Doc to export
user_google_email *stringUser's Google email address
folder_idstringDrive folder ID to save PDF in (optional - if not provided, saves in root)
pdf_filenamestringName for the PDF file (optional - if not provided, uses original name + "_PDF")

read_document_comments Read Document Comments

Read all comments from a Google Document.

ParameterTypeDescription
document_id *string
user_google_email *string

create_document_comment Create Document Comment

Create a new comment on a Google Document.

ParameterTypeDescription
comment_content *string
document_id *string
user_google_email *string

reply_to_document_comment Reply To Document Comment

Reply to a specific comment in a Google Document.

ParameterTypeDescription
comment_id *string
document_id *string
reply_content *string
user_google_email *string

resolve_document_comment Resolve Document Comment

Resolve a comment in a Google Document.

ParameterTypeDescription
comment_id *string
document_id *string
user_google_email *string

list_spreadsheets List Spreadsheets

Lists spreadsheets from Google Drive that the user has access to.

ParameterTypeDescription
user_google_email *stringThe user's Google email address. Required.
max_resultsintegerMaximum number of spreadsheets to return. Defaults to 25.

get_spreadsheet_info Get Spreadsheet Info

Gets information about a specific spreadsheet including its sheets.

ParameterTypeDescription
spreadsheet_id *stringThe ID of the spreadsheet to get info for. Required.
user_google_email *stringThe user's Google email address. Required.

read_sheet_values Read Sheet Values

Reads values from a specific range in a Google Sheet.

ParameterTypeDescription
spreadsheet_id *stringThe ID of the spreadsheet. Required.
user_google_email *stringThe user's Google email address. Required.
range_namestringThe range to read (e.g., "Sheet1!A1:D10", "A1:D10"). Defaults to "A1:Z1000".

modify_sheet_values Modify Sheet Values

Modifies values in a specific range of a Google Sheet - can write, update, or clear values.

ParameterTypeDescription
range_name *stringThe range to modify (e.g., "Sheet1!A1:D10", "A1:D10"). Required.
spreadsheet_id *stringThe ID of the spreadsheet. Required.
user_google_email *stringThe user's Google email address. Required.
clear_valuesbooleanIf True, clears the range instead of writing values. Defaults to False.
value_input_optionstringHow to interpret input values ("RAW" or "USER_ENTERED"). Defaults to "USER_ENTERED".
values2D array of values to write/update. Can be a JSON string or Python list. Required unless clear_values=True.

format_sheet_range Format Sheet Range

Applies formatting to a range: background/text color and number/date formats. Colors accept hex strings (#RRGGBB). Number formats follow Sheets types (e.g., NUMBER, NUMBER_WITH_GROUPING, CURRENCY, DATE, TIME, DATE_TIME, PERCENT, TEXT, SCIENTIFIC). If no sheet name is provided, the first sheet is used.

ParameterTypeDescription
range_name *stringA1-style range (optionally with sheet name). Required.
spreadsheet_id *stringThe ID of the spreadsheet. Required.
user_google_email *stringThe user's Google email address. Required.
background_colorHex background color (e.g., "#FFEECC").
number_format_patternOptional custom pattern for the number format.
number_format_typeSheets number format type (e.g., "DATE").
text_colorHex text color (e.g., "#000000").

add_conditional_formatting Add Conditional Formatting

Adds a conditional formatting rule to a range.

ParameterTypeDescription
condition_type *stringSheets condition type (e.g., NUMBER_GREATER, TEXT_CONTAINS, DATE_BEFORE, CUSTOM_FORMULA).
range_name *stringA1-style range (optionally with sheet name). Required.
spreadsheet_id *stringThe ID of the spreadsheet. Required.
user_google_email *stringThe user's Google email address. Required.
background_colorHex background color to apply when condition matches.
condition_valuesValues for the condition; accepts a list or a JSON string representing a list. Depends on condition_type.
gradient_pointsList (or JSON list) of gradient points for a color scale. If provided, a gradient rule is created and boolean parameters are ignored.
rule_indexOptional position to insert the rule (0-based) within the sheet's rules.
text_colorHex text color to apply when condition matches.

update_conditional_formatting Update Conditional Formatting

Updates an existing conditional formatting rule by index on a sheet.

ParameterTypeDescription
rule_index *integerIndex of the rule to update (0-based).
spreadsheet_id *stringThe ID of the spreadsheet. Required.
user_google_email *stringThe user's Google email address. Required.
background_colorHex background color when condition matches.
condition_typeSheets condition type. If omitted, the existing rule's type is preserved.
condition_valuesValues for the condition.
gradient_pointsIf provided, updates the rule to a gradient color scale using these points.
range_nameA1-style range to apply the updated rule (optionally with sheet name). If omitted, existing ranges are preserved.
sheet_nameSheet name to locate the rule when range_name is omitted. Defaults to first sheet.
text_colorHex text color when condition matches.

delete_conditional_formatting Delete Conditional Formatting

Deletes an existing conditional formatting rule by index on a sheet.

ParameterTypeDescription
rule_index *integerIndex of the rule to delete (0-based).
spreadsheet_id *stringThe ID of the spreadsheet. Required.
user_google_email *stringThe user's Google email address. Required.
sheet_nameName of the sheet that contains the rule. Defaults to the first sheet if not provided.

create_spreadsheet Create Spreadsheet

Creates a new Google Spreadsheet.

ParameterTypeDescription
title *stringThe title of the new spreadsheet. Required.
user_google_email *stringThe user's Google email address. Required.
sheet_namesList of sheet names to create. If not provided, creates one sheet with default name.

create_sheet Create Sheet

Creates a new sheet within an existing spreadsheet.

ParameterTypeDescription
sheet_name *stringThe name of the new sheet. Required.
spreadsheet_id *stringThe ID of the spreadsheet. Required.
user_google_email *stringThe user's Google email address. Required.

read_spreadsheet_comments Read Spreadsheet Comments

Read all comments from a Google Spreadsheet.

ParameterTypeDescription
spreadsheet_id *string
user_google_email *string

create_spreadsheet_comment Create Spreadsheet Comment

Create a new comment on a Google Spreadsheet.

ParameterTypeDescription
comment_content *string
spreadsheet_id *string
user_google_email *string

reply_to_spreadsheet_comment Reply To Spreadsheet Comment

Reply to a specific comment in a Google Spreadsheet.

ParameterTypeDescription
comment_id *string
reply_content *string
spreadsheet_id *string
user_google_email *string

resolve_spreadsheet_comment Resolve Spreadsheet Comment

Resolve a comment in a Google Spreadsheet.

ParameterTypeDescription
comment_id *string
spreadsheet_id *string
user_google_email *string

list_spaces List Spaces

Lists Google Chat spaces (rooms and direct messages) accessible to the user.

ParameterTypeDescription
user_google_email *string
page_sizeinteger
space_typestring

get_messages Get Messages

Retrieves messages from a Google Chat space.

ParameterTypeDescription
space_id *string
user_google_email *string
order_bystring
page_sizeinteger

send_message Send Message

Sends a message to a Google Chat space.

ParameterTypeDescription
message_text *string
space_id *string
user_google_email *string
thread_key

search_messages Search Messages

Searches for messages in Google Chat spaces by text content.

ParameterTypeDescription
query *string
user_google_email *string
page_sizeinteger
space_id

create_form Create Form

Create a new form using the title given in the provided form message in the request.

ParameterTypeDescription
title *stringThe title of the form.
user_google_email *stringThe user's Google email address. Required.
descriptionThe description of the form.
document_titleThe document title (shown in browser tab).

get_form Get Form

Get a form.

ParameterTypeDescription
form_id *stringThe ID of the form to retrieve.
user_google_email *stringThe user's Google email address. Required.

set_publish_settings Set Publish Settings

Updates the publish settings of a form.

ParameterTypeDescription
form_id *stringThe ID of the form to update publish settings for.
user_google_email *stringThe user's Google email address. Required.
publish_as_templatebooleanWhether to publish as a template. Defaults to False.
require_authenticationbooleanWhether to require authentication to view/submit. Defaults to False.

get_form_response Get Form Response

Get one response from the form.

ParameterTypeDescription
form_id *stringThe ID of the form.
response_id *stringThe ID of the response to retrieve.
user_google_email *stringThe user's Google email address. Required.

list_form_responses List Form Responses

List a form's responses.

ParameterTypeDescription
form_id *stringThe ID of the form.
user_google_email *stringThe user's Google email address. Required.
page_sizeintegerMaximum number of responses to return. Defaults to 10.
page_tokenToken for retrieving next page of results.

batch_update_form Batch Update Form

Apply batch updates to a Google Form. Supports adding, updating, and deleting form items, as well as updating form metadata and settings. This is the primary method for modifying form content after creation.

ParameterTypeDescription
form_id *stringThe ID of the form to update.
requests *arrayList of update requests to apply. Supported request types: - createItem: Add a new question or content item - updateItem: Modify an existing item - deleteItem: Remove an item - moveItem: Reorder an it…
user_google_email *stringThe user's Google email address. Required.

create_presentation Create Presentation

Create a new Google Slides presentation.

ParameterTypeDescription
user_google_email *stringThe user's Google email address. Required.
titlestringThe title for the new presentation. Defaults to "Untitled Presentation".

get_presentation Get Presentation

Get details about a Google Slides presentation.

ParameterTypeDescription
presentation_id *stringThe ID of the presentation to retrieve.
user_google_email *stringThe user's Google email address. Required.

batch_update_presentation Batch Update Presentation

Apply batch updates to a Google Slides presentation.

ParameterTypeDescription
presentation_id *stringThe ID of the presentation to update.
requests *arrayList of update requests to apply.
user_google_email *stringThe user's Google email address. Required.

get_page Get Page

Get details about a specific page (slide) in a presentation.

ParameterTypeDescription
page_object_id *stringThe object ID of the page/slide to retrieve.
presentation_id *stringThe ID of the presentation.
user_google_email *stringThe user's Google email address. Required.

get_page_thumbnail Get Page Thumbnail

Generate a thumbnail URL for a specific page (slide) in a presentation.

ParameterTypeDescription
page_object_id *stringThe object ID of the page/slide.
presentation_id *stringThe ID of the presentation.
user_google_email *stringThe user's Google email address. Required.
thumbnail_sizestringSize of thumbnail ("LARGE", "MEDIUM", "SMALL"). Defaults to "MEDIUM".

read_presentation_comments Read Presentation Comments

Read all comments from a Google Presentation.

ParameterTypeDescription
presentation_id *string
user_google_email *string

create_presentation_comment Create Presentation Comment

Create a new comment on a Google Presentation.

ParameterTypeDescription
comment_content *string
presentation_id *string
user_google_email *string

reply_to_presentation_comment Reply To Presentation Comment

Reply to a specific comment in a Google Presentation.

ParameterTypeDescription
comment_id *string
presentation_id *string
reply_content *string
user_google_email *string

resolve_presentation_comment Resolve Presentation Comment

Resolve a comment in a Google Presentation.

ParameterTypeDescription
comment_id *string
presentation_id *string
user_google_email *string

list_task_lists List Task Lists

List all task lists for the user.

ParameterTypeDescription
user_google_email *stringThe user's Google email address. Required.
max_resultsintegerMaximum number of task lists to return (default: 1000, max: 1000).
page_tokenToken for pagination.

get_task_list Get Task List

Get details of a specific task list.

ParameterTypeDescription
task_list_id *stringThe ID of the task list to retrieve.
user_google_email *stringThe user's Google email address. Required.

create_task_list Create Task List

Create a new task list.

ParameterTypeDescription
title *stringThe title of the new task list.
user_google_email *stringThe user's Google email address. Required.

update_task_list Update Task List

Update an existing task list.

ParameterTypeDescription
task_list_id *stringThe ID of the task list to update.
title *stringThe new title for the task list.
user_google_email *stringThe user's Google email address. Required.

delete_task_list Delete Task List

Delete a task list. Note: This will also delete all tasks in the list.

ParameterTypeDescription
task_list_id *stringThe ID of the task list to delete.
user_google_email *stringThe user's Google email address. Required.

list_tasks List Tasks

List all tasks in a specific task list.

ParameterTypeDescription
task_list_id *stringThe ID of the task list to retrieve tasks from.
user_google_email *stringThe user's Google email address. Required.
completed_maxUpper bound for completion date (RFC 3339 timestamp).
completed_minLower bound for completion date (RFC 3339 timestamp).
due_maxUpper bound for due date (RFC 3339 timestamp).
due_minLower bound for due date (RFC 3339 timestamp).
max_resultsintegerMaximum number of tasks to return. (default: 20, max: 10000).
page_tokenToken for pagination.
show_assignedbooleanWhether to include assigned tasks (default: False).
show_completedbooleanWhether to include completed tasks (default: True). Note that show_hidden must also be true to show tasks completed in first party clients, such as the web UI and Google's mobile apps.
show_deletedbooleanWhether to include deleted tasks (default: False).
show_hiddenbooleanWhether to include hidden tasks (default: False).
updated_minLower bound for last modification time (RFC 3339 timestamp).

get_task Get Task

Get details of a specific task.

ParameterTypeDescription
task_id *stringThe ID of the task to retrieve.
task_list_id *stringThe ID of the task list containing the task.
user_google_email *stringThe user's Google email address. Required.

create_task Create Task

Create a new task in a task list.

ParameterTypeDescription
task_list_id *stringThe ID of the task list to create the task in.
title *stringThe title of the task.
user_google_email *stringThe user's Google email address. Required.
dueDue date in RFC 3339 format (e.g., "2024-12-31T23:59:59Z").
notesNotes/description for the task.
parentParent task ID (for subtasks).
previousPrevious sibling task ID (for positioning).

update_task Update Task

Update an existing task.

ParameterTypeDescription
task_id *stringThe ID of the task to update.
task_list_id *stringThe ID of the task list containing the task.
user_google_email *stringThe user's Google email address. Required.
dueNew due date in RFC 3339 format.
notesNew notes/description for the task.
statusNew status ("needsAction" or "completed").
titleNew title for the task.

delete_task Delete Task

Delete a task from a task list.

ParameterTypeDescription
task_id *stringThe ID of the task to delete.
task_list_id *stringThe ID of the task list containing the task.
user_google_email *stringThe user's Google email address. Required.

move_task Move Task

Move a task to a different position or parent within the same list, or to a different list.

ParameterTypeDescription
task_id *stringThe ID of the task to move.
task_list_id *stringThe ID of the current task list containing the task.
user_google_email *stringThe user's Google email address. Required.
destination_task_listDestination task list ID (for moving between lists).
parentNew parent task ID (for making it a subtask).
previousPrevious sibling task ID (for positioning).

clear_completed_tasks Clear Completed Tasks

Clear all completed tasks from a task list. The tasks will be marked as hidden.

ParameterTypeDescription
task_list_id *stringThe ID of the task list to clear completed tasks from.
user_google_email *stringThe user's Google email address. Required.

search_custom Search Custom

Performs a search using Google Custom Search JSON API.

ParameterTypeDescription
q *stringThe search query. Required.
user_google_email *stringThe user's Google email address. Required.
countryCountry code for results (e.g., "countryUS").
date_restrictRestrict results by date (e.g., "d5" for past 5 days, "m3" for past 3 months).
file_typeFilter by file type (e.g., "pdf", "doc").
languageLanguage code for results (e.g., "lang_en").
numintegerNumber of results to return (1-10). Defaults to 10.
safestringSafe search level. Defaults to "off".
search_typeSearch for images if set to "image".
site_searchRestrict search to a specific site/domain.
site_search_filterExclude ("e") or include ("i") site_search results.
startintegerThe index of the first result to return (1-based). Defaults to 1.

get_search_engine_info Get Search Engine Info

Retrieves metadata about a Programmable Search Engine.

ParameterTypeDescription
user_google_email *stringThe user's Google email address. Required.

search_custom_siterestrict Search Custom Siterestrict

Performs a search restricted to specific sites using Google Custom Search.

ParameterTypeDescription
q *stringThe search query. Required.
sites *arrayList of sites/domains to search within.
user_google_email *stringThe user's Google email address. Required.
numintegerNumber of results to return (1-10). Defaults to 10.
safestringSafe search level. Defaults to "off".
startintegerThe index of the first result to return (1-based). Defaults to 1.

list_script_projects List Script Projects

Lists Google Apps Script projects accessible to the user. Uses Drive API to find Apps Script files.

ParameterTypeDescription
user_google_email *stringUser's email address
page_sizeintegerNumber of results per page (default: 50)
page_tokenToken for pagination (optional)

get_script_project Get Script Project

Retrieves complete project details including all source files.

ParameterTypeDescription
script_id *stringThe script project ID
user_google_email *stringUser's email address

get_script_content Get Script Content

Retrieves content of a specific file within a project.

ParameterTypeDescription
file_name *stringName of the file to retrieve
script_id *stringThe script project ID
user_google_email *stringUser's email address

create_script_project Create Script Project

Creates a new Apps Script project.

ParameterTypeDescription
title *stringProject title
user_google_email *stringUser's email address
parent_idOptional Drive folder ID or bound container ID

update_script_content Update Script Content

Updates or creates files in a script project.

ParameterTypeDescription
files *arrayList of file objects with name, type, and source
script_id *stringThe script project ID
user_google_email *stringUser's email address

run_script_function Run Script Function

Executes a function in a deployed script.

ParameterTypeDescription
function_name *stringName of function to execute
script_id *stringThe script project ID
user_google_email *stringUser's email address
dev_modebooleanWhether to run latest code vs deployed version
parametersOptional list of parameters to pass

create_deployment Create Deployment

Creates a new deployment of the script.

ParameterTypeDescription
description *stringDeployment description
script_id *stringThe script project ID
user_google_email *stringUser's email address
version_descriptionOptional version description

list_deployments List Deployments

Lists all deployments for a script project.

ParameterTypeDescription
script_id *stringThe script project ID
user_google_email *stringUser's email address

update_deployment Update Deployment

Updates an existing deployment configuration.

ParameterTypeDescription
deployment_id *stringThe deployment ID to update
script_id *stringThe script project ID
user_google_email *stringUser's email address
descriptionOptional new description

delete_deployment Delete Deployment

Deletes a deployment.

ParameterTypeDescription
deployment_id *stringThe deployment ID to delete
script_id *stringThe script project ID
user_google_email *stringUser's email address

list_script_processes List Script Processes

Lists recent execution processes for user's scripts.

ParameterTypeDescription
user_google_email *stringUser's email address
page_sizeintegerNumber of results (default: 50)
script_idOptional filter by script ID

delete_script_project Delete Script Project

Deletes an Apps Script project. This permanently deletes the script project. The action cannot be undone.

ParameterTypeDescription
script_id *stringThe script project ID to delete
user_google_email *stringUser's email address

list_versions List Versions

Lists all versions of a script project. Versions are immutable snapshots of your script code. They are created when you deploy or explicitly create a version.

ParameterTypeDescription
script_id *stringThe script project ID
user_google_email *stringUser's email address

create_version Create Version

Creates a new immutable version of a script project. Versions capture a snapshot of the current script code. Once created, versions cannot be modified.

ParameterTypeDescription
script_id *stringThe script project ID
user_google_email *stringUser's email address
descriptionOptional description for this version

get_version Get Version

Gets details of a specific version.

ParameterTypeDescription
script_id *stringThe script project ID
user_google_email *stringUser's email address
version_number *integerThe version number to retrieve (1, 2, 3, etc.)

get_script_metrics Get Script Metrics

Gets execution metrics for a script project. Returns analytics data including active users, total executions, and failed executions over time.

ParameterTypeDescription
script_id *stringThe script project ID
user_google_email *stringUser's email address
metrics_granularitystringGranularity of metrics - "DAILY" or "WEEKLY"

generate_trigger_code Generate Trigger Code

Generates Apps Script code for creating triggers. The Apps Script API cannot create triggers directly - they must be created from within Apps Script itself. This tool generates the code you need.

ParameterTypeDescription
function_name *stringThe function to run when trigger fires (e.g., "sendDailyReport")
trigger_type *stringType of trigger. One of: - "time_minutes" (run every N minutes: 1, 5, 10, 15, 30) - "time_hours" (run every N hours: 1, 2, 4, 6, 8, 12) - "time_daily" (run daily at a spe…
schedulestringSchedule details (depends on trigger_type): - For time_minutes: "1", "5", "10", "15", or "30" - For time_hours: "1", "2", "4", "6", "8", or "12" - For time_daily: hour as "0"-"23" (e…