About taylorwilsdon/google_workspace_mcp
taylorwilsdon/google_workspace_mcp is an MCP server published by taylorwilsdon in the Commerce category: control Gmail, Google Calendar, Docs, Sheets, Slides, Chat, Forms, Tasks, Search & Drive with AI - Comprehensive Google Workspace MCP Server & CLI Tool. Conduid read 94 tools from its source: append_table_rows, batch_modify_gmail_message_labels, batch_update_doc, batch_update_form, batch_update_presentation, copy_drive_file and 88 more. It is published to PyPI as workspace-mcp and runs with uvx.
The repository has 3.6K stars and 1.1K forks, is licensed MIT, and its last commit was on 29 Nov 2026. The latest release is v2.5.0 (14 Nov 2026): This release rebuilds how Google Slides decks are read: get_presentation now reads by action and get_page is gone. It follows v2.4.2 (12 Nov 2026), and the 5 most recent releases go back to v2.3.0 (30 Oct 2026). It passes 5 of the 6 static checks Conduid ran on the repository; it does not pass Scoped permissions. Its topics include commerce.
Install
uvx workspace-mcppip install workspace-mcpgit clone https://github.com/taylorwilsdon/google_workspace_mcpTools (94)
append_table_rowsAppends rows to a structured table in a Google Sheet. The rows are added| Parameter | Type | Description |
|---|---|---|
| service * | any | |
| spreadsheet_id * | string | The ID of the spreadsheet. Required. |
| table_id * | string | The ID of the table to append to (get from list_sheet_tables). Required. |
| user_google_email * | string | The user's Google email address. Required. |
| values * | any | 2D array of values to append. Each inner list is one row. Can be a JSON string or Python list. Required. |
batch_modify_gmail_message_labelsAdds or removes labels on many Gmail messages, or on every message of whole| Parameter | Type | Description |
|---|---|---|
| add_label_ids | any | Label IDs to add. |
| message_ids | any | Message IDs to modify. |
| remove_label_ids | any | Label IDs to remove. |
| service * | any | |
| thread_ids | any | Thread (conversation) IDs to modify. |
| user_google_email * | string | The user's Google email address. Required. |
| verify | boolean | Read message_ids back and report per-id outcomes, at the cost of one extra read per id (batched 25 at a time). Set False for very large sweeps where an unverified result is acceptable. Has no effect on thread_ids, which always report per thread. |
batch_update_docExecutes multiple low-level document operations in a single atomic batch update.| Parameter | Type | Description |
|---|---|---|
| document_id * | string | ID of the document to update |
| operations * | any | List of operation dicts. Each operation MUST have a 'type' field. All operations accept an optional 'tab_id' to target a specific tab. |
| service * | any | |
| user_google_email * | string | User's Google email address |
| write_mode | string | "EDIT" (default) applies the batch directly; "SUGGEST" records every operation as a suggested edit that collaborators can accept or reject. The Docs API rejects some operations in SUGGEST mode, such as named range and tab changes. |
batch_update_formApply batch updates to a Google Form.| Parameter | Type | Description |
|---|---|---|
| form_id * | string | The ID of the form to update. |
| requests * | array | List 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 item - updateFormInfo: Update form title/description - updateSettings: Modify form settings (e.g., quiz mode) |
| service * | any | |
| user_google_email * | string | The user's Google email address. Required. |
batch_update_presentationApply batch updates to a Google Slides presentation.| Parameter | Type | Description |
|---|---|---|
| presentation_id * | string | The ID of the presentation to update. |
| requests * | array | List of update requests to apply. |
| service * | any | |
| user_google_email * | string | The user's Google email address. Required. |
copy_drive_fileCreates a copy of an existing Google Drive file.| Parameter | Type | Description |
|---|---|---|
| copy_comments | boolean | Copy open comments and suggestions (Docs/Sheets/Slides only). Defaults to False. |
| file_id * | string | The ID of the file to copy. Required. |
| new_name | string | New name for the copied file. If not provided, uses "Copy of [original name]". |
| parent_folder_id | string | The ID of the folder where the copy should be created. Defaults to 'root' (My Drive). |
| service * | any | |
| user_google_email * | string | The user's Google email address. Required. |
create_docCreates a new Google Doc and optionally inserts initial content.| Parameter | Type | Description |
|---|---|---|
| content | string | Optional initial plain text content to insert |
| folder_id | string | The ID of the parent folder. Defaults to 'root'. For shared drives, this must be a folder ID within the shared drive. |
| service * | any | |
| title * | string | Title of the new document |
| user_google_email * | string | User's Google email address |
create_drive_fileCreates a new file in Google Drive, supporting creation within shared drives.| Parameter | Type | Description |
|---|---|---|
| base64_sha256 | string | Expected SHA-256 of decoded base64_content. Recommended for binary payload integrity checks. |
| content | string | If provided, the content to write to the file. |
| content_mime_type | string | MIME type for base64_content uploads. |
| fileUrl | string | If provided, fetches the file content from this URL. Supports http:// and https://; file:// only where local file access is enabled. Where it is disabled, files on the caller's machine go through an upload URL instead (see the upload-URL parameter, if offered). |
| file_name * | string | The name for the new file. |
| mime_type | string | The MIME type of the file. Defaults to 'text/plain'; required with return_upload_url. |
| return_upload_url | boolean | Return a Google resumable-upload session URL for a new file of mime_type instead of creating it from inline content; the caller PUTs the bytes there directly (no Authorization header). Preferred for large or binary files. Not combinable with other content sources. Offered only where local file access is disabled. |
| service * | any | |
| shortcut_target_id | string | ID of an existing file or folder. Creates a shortcut named file_name in folder_id that points to it, so the item shows up in a second folder without being copied. Not combinable with content sources; mime_type may be omitted. |
| user_google_email * | string | The user's Google email address. Required. |
create_drive_folderCreates a new folder in Google Drive, supporting creation within shared drives.| Parameter | Type | Description |
|---|---|---|
| folder_name * | string | The name for the new folder. |
| parent_folder_id | string | The ID of the parent folder. Defaults to 'root'. For shared drives, use a folder ID within that shared drive. |
| service * | any | |
| user_google_email * | string | The user's Google email address. Required. |
create_formCreate a new form using the title given in the provided form message in the request.| Parameter | Type | Description |
|---|---|---|
| description | string | The description of the form. |
| document_title | string | The document title (shown in browser tab). |
| service * | any | |
| title * | string | The title of the form. |
| user_google_email * | string | The user's Google email address. Required. |
create_presentationCreate a new Google Slides presentation and return its ID and URL.| Parameter | Type | Description |
|---|---|---|
| service * | any | |
| title | string | The title for the new presentation. Defaults to "Untitled Presentation". |
| user_google_email * | string | The user's Google email address. Required. |
create_reactionAdds an emoji reaction to a Google Chat message.| Parameter | Type | Description |
|---|---|---|
| emoji_unicode * | string | The emoji character to react with (e.g. 👍). |
| message_id * | string | The message resource name (e.g. spaces/X/messages/Y). |
| service * | any | |
| user_google_email * | string |
create_sheetCreates a new sheet or duplicates an existing sheet, into destination_spreadsheet_id when given (user_google_email: str, spreadsheet_id: str, sheet_name: Optional[str] = None, source_sheet_name: Optional[str] = None, insert_sheet_index: Optional[int] = None, destination_spreadsheet_id: Optional[str] = None).| Parameter | Type | Description |
|---|---|---|
| destination_spreadsheet_id | string | |
| insert_sheet_index | integer | |
| service * | any | |
| sheet_name | string | |
| source_sheet_name | string | |
| spreadsheet_id * | string | |
| user_google_email * | string |
create_spreadsheetCreates a new Google Spreadsheet.| Parameter | Type | Description |
|---|---|---|
| folder_id | string | The ID of the parent folder. Defaults to 'root'. For shared drives, this must be a folder ID within the shared drive. |
| service * | any | |
| sheet_names | any | List of sheet names to create. If not provided, creates one sheet with default name. |
| title * | string | The title of the new spreadsheet. Required. |
| user_google_email * | string | The user's Google email address. Required. |
create_table_with_dataCreates a table and populates it with data in one reliable operation.| Parameter | Type | Description |
|---|---|---|
| bold_headers | boolean | Whether to make first row bold (default: true) |
| document_id * | string | ID of the document to update |
| header_rows | integer | Number of leading rows to mark as a repeating header that reappears after each page break. Must be between 0 and the number of table rows (default: 0 = none) |
| index * | integer | Document position (MANDATORY: get from inspect_doc_structure 'total_length') |
| service * | any | |
| tab_id | string | Optional tab ID to create the table in a specific tab |
| table_data * | array | 2D list of strings - EXACT format: [["col1", "col2"], ["row1col1", "row1col2"]] |
| user_google_email * | string | User's Google email address |
debug_table_structureESSENTIAL DEBUGGING TOOL - Use this whenever tables don't work as expected.| Parameter | Type | Description |
|---|---|---|
| document_id * | string | ID of the document to inspect |
| service * | any | |
| tab_id | string | Optional ID of the tab containing the table (from inspect_doc_structure). If not provided, inspects the first tab. |
| table_index | integer | Which table to debug (0 = first table, 1 = second table, etc.) |
| user_google_email * | string | User's Google email address |
download_chat_attachmentDownloads an attachment from a Google Chat message and saves it to local disk.| Parameter | Type | Description |
|---|---|---|
| attachment_index | integer | Zero-based index of the attachment to download (default 0). |
| message_id * | string | The message resource name (e.g. spaces/X/messages/Y). |
| service * | any | |
| user_google_email * | string |
draft_gmail_message| Parameter | Type | Description |
|---|---|---|
| attachments | any | Optional list of attachments. Each can have: 'url' (fetch from URL — works with MCP attachment URLs from get_drive_file_download_url / get_gmail_attachment_content), OR 'path' (file path, auto-encodes), OR 'content' (standard base64, not urlsafe) + 'filename'. Optional 'mime_type'. Optional 'content_id' (string) makes the attachment inline-rendered: it lands in a multipart/related part with `Content-ID: <content_id>` and `Content-Disposition: inline`, and the HTML body can reference it via `<img src="cid:<content_id>">` (RFC 2392). Without `content_id` the attachment is a regular multipart/mixed attachment. |
| bcc | string | Optional BCC email address. |
| body | string | Email body. Required unless forwarding, where it becomes an optional note prepended above the quoted original. |
| body_format | string | Email body format. Use 'plain' for plaintext or 'html' for HTML content. With 'html', write real markup; an entity-escaped body ('<div>') is rejected. |
| cc | string | Optional CC email address. |
| direction | any | |
| forward_message_id | string | Set to a Gmail message ID to save a forward of that message as a draft for review. The original subject, body, and (optionally) attachments are carried over; 'body' becomes an optional note prepended to the forward. |
| from_email | string | Optional 'Send As' alias email address. Must be configured in Gmail settings (Settings > Accounts > Send mail as). If not provided, uses the account's default Send As address, falling back to the authenticated user's email when Gmail returns no usable Send-As entry or settings access is not authorized. |
| from_name | string | Optional sender display name (e.g., 'Peter Hartree'). If provided, the From header will be formatted as 'Name <email>'. |
| in_reply_to | string | Optional RFC Message-ID to explicitly reply to a specific message (e.g., '<message123@gmail.com>'). Omit to reply to the latest eligible message in thread_id. |
| include_forwarded_attachments | boolean | When forwarding, whether to include the original message's attachments. Ignored unless forward_message_id is set. |
| include_signature | boolean | Whether to append the Gmail signature from Settings > Signature when available. Defaults to true. |
| priority | any | 'high' or 'low' adds priority headers. Defaults to 'normal'. |
| quote_original | boolean | Whether to include the original message as a quoted reply, as Gmail web does. Only has an effect when thread_id is provided. Defaults to false; pass true on replies whose recipients should see the earlier message. |
| references | string | Optional Message-ID ancestry chain. Normally omit when thread_id is provided; the server derives the chain through the selected reply target. |
| reply_all | boolean | Whether to derive reply-all recipients from the thread: To = the sender being replied to, Cc = the other participants, excluding the authenticated account and from_email. Requires thread_id. Explicit to/cc win; when cc is omitted the sender being replied to is added to the derived Cc if they are not already in To. Defaults to false. |
| service * | any | |
| subject | string | Email subject. Required for a new draft. Optional when replying with thread_id (inherits the parent message's subject, adding 'Re:' only if absent) or when forwarding (then defaults to 'Fwd: <original subject>'). |
| thread_id | string | Optional Gmail thread ID to reply within. When in_reply_to is omitted, replies to the latest non-draft, non-trash message with an RFC Message-ID. |
| to | string | Optional recipient email address. |
| user_google_email * | string | The user's Google email address. Required for authentication. |
export_doc_to_pdfExports a Google Doc to PDF format and saves it to Google Drive.| Parameter | Type | Description |
|---|---|---|
| document_id * | string | ID of the Google Doc to export |
| folder_id | string | Drive folder ID to save PDF in (optional - if not provided, saves in root) |
| pdf_filename | string | Name for the PDF file (optional - if not provided, uses original name + "_PDF") |
| service * | any | |
| user_google_email * | string | User's Google email address |
find_and_replace_docFinds and replaces text throughout a Google Doc. No index calculation required.| Parameter | Type | Description |
|---|---|---|
| document_id * | string | ID of the document to update |
| find_text * | string | Text to search for |
| match_case | boolean | Whether to match case exactly |
| replace_text * | string | Text to replace with |
| service * | any | |
| tab_id | string | Optional ID of the tab to target |
| user_google_email * | string | User's Google email address |
| write_mode | string | "EDIT" (default) applies the replacements directly; "SUGGEST" records them as suggested edits that collaborators can accept or reject |
format_sheet_rangeApplies formatting to a range: colors, number formats, text wrapping,| Parameter | Type | Description |
|---|---|---|
| background_color | string | Hex background color (e.g., "#FFEECC"). |
| bold | boolean | Whether to apply bold formatting. |
| border_color | string | Hex border color (default black). Requires borders. |
| border_style | string | SOLID (default), SOLID_MEDIUM, SOLID_THICK, DASHED, DOTTED, or DOUBLE. Requires borders. |
| borders | string | Which borders to draw, comma-separated: all, outer, inner, top, bottom, left, right, inner_horizontal, inner_vertical (e.g., "outer" or "bottom,inner_horizontal"). "none" removes every border in the range. |
| clear_dropdown | boolean | Remove all data validation from the range: dropdowns, but also checkboxes and other validation rules. |
| dropdown_strict | boolean | With dropdown_values: reject other input (default True) or only show a warning (False). |
| dropdown_values | any | Turns every cell in the range into a dropdown offering these values (e.g., ["open", "done"]). |
| font_size | integer | Font size in points. |
| horizontal_alignment | string | Horizontal text alignment - LEFT, CENTER, or RIGHT. |
| italic | boolean | Whether to apply italic formatting. |
| merge_cells | boolean | True merges the range, False unmerges it. Merging keeps only the top-left value of each merged group. |
| merge_type | string | MERGE_ALL (default), MERGE_COLUMNS, or MERGE_ROWS. Setting it implies merge_cells=True. |
| number_format_pattern | string | Custom pattern for the number format. |
| number_format_type | string | Sheets number format type (e.g., "DATE"). |
| range_name * | string | A1-style range (optionally with sheet name). Required. |
| service * | any | |
| spreadsheet_id * | string | The ID of the spreadsheet. Required. |
| text_color | string | Hex text color (e.g., "#000000"). |
| user_google_email * | string | The user's Google email address. Required. |
| vertical_alignment | string | Vertical text alignment - TOP, MIDDLE, or BOTTOM. |
| wrap_strategy | string | Text wrap strategy - WRAP (wrap text within cell), CLIP (clip text at cell boundary), or OVERFLOW_CELL (allow text to overflow into adjacent empty cells). |
generate_trigger_codeGenerates Apps Script code for creating triggers.| Parameter | Type | Description |
|---|---|---|
| function_name * | string | |
| schedule | string | |
| trigger_type * | string | Type 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 specific hour: 0-23) - "time_weekly" (run weekly on a specific day) - "on_open" (simple trigger - runs when document opens) - "on_edit" (simple trigger - runs when user edits) - "on_form_submit" (runs when form is submitted) - "on_change" (runs when content changes) |
get_contactGet detailed information about a specific contact.| Parameter | Type | Description |
|---|---|---|
| contact_id * | string | The contact ID (e.g., "c1234567890" or full resource name "people/c1234567890"). |
| service * | any | |
| user_google_email * | string | The user's Google email address. Required. |
get_contact_groupGet details of a specific contact group including its members.| Parameter | Type | Description |
|---|---|---|
| group_id * | string | The contact group ID. |
| max_members | integer | Maximum number of members to return (default: 100, max: 1000). |
| service * | any | |
| user_google_email * | string | The user's Google email address. Required. |
get_drive_file_contentRetrieves the content of a specific Google Drive file by ID, supporting files in shared drives.| Parameter | Type | Description |
|---|---|---|
| file_id * | string | Drive file ID. |
| full_content | boolean | Return all content from offset onward in one call instead of a page of the default size. |
| offset | integer | Character offset to read on from after a truncated result. |
| service * | any | |
| user_google_email * | string | The user’s Google email address. |
get_drive_shareable_linkGets the shareable link for a Google Drive file or folder.| Parameter | Type | Description |
|---|---|---|
| file_id * | string | The ID of the file or folder to get the shareable link for. Required. |
| service * | any | |
| user_google_email * | string | The user's Google email address. Required. |
get_eventsRetrieves events from a specified Google Calendar. Can retrieve a single event by ID or multiple events within a time range.| Parameter | Type | Description |
|---|---|---|
| calendar_id | string | The 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`. |
| detailed | boolean | Whether to return detailed event information including description, location, colour (colorId), attendees, and attendee details (response status, organizer, optional flags). Recurring instances also report the parent series ID needed to edit the whole series; recurring masters report their raw RFC5545 recurrence rules; and events that are not ordinary confirmed meetings report their event type (outOfOffice, workingLocation, focusTime) and status. Custom reminders (an empty list means none), non-default visibility and transparency are reported too; events using the calendar's default reminders omit the Reminders line. Defaults to False. |
| event_id | string | The ID of a specific event to retrieve. If provided, retrieves only this event and ignores time filtering parameters. |
| include_attachments | boolean | Whether 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=True. Set this to True when you need to view or access files that have been attached to calendar events, such as meeting documents, presentations, or other shared files. Defaults to False. |
| max_results | integer | The maximum number of events to return in one page. Defaults to 25. Ignored if event_id is provided. |
| page_token | string | Token for the next page, taken from a previous response. When single_events=True, also pass the response's Pagination time_min as time_min, even if omitted on the first call. Keep all other query parameters unchanged. Ignored if event_id is provided. |
| query | string | A keyword to search for within event fields (summary, description, location). Ignored if event_id is provided. |
| service * | any | |
| single_events | boolean | Whether to expand recurring series into individual instances. Defaults to True for backwards compatibility. Set to False with detailed=True to retrieve recurring master events and their exact RFC5545 recurrence rules instead of inferring cadence from expanded instances. |
| time_max | string | The 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_min | string | The 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 when single_events=True. It is omitted from unexpanded queries so recurring masters that began in the past but still have future occurrences remain discoverable. Ignored if event_id is provided. |
| user_google_email * | string | The user's Google email address. Required. |
get_formGet a form.| Parameter | Type | Description |
|---|---|---|
| form_id * | string | The ID of the form to retrieve. |
| service * | any | |
| user_google_email * | string | The user's Google email address. Required. |
get_form_responseGet one response from the form.| Parameter | Type | Description |
|---|---|---|
| form_id * | string | The ID of the form. |
| response_id * | string | The ID of the response to retrieve. |
| service * | any | |
| user_google_email * | string | The user's Google email address. Required. |
get_gmail_thread_contentRetrieves the complete content of a Gmail conversation thread, including all messages.| Parameter | Type | Description |
|---|---|---|
| body_format | string | Body output format. 'text' (default) returns plaintext (HTML converted to text as fallback). 'html' returns the raw HTML body as-is without conversion. 'raw' fetches each message's full raw MIME content and returns the base64url-decoded body. |
| include_analysis | boolean | When True, the return value is a dict with both the formatted thread content AND structured ownership analysis (last sender, ball-in-court verdict, per-sender message counts, participants). Defaults to False, in which case the existing string return shape is preserved. |
| include_links | boolean | Append the HTML body's http(s) links missing from the text output. |
| service * | any | |
| thread_id * | string | The unique ID of the Gmail thread to retrieve. |
| user_google_email * | string | The user's Google email address. Required. |
get_presentationRead a deck: action "deck" (default) lists its slides and layouts, "page" gives one slide's element IDs and all its text (start here for content), "markup" gives one slide's elements as compact JSON with geometry and styles, "layouts" lists every layout.| Parameter | Type | Description |
|---|---|---|
| action | string | "deck" (default): slides and layouts. "page": one slide's element IDs and text. "markup": one slide's elements as JSON with geometry and styles. "layouts": every layout. |
| after | string | For "layouts": a slide ID, or "start". Lists only the layouts of the master in use at that position, which are the only ones a new slide inserted there can use. |
| offset | integer | For "deck": index of the first slide to list, from the note at the end of a previous call. Defaults to 0. |
| page_id | string | Slide (or any page) object ID, from "deck". Required for "page" and "markup". |
| presentation_id * | string | The ID of the presentation. |
| raw | boolean | For "markup": return the Slides API Page resource itself (EMU, transforms, text indices), limited to targets when given, for writing raw batch_update_presentation requests. A target in a group keeps its group-relative transform. Defaults to False. |
| service * | any | |
| targets | any | For "markup": element IDs to return instead of the whole slide, plus "notes" for the speaker notes. A target inside a group comes back with page coordinates and its "group" ID; a group comes back with its children. |
| user_google_email * | string | The user's Google email address. Required. |
get_script_activityRead execution activity for scripts: recent processes or aggregate metrics.| Parameter | Type | Description |
|---|---|---|
| action * | string | One of "processes", "metrics". |
| metrics_granularity | string | Granularity for metrics - "DAILY" or "WEEKLY". |
| page_size | integer | Number of results for processes (default: 50). |
| script_id | string | The script project ID (required for metrics; optional for processes). |
| service * | any | Injected Google API service client |
| user_google_email * | string | User's email address |
get_script_versionList or retrieve immutable version snapshots of a script project.| Parameter | Type | Description |
|---|---|---|
| action * | string | |
| script_id * | string | |
| service * | any | |
| user_google_email * | string | |
| version_number | integer |
get_spreadsheet_infoGets information about a specific spreadsheet including its sheets.| Parameter | Type | Description |
|---|---|---|
| service * | any | |
| spreadsheet_id * | string | The ID of the spreadsheet to get info for. Required. |
| user_google_email * | string | The user's Google email address. Required. |
get_taskGet details of a specific task.| Parameter | Type | Description |
|---|---|---|
| service * | any | |
| task_id * | string | The ID of the task to retrieve. |
| task_list_id * | string | The ID of the task list containing the task. |
| user_google_email * | string | The user's Google email address. Required. |
get_task_listGet details of a specific task list.| Parameter | Type | Description |
|---|---|---|
| service * | any | |
| task_list_id * | string | The ID of the task list to retrieve. |
| user_google_email * | string | The user's Google email address. Required. |
import_to_google_docImports a file (Markdown, DOCX, TXT, HTML, RTF, ODT) into Google Docs format with automatic conversion.| Parameter | Type | Description |
|---|---|---|
| base64_content | string | Standard base64-encoded bytes for a binary source such as DOCX or ODT. |
| base64_sha256 | string | Expected SHA-256 of decoded base64_content. Recommended for binary payload integrity checks. |
| content | string | Text content for text-based formats. Use only for short snippets or content already in memory. |
| file_name * | string | The name for the new Google Doc; the extension is dropped from the title. Without 'source_format', its extension also sets the format of 'content' or 'base64_content' (e.g. 'Notes.md' so Markdown tables are not imported as plain text). |
| file_path | string | Local file path or file:// URL for any supported format (MD, TXT, HTML, DOCX, ODT, RTF). Appropriate for larger files than content, but file_path may still load the file into memory or perform non-streaming reads. Avoid very large files that could exceed memory or time limits; use streaming/chunked uploads or an alternative API for huge files. |
| file_url | string | Remote URL to fetch the file from (http/https). |
| folder_id | string | The ID of the parent folder. Defaults to 'root'. |
| return_upload_url | boolean | Return a Google resumable-upload session URL instead of ingesting the source here; the caller PUTs the source bytes there directly (no Authorization header) and Drive converts them. Requires source_format; not combinable with other content sources. Offered only where local file access is disabled. |
| service * | any | |
| source_format | string | Source format hint ('md', 'markdown', 'docx', 'txt', 'html', 'rtf', 'odt'). Auto-detected from file_name extension if not provided. |
| user_google_email * | string | The user's Google email address. Required. |
import_to_google_sheetsImports a spreadsheet (XLSX, XLS, ODS, CSV, TSV) into Google Sheets format with automatic conversion.| Parameter | Type | Description |
|---|---|---|
| base64_content | string | Standard base64-encoded bytes for an XLSX, XLS, or ODS source. |
| base64_sha256 | string | Expected SHA-256 of decoded base64_content. Recommended for binary payload integrity checks. |
| content | string | Text content for text-based formats (CSV, TSV). Use only for short snippets or content already in memory. |
| file_name * | string | The name for the new Google Sheets spreadsheet; the extension is dropped from the title. Without 'source_format', its extension also sets the format of 'content' or 'base64_content' (e.g. 'Data.csv'). |
| file_path | string | Local file path or file:// URL for any supported format (XLSX, XLS, ODS, CSV, TSV). Appropriate for larger files than content, but file_path may still load the file into memory or perform non-streaming reads. Avoid very large files that could exceed memory or time limits; use streaming/chunked uploads or an alternative API for huge files. |
| file_url | string | Remote URL to fetch the spreadsheet from (http/https). |
| folder_id | string | The ID of the parent folder. Defaults to 'root'. |
| return_upload_url | boolean | Return a Google resumable-upload session URL instead of ingesting the source here; the caller PUTs the source bytes there directly (no Authorization header) and Drive converts them. Requires source_format; not combinable with other content sources. Offered only where local file access is disabled. |
| service * | any | |
| source_format | string | Source format hint ('xlsx', 'xls', 'ods', 'csv', 'tsv'). Auto-detected from file_name extension if not provided. |
| user_google_email * | string | The user's Google email address. Required. |
import_to_google_slidesImports a presentation (PPTX, PPT, ODP) into Google Slides format with automatic conversion.| Parameter | Type | Description |
|---|---|---|
| base64_content | string | Standard base64-encoded bytes for a PPTX or ODP source. |
| base64_sha256 | string | Expected SHA-256 of decoded base64_content. Recommended for binary payload integrity checks. |
| file_name * | string | The name for the new Google Slides presentation; the extension is dropped from the title. Without 'source_format', its extension also sets the format of 'base64_content' (e.g. 'Deck.pptx'). |
| file_path | string | Local file path or file:// URL for any supported format (PPTX, PPT, ODP). Appropriate for larger files than content, but file_path may still load the file into memory or perform non-streaming reads. Avoid very large files that could exceed memory or time limits; use streaming/chunked uploads or an alternative API for huge files. |
| file_url | string | Remote URL to fetch the presentation from (http/https). |
| folder_id | string | The ID of the parent folder. Defaults to 'root'. |
| return_upload_url | boolean | Return a Google resumable-upload session URL instead of ingesting the source here; the caller PUTs the source bytes there directly (no Authorization header) and Drive converts them. Requires source_format; not combinable with other content sources. Offered only where local file access is disabled. |
| service * | any | |
| source_format | string | Source format hint ('pptx', 'ppt', 'odp'). Auto-detected from file_name extension if not provided. |
| user_google_email * | string | The user's Google email address. Required. |
insert_doc_elementsInserts structural elements like tables, lists, or page breaks into a Google Doc.| Parameter | Type | Description |
|---|---|---|
| columns | integer | Number of columns for table (required for table) |
| document_id * | string | ID of the document to update |
| element_type * | string | Type of element to insert ("table", "list", "page_break") |
| index * | integer | Position to insert element (0-based) |
| list_type | string | Type of list ("UNORDERED", "ORDERED") (required for list) |
| rows | integer | Number of rows for table (required for table) |
| service * | any | |
| text | string | Initial text content for list items |
| user_google_email * | string | User's Google email address |
inspect_doc_structureEssential tool for finding safe insertion points and understanding document structure.| Parameter | Type | Description |
|---|---|---|
| detailed | boolean | Whether to return detailed structure information |
| document_id * | string | ID of the document to inspect |
| preview_chars | integer | Maximum characters of paragraph, header and footer text preview. Pass 0 or None for the full text, needed to locate a token inside a paragraph longer than the default 100 characters. |
| service * | any | |
| tab_id | string | Optional ID of the tab to inspect. If not provided, inspects main document. |
| user_google_email * | string | User's Google email address |
list_calendarsRetrieves a list of calendars accessible to the authenticated user.| Parameter | Type | Description |
|---|---|---|
| max_results | integer | Maximum calendars to return in one page. Omit to use the API default. |
| page_token | string | Token for the next page, taken from a previous response. |
| service * | any | |
| user_google_email * | string | The user's Google email address. Required. |
list_contact_groupsList contact groups (labels) for the user.| Parameter | Type | Description |
|---|---|---|
| page_size | integer | Maximum number of groups to return (default: 100, max: 1000). |
| page_token | string | Token for pagination. |
| service * | any | |
| user_google_email * | string | The user's Google email address. Required. |
list_contactsList contacts for the authenticated user, optionally as a full or incremental sync.| Parameter | Type | Description |
|---|---|---|
| page_size | integer | Maximum number of contacts to return (default: 100, max: 1000). |
| page_token | string | Token for pagination. Keep all other arguments unchanged when following it. |
| request_sync_token | boolean | Start a full sync. The last page returns a sync token. |
| service * | any | |
| sort_order | string | Sort order: "LAST_MODIFIED_ASCENDING", "LAST_MODIFIED_DESCENDING", "FIRST_NAME_ASCENDING", or "LAST_NAME_ASCENDING". Not supported when syncing. |
| sync_token | string | List only changes since the sync that returned this token, marking deleted contacts. The last page returns a new sync token. |
| user_google_email * | string | The user's Google email address. Required. |
list_docs_in_folderLists Google Docs within a specific Drive folder.| Parameter | Type | Description |
|---|---|---|
| folder_id | string | ID of the Drive folder to list. Defaults to 'root'. |
| page_size | integer | Maximum number of documents to return. Defaults to 100. |
| page_token | string | Page token from a previous response's nextPageToken to retrieve the next page of results. |
| service * | any | |
| user_google_email * | string | The user's Google email address. |
list_drive_itemsLists files/folders or shared drive containers, supporting shared drives.| Parameter | Type | Description |
|---|---|---|
| corpora | string | Corpus to query ('user', 'drive', 'allDrives'). If `drive_id` is set and `corpora` is None, 'drive' is used. If None and no `drive_id`, 'allDrives' is used when `include_items_from_all_drives` is True. |
| detailed | boolean | Whether to include size, modified time, and link in results. Defaults to True. |
| drive_id | string | ID of the shared drive. If provided, the listing is scoped to this drive. |
| file_type | string | Restrict results to a specific file type. Accepts a friendly name ('folder', 'document'/'doc', 'spreadsheet'/'sheet', 'presentation'/'slides', 'form', 'drawing', 'pdf', 'shortcut', 'script', 'site', 'jam'/'jamboard') or any raw MIME type string (e.g. 'application/pdf'). Defaults to None (all types). |
| folder_id | string | The 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_drives | boolean | Whether items from all accessible shared drives should be included if `drive_id` is not set. Defaults to True. |
| include_organizers | boolean | When resource_type="shared_drives", include principals with the organizer role. This costs one extra permissions.list API call per shared drive returned. Defaults to False. |
| order_by | string | Sort order. Comma-separated list of sort keys with optional 'desc' modifier. Valid keys: 'createdTime', 'folder', 'modifiedByMeTime', 'modifiedTime', 'name', 'name_natural', 'quotaBytesUsed', 'recency', 'sharedWithMeTime', 'starred', 'viewedByMeTime'. Example: 'modifiedTime desc' or 'folder,modifiedTime desc,name'. Defaults to None (Drive API default ordering). |
| page_size | integer | The maximum number of items to return. Defaults to 100. |
| page_token | string | Page token from a previous response's nextPageToken to retrieve the next page of results. |
| query | string | Shared drive query used only when resource_type="shared_drives", e.g. "name contains 'Engineering'". |
| resource_type | string | What to list. Use "items" for folder contents or "shared_drives" for shared drive containers. Defaults to "items". |
| service * | any | |
| user_google_email * | string | The user's Google email address. Required. |
list_form_responsesList a form's responses.| Parameter | Type | Description |
|---|---|---|
| form_id * | string | The ID of the form. |
| page_size | integer | Maximum number of responses to return. Defaults to 10. |
| page_token | string | Token for retrieving next page of results. |
| service * | any | |
| user_google_email * | string | The user's Google email address. Required. |
list_gmail_filtersLists all Gmail filters configured in the user's mailbox.| Parameter | Type | Description |
|---|---|---|
| service * | any | |
| user_google_email * | string | The user's Google email address. Required. |
list_gmail_labelsLists labels in the user's Gmail account.| Parameter | Type | Description |
|---|---|---|
| compact | boolean | Return minimal JSON {"count", "labels": [{"id", "name"}]} sorted by name, instead of the formatted text list. For callers that parse the result, e.g. a label cache refresh. |
| include_system | boolean | Include Gmail system labels (INBOX, SENT, ...). Set False to return user labels only. |
| prefix | string | Return only labels whose name starts with this exact (case-sensitive) string. users.labels.list accepts no filter, so the full list is fetched and narrowed here: this shrinks what the caller receives, not the API call. |
| service * | any | |
| user_google_email * | string | The user's Google email address. Required. |
list_script_deploymentsList deployments for an Apps Script project.| Parameter | Type | Description |
|---|---|---|
| script_id * | string | |
| service * | any | |
| user_google_email * | string |
list_sheet_tablesLists all structured tables in a spreadsheet with their IDs, names, ranges,| Parameter | Type | Description |
|---|---|---|
| service * | any | |
| spreadsheet_id * | string | The ID of the spreadsheet. Required. |
| user_google_email * | string | The user's Google email address. Required. |
list_spreadsheetsLists spreadsheets from Google Drive that the user has access to.| Parameter | Type | Description |
|---|---|---|
| corpora | string | Corpus to search ('user', 'domain', 'drive', 'allDrives'). Defaults to 'drive' when drive_id is set, otherwise 'allDrives'. |
| drive_id | string | Shared drive ID to search. |
| max_results | integer | Maximum number of spreadsheets to return. Defaults to 25. |
| page_token | string | Page token from a previous response's nextPageToken to retrieve the next page of results. |
| service * | any | |
| user_google_email * | string | The user's Google email address. Required. |
list_task_listsList all task lists for the user.| Parameter | Type | Description |
|---|---|---|
| max_results | integer | Maximum number of task lists to return (default: 1000, max: 1000). |
| page_token | string | Token for pagination. |
| service * | any | |
| user_google_email * | string | The user's Google email address. Required. |
list_tasksList all tasks in a specific task list.| Parameter | Type | Description |
|---|---|---|
| completed_max | string | Upper bound for completion date (RFC 3339 timestamp). |
| completed_min | string | Lower bound for completion date (RFC 3339 timestamp). |
| due_max | string | Upper bound for due date (RFC 3339 timestamp). |
| due_min | string | Lower bound for due date (RFC 3339 timestamp). |
| max_results | integer | Maximum number of tasks to return. (default: 20, max: 10000). |
| page_token | string | Token for pagination. |
| service * | any | |
| show_assigned | boolean | Whether to include assigned tasks (default: False). |
| show_completed | boolean | Whether 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_deleted | boolean | Whether to include deleted tasks (default: False). |
| show_hidden | boolean | Whether to include hidden tasks (default: False). |
| task_list_id * | string | The ID of the task list to retrieve tasks from. |
| updated_min | string | Lower bound for last modification time (RFC 3339 timestamp). |
| user_google_email * | string | The user's Google email address. Required. |
manage_calendarCreates secondary Google Calendars and manages who a calendar is shared with (its access control rules).| Parameter | Type | Description |
|---|---|---|
| action * | string | Action to perform. One of: - "create": Create a new secondary calendar. Uses summary, description, timezone. - "list_sharing": List the calendar's sharing rules. Uses calendar_id, page_token. - "share": Grant access to the calendar. Uses calendar_id, role, scope_type, scope_value, send_notifications. - "update_sharing": Change the role of an existing rule. Uses calendar_id, rule_id, role, send_notifications. - "unshare": Remove an existing rule. Uses calendar_id, rule_id. |
| calendar_id | string | Calendar ID for the sharing actions. Defaults to 'primary'. |
| description | string | An optional description for the new calendar. Used by "create". |
| page_token | string | For "list_sharing" action: token for the next page, taken from a previous response. |
| role | string | Access level for "share" and "update_sharing". One of: "freeBusyReader", "reader", "writerWithoutPrivateAccess", "writer", "owner", "none". |
| rule_id | string | Rule ID from "list_sharing" (e.g. "user:alice@example.com"). Required for "update_sharing" and "unshare". |
| scope_type | string | Who "share" grants access to: "user", "group", "domain", or "default" (public). Defaults to "user". |
| scope_value | string | Email address for "user"/"group" or domain name for "domain". Required for "share" unless scope_type is "default". |
| send_notifications | boolean | Whether to email the grantee on "share" and "update_sharing". Defaults to True. |
| service * | any | |
| summary | string | The title/name of the new calendar. Required for "create". |
| timezone | string | IANA timezone for the new calendar (e.g. 'America/New_York'). Used by "create". |
| user_google_email * | string | The user's Google email address. Required. |
manage_conditional_formattingManages conditional formatting rules on a Google Sheet. Supports adding,| Parameter | Type | Description |
|---|---|---|
| action * | string | The operation to perform. Must be one of "add", "update", or "delete". |
| background_color | string | Hex background color to apply when condition matches. Used by "add" and "update". |
| condition_type | string | Sheets condition type (e.g., NUMBER_GREATER, TEXT_CONTAINS, DATE_BEFORE, CUSTOM_FORMULA). Required for "add". Optional for "update" (preserves existing type if omitted). |
| condition_values | any | Values for the condition; accepts a list or a JSON string representing a list. Depends on condition_type. Used by "add" and "update". |
| gradient_points | any | List (or JSON list) of gradient points for a color scale. If provided, a gradient rule is created and boolean parameters are ignored. Used by "add" and "update". |
| range_name | string | A1-style range (optionally with sheet name). Required for "add". Optional for "update" (preserves existing ranges if omitted). Not used for "delete". |
| rule_index | integer | 0-based index of the rule. For "add", optionally specifies insertion position. Required for "update" and "delete". |
| service * | any | |
| sheet_name | string | Sheet name to locate the rule when range_name is omitted. Defaults to the first sheet. Used by "update" and "delete". |
| spreadsheet_id * | string | The ID of the spreadsheet. Required. |
| text_color | string | Hex text color to apply when condition matches. Used by "add" and "update". |
| user_google_email * | string | The user's Google email address. Required. |
manage_contact| Parameter | Type | Description |
|---|---|---|
| action * | string | The action to perform: "create", "update", "delete", "set_photo", or "delete_photo". |
| address | string | Street address, replacing any existing addresses. "" clears them (for create/update). |
| birthday | string | Birthday as 'YYYY-MM-DD', 'MM-DD' (no year), or 'clear'/'' to remove. |
| contact_id | string | The contact ID. Required for all actions except "create". |
| string | [DEPRECATED] Email address. Use emails=[{"address":..., "type":"other"}]. | |
| emails | array | List of email dicts {address, type?}. |
| emails_mode | string | How to update emails on "update": "merge" (default), "replace", or "remove". |
| family_name | string | Last name (for create/update). |
| file_path | string | Server-side JPEG or PNG path for "set_photo", instead of photo_base64. Must be under ALLOWED_FILE_DIRS. Maximum 5 MiB. |
| given_name | string | First name (for create/update). |
| job_title | string | [DEPRECATED] Job title. Use organizations=[{"title":...}]. |
| nicknames | array | List of nickname dicts {value, type?}. Useful for bilingual contacts (e.g. Hebrew/English alternative forms). Android dialer and WhatsApp search both index nicknames, enabling cross-script lookup. Supported types: default, alternate_name, maiden_name, initials, other, etc. |
| nicknames_mode | string | How to update nicknames on "update": "merge" (default), "replace", or "remove". |
| notes | string | Additional notes (for create/update). |
| organization | string | [DEPRECATED] Company name. Use organizations=[{"name":...}]. |
| organizations | array | List of org dicts {name?, title?, department?, jobDescription?, type?}. |
| organizations_mode | string | How to update orgs on "update": "merge" (default), "replace", or "remove". |
| photo_base64 | string | Raw Base64 JPEG or PNG bytes for "set_photo", without a data URL prefix. Maximum 5 MiB decoded. |
| relations | array | List of relation dicts {person, type?}. Supported types: spouse, child, parent, friend, manager, assistant, etc. |
| relations_mode | string | How to update relations on "update": "merge" (default), "replace", or "remove". |
| service * | any | |
| urls | array | List of URL dicts {value, type?}. Supported types: homepage, blog, profile, work, ftp, reservations, other, etc. |
| urls_mode | string | How to update urls on "update": "merge" (default), "replace", or "remove". merge and remove match URLs case-insensitively on scheme and host only, ignoring a trailing slash. |
| user_defined | array | List of custom field dicts {key, value}. Useful for structured data like account numbers, IDs, or custom dates. |
| user_defined_mode | string | How to update custom fields on "update": "merge" (default), "replace", or "remove". merge overrides value on matching key; new keys appended. |
| user_google_email * | string | The user's Google email address. Required. |
manage_contact_groupCreate, update, delete a contact group, or modify its members. Consolidated tool| Parameter | Type | Description |
|---|---|---|
| action * | string | The action to perform: "create", "update", "delete", or "modify_members". |
| add_contact_ids | any | Contact IDs to add (for "modify_members"). |
| delete_contacts | boolean | If True and action is "delete", also delete contacts in the group (default: False). |
| group_id | string | The contact group ID. Required for "update", "delete", and "modify_members" actions. |
| name | string | The group name. Required for "create" and "update" actions. |
| remove_contact_ids | any | Contact IDs to remove (for "modify_members"). |
| service * | any | |
| user_google_email * | string | The user's Google email address. Required. |
manage_contacts_batchBatch create, update, or delete contacts. Consolidated tool replacing| Parameter | Type | Description |
|---|---|---|
| action * | string | The action to perform: "create", "update", or "delete". |
| contact_ids | any | List of contact IDs for "delete" action. |
| contacts | array | List of contact dicts for "create" action. Each dict may contain: given_name, family_name, phones, emails, organizations, nicknames, urls, user_defined, relations, notes, address, birthday. Deprecated: phone, email, organization, job_title. |
| field | any | For "update" action, the single People API field to update across all contacts in this batch. Required. Must be one of: names, phoneNumbers, emailAddresses, organizations, nicknames, urls, userDefined, relations, biographies, addresses, birthdays. Using a single field per batch call prevents unintentional data loss from a union updateMask overwriting unrelated fields. |
| service * | any | |
| updates | array | List of update dicts for "update" action. Each dict must contain contact_id and may contain the same fields as contacts. |
| user_google_email * | string | The user's Google email address. Required. |
manage_deploymentCreate, update, or delete Apps Script deployments.| Parameter | Type | Description |
|---|---|---|
| action * | string | Action to perform - "create", "update", or "delete" |
| deployment_id | string | The deployment ID (required for update and delete) |
| description | string | Deployment description (required for create; optional for update when version_number is supplied) |
| script_id * | string | The script project ID |
| service * | any | Injected Google API service client |
| user_google_email * | string | User's email address |
| version_description | string | Optional version description (for create only) |
| version_number | integer | Version number to point the deployment at (for update only). Required to roll a deployment forward to a newly created script version. |
manage_doc_tabManage document tabs: create, rename, delete, or populate from Markdown.| Parameter | Type | Description |
|---|---|---|
| action * | string | Action to perform - "create", "rename", "delete", or "populate_from_markdown" |
| document_id * | string | ID of the document |
| index | integer | Position index for new tab, 0-based among siblings (required for create) |
| markdown_text | string | Markdown source to render (populate_from_markdown only) |
| parent_tab_id | string | Optional parent tab ID to nest under (create only) |
| replace_existing | boolean | Clear tab body before inserting markdown (default True) |
| service * | any | |
| tab_id | string | Tab ID (required for rename, delete, populate_from_markdown; use inspect_doc_structure to find IDs) |
| title | string | Tab title (required for create; used by rename) |
| user_google_email * | string | User's Google email address |
manage_drive_accessConsolidated tool for managing Google Drive file and folder access permissions.| Parameter | Type | Description |
|---|---|---|
| action * | string | The access management action to perform. Required. One of: - "grant": Share with a single user, group, domain, or anyone. - "grant_batch": Share with multiple recipients in one call. - "update": Modify an existing permission (role or expiration). - "revoke": Remove an existing permission. - "transfer_owner": Transfer file ownership to another user. |
| allow_file_discovery | boolean | For 'domain'/'anyone' shares, whether the file appears in search. Used by "grant". |
| email_message | string | Custom notification email message. Used by "grant" and "grant_batch". |
| expiration_time | string | Expiration in RFC 3339 format (e.g., "2025-01-15T00:00:00Z"). Used by "grant" and "update". |
| file_id * | string | The ID of the file or folder. Required. |
| move_to_new_owners_root | boolean | Move file to the new owner's My Drive root. Defaults to False. Used by "transfer_owner". |
| new_owner_email | string | Email of the new owner. Required for "transfer_owner". |
| permission_id | string | The permission ID to modify or remove. Required for "update" and "revoke" actions. |
| recipients | array | List of recipient objects for "grant_batch". Each should have: email (str), role (str, optional), share_type (str, optional), expiration_time (str, optional). For domain shares use 'domain' field instead of 'email'. |
| role | string | Permission role -- 'reader', 'commenter', or 'writer'. Used by "grant" (defaults to 'reader') and "update". |
| send_notification | boolean | Whether to send notification emails. Defaults to True. Used by "grant" and "grant_batch". |
| service * | any | |
| share_type | string | Type of sharing -- 'user', 'group', 'domain', or 'anyone'. Used by "grant". Defaults to 'user'. |
| share_with | string | Email address (user/group), domain name (domain), or omit for 'anyone'. Used by "grant". |
| user_google_email * | string | The user's Google email address. Required. |
manage_event| Parameter | Type | Description |
|---|---|---|
| action * | string | Action to perform - "create", "update", "delete", "move", or "rsvp". |
| add_google_meet | boolean | Whether to add/remove native Google Meet. |
| attachments | any | List of Google Drive file URLs or IDs to attach. On action="update" this replaces the event's existing attachments rather than appending to them, matching the Calendar API's patch semantics. |
| attendees | any | Attendee email addresses, attendee objects (e.g. {"email": ..., "responseStatus": "accepted"}), or a mix of both. |
| calendar_id | string | Calendar ID (default: 'primary'). For move, this is the source. |
| color_id | string | Event color, by name or ID: lavender (1), sage (2), grape (3), flamingo (4), banana (5), tangerine (6), peacock (7), graphite (8), blueberry (9), basil (10), tomato (11). |
| conference_data | object | Raw Google Calendar `conferenceData` payload to attach a third-party conference (Zoom/Webex/Teams add-on). Use this for full control; mutually exclusive with the conference_provider helper params and with add_google_meet. (create/update only) |
| conference_id | string | Optional provider-side conference/meeting ID. |
| conference_passcode | string | Optional passcode for the third-party conference. |
| conference_provider | string | Higher-level helper: third-party provider name (e.g. "zoom", "webex", "teams"). Requires conference_uri. The MCP builds the addOn `conferenceData` block internally. (create/update only) |
| conference_uri | string | Join URL for the third-party conference (e.g. "https://zoom.us/j/123456789"). Required when conference_provider is set. |
| description | string | Event description. |
| destination_calendar_id | string | Calendar to move the event to, which becomes its organizer (required for move). Only default events can be moved, and the user needs access to both calendars. |
| end_time | string | End time (required for create). An RFC3339 UTC offset identifies the exact instant and is preserved. Without an offset, supply end_timezone or timezone. All-day end dates are exclusive. |
| end_timezone | string | IANA timezone for the end boundary only, overriding timezone. See start_timezone. |
| event_id | string | Event ID (required for update, delete, move, and rsvp). |
| guests_can_invite_others | boolean | Whether attendees can invite others. |
| guests_can_modify | boolean | Whether attendees can modify. |
| guests_can_see_other_guests | boolean | Whether attendees can see other guests. |
| location | string | Event location. |
| recurrence | any | RFC5545 recurrence rules for a recurring event, e.g. ["RRULE:FREQ=WEEKLY;COUNT=10"]. |
| reminders | any | Custom reminder objects. |
| response | string | RSVP response — "accepted", "declined", "tentative", or "needsAction" (rsvp action only). |
| rsvp_comment | string | Optional message to include with the RSVP response (rsvp action only). |
| send_updates | string | Notification behavior: "all", "externalOnly", or "none". Defaults to "none" for move and "all" for other actions. |
| service * | any | |
| start_time | string | Start time (required for create). An RFC3339 UTC offset identifies the exact instant and is preserved. Without an offset, supply start_timezone or timezone. For a local wall-clock time, omit the offset and pass the zone so Google resolves daylight saving; a wrong offset moves the event. Date-only values create all-day events. |
| start_timezone | string | IANA timezone for the start boundary only, overriding timezone. Use for events whose two ends sit in different zones - a flight departing 13:45 "Asia/Jerusalem" and landing 17:50 "Europe/Amsterdam" is one event authored in two zones. Explicit timestamp offsets always preserve the instant, even when the zone differs. |
| summary | string | Event title (required for create). |
| this_and_following | boolean | Update only. With event_id set to a recurring instance ID, applies the change to that instance and every later one by ending the original series before it and starting a new series there; earlier instances are kept. Updating the series ID instead changes every instance, and moving its start or recurrence drops past instances that no longer match. Defaults to False. |
| timezone | string | IANA timezone applied to both boundaries (e.g., "America/New_York"). Converts offset-bearing timestamps without changing their instant; interprets offset-free timestamps as local times in this zone. Overridden per boundary by start_timezone/end_timezone. |
| transparency | string | "opaque" (busy) or "transparent" (free). |
| use_default_reminders | boolean | Whether to use default reminders. |
| user_google_email * | string | The user's Google email address. Required. |
| visibility | string | "default", "public", "private", or "confidential". |
manage_focus_timeManages Focus Time events on Google Calendar. These special events auto-decline| Parameter | Type | Description |
|---|---|---|
| action * | string | Action to perform - "create", "list", "update", or "delete". |
| auto_decline_mode | string | How to handle conflicting invitations. One of: "declineAllConflictingInvitations" (default), "declineOnlyNewConflictingInvitations", "declineNone". |
| calendar_id | string | Calendar ID. Defaults to 'primary'. Focus Time status events live on primary calendars, so use 'primary' or a user's primary calendar ID/email rather than a secondary calendar ID. |
| chat_status | string | Google Chat status during the focus time. Supports "doNotDisturb" (default) and "available". |
| decline_message | string | Message included when auto-declining invitations. |
| description | string | Event description. Useful for adding context about what the focus time is for. |
| end_time | string | End date/time (exclusive). Same format as start_time. For a single full day on April 5, use start_time='2026-04-05' and end_time='2026-04-06'. Required for create. |
| event_id | string | Event ID. Required for "update" and "delete" actions. |
| max_results | integer | For "list" action: maximum events to return in one page. Defaults to 10. |
| page_token | string | For "list" action: token for the next page, taken from a previous response. Also pass the response's Pagination time_min as time_min, even if omitted on the first call. Keep all other query parameters unchanged. |
| recurrence | any | RFC5545 recurrence rules for a recurring Focus Time series, e.g. ["RRULE:FREQ=WEEKLY;COUNT=10"]. |
| service * | any | |
| start_time | string | Start date/time. Use 'YYYY-MM-DD' for full-day or RFC3339 for partial-day (e.g., '2024-04-05T09:00:00Z'). Date-only values are auto-converted to dateTime (midnight-to-midnight). Required for create. |
| summary | string | Display text on the calendar. Defaults to "Focus Time". |
| time_max | string | For "list" action: end of time range. |
| time_min | string | For "list" action: start of time range. Defaults to current time. Recurring series are expanded into individual instances in the requested range. |
| timezone | string | Timezone for the event (e.g., "America/New_York", "Europe/London"). Required when using date-only values or dateTime values without an explicit UTC offset. |
| user_google_email * | string | The user's Google email address. Required. |
manage_gmail_filterManages Gmail filters: create, delete, update, and apply to existing mail.| Parameter | Type | Description |
|---|---|---|
| action * | string | "create", "delete", "update" or "apply". |
| criteria | any | Filter criteria object (required for create; optional for update/apply). |
| dry_run | boolean | apply only: count matches without changing anything. |
| filter_action | any | Filter action object (required for create; optional for update/apply). Named 'filter_action' to avoid shadowing the 'action' parameter. |
| filter_id | string | ID of the filter (required for delete and update; optional for apply). |
| max_messages | integer | apply only: safety cap on messages changed (default 5000). |
| service * | any | |
| user_google_email * | string | The user's Google email address. Required. |
manage_gmail_labelManages Gmail labels: create, update, or delete labels.| Parameter | Type | Description |
|---|---|---|
| action * | string | Action to perform on the label. |
| background_color | string | Label background color as a hex string, e.g. "#fb4c2f". Set together with text_color; Gmail requires both. Gmail accepts only its own palette, and an unsupported value is rejected before the request. Colors apply to user labels, not system labels. |
| clear_color | boolean | On update, remove the label's current color. Cannot be combined with background_color or text_color. |
| label_id | string | Label ID. Required for update and delete operations. |
| label_list_visibility | any | Whether the label is shown in the label list. Defaults to "labelShow" on create. On update, omitting it keeps the label's current setting. |
| message_list_visibility | string | Whether the label's messages are shown in the message list. Defaults to "show" on create. On update, omitting it keeps the label's current setting. |
| name | string | Label name. Required for create, optional for update. |
| service * | any | |
| text_color | string | Label text color as a hex string, e.g. "#ffffff". Set together with background_color. Same palette. On update, omitting both keeps the label's current color. |
| user_google_email * | string | The user's Google email address. Required. |
manage_named_rangeManages the lifecycle of named ranges in a Google Sheet: list, create, update, or delete.| Parameter | Type | Description |
|---|---|---|
| action * | string | The operation to perform: "list", "create", "update", or "delete". Required. |
| name | string | Name for the named range (required for "create"; optional identifier for "update"/"delete"). |
| named_range_id | string | The ID of the named range (optional identifier for "update"/"delete"). |
| new_name | string | New name for the named range (used with action="update"). |
| new_range | string | New A1-style range for the named range (used with action="update"). |
| range_name | string | Target cell or range in A1 notation (e.g., "Sheet1!A1:D10", "A1:B5") (required for "create"). |
| service * | any | |
| spreadsheet_id * | string | The ID of the spreadsheet. Required. |
| user_google_email * | string | The user's Google email address. Required. |
manage_out_of_officeManages Out of Office events on Google Calendar. These special events auto-decline| Parameter | Type | Description |
|---|---|---|
| action * | string | Action to perform - "create", "list", "update", or "delete". |
| auto_decline_mode | string | How to handle conflicting invitations. One of: "declineAllConflictingInvitations" (default), "declineOnlyNewConflictingInvitations", "declineNone". |
| calendar_id | string | Calendar ID. Defaults to 'primary'. Out of Office status events live on primary calendars, so use 'primary' or a user's primary calendar ID/email rather than a secondary calendar ID. |
| decline_message | string | Message included when auto-declining invitations. |
| end_time | string | End date/time (exclusive). Same format as start_time. For a single full day on April 5, use start_time='2026-04-05' and end_time='2026-04-06'. Required for create. |
| event_id | string | Event ID. Required for "update" and "delete" actions. |
| max_results | integer | For "list" action: maximum events to return in one page. Defaults to 10. |
| page_token | string | For "list" action: token for the next page, taken from a previous response. Also pass the response's Pagination time_min as time_min, even if omitted on the first call. Keep all other query parameters unchanged. |
| recurrence | any | RFC5545 recurrence rules for a recurring Out of Office series, e.g. ["RRULE:FREQ=WEEKLY;COUNT=10"]. |
| service * | any | |
| start_time | string | Start date/time. Use 'YYYY-MM-DD' for full-day or RFC3339 for partial-day (e.g., '2024-04-05T09:00:00Z'). Date-only values are auto-converted to dateTime (midnight-to-midnight). Required for create. |
| summary | string | Display text on the calendar. Defaults to "Out of Office". |
| time_max | string | For "list" action: end of time range. |
| time_min | string | For "list" action: start of time range. Defaults to current time. Recurring series are expanded into individual instances in the requested range. |
| timezone | string | Timezone for the event (e.g., "America/New_York", "Europe/London"). Required when using date-only values or dateTime values without an explicit UTC offset. |
| user_google_email * | string | The user's Google email address. Required. |
manage_script_contentUpdate the source files of an Apps Script project.| Parameter | Type | Description |
|---|---|---|
| action * | string | "update". |
| files | array | File objects with name, type, and source to create or update (required for update). |
| merge | boolean | When True (default), overlay `files` onto the current project. When False, replace the full project file set (update only). |
| script_id * | string | The script project ID. |
| service * | any | Injected Google API service client |
| user_google_email * | string | User's email address |
manage_script_versionCreate immutable version snapshots of a script project.| Parameter | Type | Description |
|---|---|---|
| action * | string | "create". |
| description | string | Optional description for the new version (create only). |
| script_id * | string | The script project ID. |
| service * | any | Injected Google API service client |
| user_google_email * | string | User's email address |
manage_sheet_tabManages an existing sheet tab: rename, delete, hide, unhide, reorder, or| Parameter | Type | Description |
|---|---|---|
| action * | string | One of "rename", "delete", "hide", "unhide", "reorder", "style" |
| new_index | integer | New zero-based position, required for action="reorder" |
| new_name | string | New title, required for action="rename" |
| service * | any | |
| sheet_name * | string | Title of the existing tab to act on |
| show_gridlines | boolean | For action="style": show (True) or hide (False) the sheet's gridlines |
| spreadsheet_id * | string | ID of the spreadsheet |
| tab_color | string | For action="style": hex tab color (#RRGGBB), or "none" to remove it |
| user_google_email * | string | User's Google email address |
manage_taskManage tasks: create, update, delete, or move tasks within task lists.| Parameter | Type | Description |
|---|---|---|
| action * | string | The action to perform. Must be one of: "create", "update", "delete", "move". |
| destination_task_list | string | Destination task list ID (for moving between lists). Used by "move" action. |
| due | string | Due date in RFC 3339 format (e.g., "2024-12-31T23:59:59Z"). Used by "create" and "update" actions. |
| notes | string | Notes/description for the task. Used by "create" and "update" actions. |
| parent | string | Parent task ID (for subtasks). Used by "create" and "move" actions. |
| previous | string | Previous sibling task ID (for positioning). Used by "create" and "move" actions. |
| service * | any | |
| status | string | Task status ("needsAction" or "completed"). Used by "update" action. |
| task_id | string | The ID of the task. Required for "update", "delete", and "move" actions. |
| task_list_id * | string | The ID of the task list. Required for all actions. |
| title | string | The title of the task. Required for "create", optional for "update". |
| user_google_email * | string | The user's Google email address. Required. |
manage_task_listManage task lists: create, update, delete, or clear completed tasks.| Parameter | Type | Description |
|---|---|---|
| action * | string | The action to perform. Must be one of: "create", "update", "delete", "clear_completed". |
| service * | any | |
| task_list_id | string | The ID of the task list. Required for "update", "delete", and "clear_completed" actions. |
| title | string | The title for the task list. Required for "create" and "update" actions. |
| user_google_email * | string | The user's Google email address. Required. |
modify_doc_textModifies text in a Google Doc - can insert/replace text and/or apply formatting in a single operation.| Parameter | Type | Description |
|---|---|---|
| background_color | string | Background/highlight color (#RRGGBB) |
| baseline_offset | string | One of NONE, SUPERSCRIPT, SUBSCRIPT |
| bold | boolean | Whether to make text bold (True/False/None to leave unchanged) |
| clear_link | boolean | Remove hyperlink from the target range |
| document_id * | string | ID of the document to update |
| end_index | integer | End position for text replacement/formatting (if not provided with text, text is inserted) |
| end_of_segment | boolean | Insert text at the end of the targeted segment instead of start_index |
| font_family | string | Font family name (e.g., "Arial", "Times New Roman") |
| font_size | number | Font size in points |
| font_weight | integer | Font weight (100-900 in steps of 100; requires font_family) |
| heading | string | Text of a body heading (case-insensitive, must match exactly one) whose section to edit instead of start_index/end_index |
| heading_level | integer | Optional 1-6 heading level to narrow the heading match |
| italic | boolean | Whether to make text italic (True/False/None to leave unchanged) |
| link_url | string | Hyperlink URL (http/https) |
| segment_id | string | Optional header/footer/footnote segment ID to target |
| service * | any | |
| small_caps | boolean | Whether to apply small caps |
| start_index | integer | Start position for operation using Docs API indices from inspect_doc_structure. For the main body, 0 is also accepted as an alias for the first writable position. Required unless heading is set. |
| strikethrough | boolean | Whether to strike through text (True/False/None to leave unchanged) |
| tab_id | string | Optional document tab ID to target (required with heading when the doc has multiple tabs) |
| text | string | New text to insert or replace with (optional - can format existing text without changing it). Rendered as Markdown when heading is set. |
| text_color | string | Foreground text color (#RRGGBB) |
| underline | boolean | Whether to underline text (True/False/None to leave unchanged) |
| user_google_email * | string | User's Google email address |
| write_mode | string | "EDIT" (default) applies the change directly; "SUGGEST" records it as a suggested edit that collaborators can accept or reject |
modify_gmail_message_labelsAdds or removes labels from a Gmail message.| Parameter | Type | Description |
|---|---|---|
| add_label_ids | any | List of label IDs to add to the message. |
| message_id * | string | The ID of the message to modify. |
| remove_label_ids | any | List of label IDs to remove from the message. |
| service * | any | |
| user_google_email * | string | The user's Google email address. Required. |
modify_sheet_valuesModifies values in a specific range of a Google Sheet - can write, update, or clear values,| Parameter | Type | Description |
|---|---|---|
| chip_type | string | Explicit chip type if passing raw strings in chips: "drive" (default for URLs/IDs) or "person" (default for emails). |
| chips | any | Smart chip(s) to insert instead of values: - A single URL or email string for a single cell (e.g., "https://drive.google.com/drive/folders/123", "user@example.com"). - A list of URLs or emails for a single cell (multiple chips) or across cells (e.g., ["https://...", "https://..."]). - A 2D list of URLs/emails matching a grid range. For a single-row or single-column range, each inner list is instead the chips for one cell (e.g., [["a@x.com", "b@x.com"]] puts both chips in the first cell of "A1:C1"). - A dict or list of dicts with explicit properties (e.g., {"type": "drive", "uri": "..."}, {"type": "person", "email": "..."}). - A JSON-encoded string representing any of the above formats. |
| clear_values | boolean | If True, clears the range instead of writing values. Defaults to False. |
| file_path | string | Local .csv or .tsv file (UTF-8) whose rows are written instead of values, with value_input_option applied. range_name may be just the top-left cell (e.g., "Sheet1!A2" to load below a header row). Use instead of values, chips, source_range, or clear_values. |
| paste_type | string | What source_range pastes: "PASTE_NORMAL" (values, formulas, formatting), "PASTE_VALUES", "PASTE_FORMAT", "PASTE_NO_BORDERS", "PASTE_FORMULA", "PASTE_DATA_VALIDATION", or "PASTE_CONDITIONAL_FORMATTING". Defaults to "PASTE_NORMAL". |
| range_name * | string | The range to modify (e.g., "Sheet1!A1:D10", "A1:D10"). Required. |
| service * | any | |
| source_range | string | A1 range in the same spreadsheet to copy into range_name, like the UI copy and paste: relative formula references shift and formatting comes along. Both ranges must be A1 notation (not named ranges); one without a sheet name uses the first sheet. range_name may be just the top-left cell (e.g., copy "Sheet1!A29:AO29" to "Sheet1!A30"). Use instead of values, chips, or clear_values. |
| spreadsheet_id * | string | The ID of the spreadsheet. Required. |
| user_google_email * | string | The user's Google email address. Required. |
| value_input_option | string | How to interpret input values ("RAW" or "USER_ENTERED"). Defaults to "USER_ENTERED". |
| values | any | 2D array of values to write/update. Can be a JSON string or Python list. Required unless clear_values=True or chips or source_range is provided. |
move_sheet_rowsMoves rows from one sheet to another within the same spreadsheet. The move| Parameter | Type | Description |
|---|---|---|
| destination_sheet * | string | Name of the sheet to move rows to. Required. |
| end_row * | integer | Last row to move (1-based, inclusive). Required. |
| service * | any | |
| source_sheet * | string | Name of the sheet to move rows from. Required. |
| spreadsheet_id * | string | The ID of the spreadsheet. Required. |
| start_row * | integer | First row to move (1-based, inclusive). Required. |
| user_google_email * | string | The user's Google email address. Required. |
query_freebusyReturns free/busy information for a set of calendars.| Parameter | Type | Description |
|---|---|---|
| calendar_expansion_max | integer | Maximum number of calendars for which FreeBusy information is to be provided. Optional. Maximum value is 50. |
| calendar_ids | any | List 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_max | integer | Maximum 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. |
| service * | any | |
| time_max * | string | The end of the interval for the query in RFC3339 format (e.g., '2024-05-12T18:00:00Z' or '2024-05-12'). |
| time_min * | string | The start of the interval for the query in RFC3339 format (e.g., '2024-05-12T10:00:00Z' or '2024-05-12'). |
| user_google_email * | string | The user's Google email address. Required. |
read_sheet_valuesReads values from a specific range in a Google Sheet, one line per row:| Parameter | Type | Description |
|---|---|---|
| include_formulas | boolean | If True, also fetch raw formula strings for cells that contain formulas. Useful for identifying cross-sheet references before writing back to a range. Defaults to False to avoid an extra API request. |
| include_hyperlinks | boolean | If True, also fetch hyperlink metadata for the range. Defaults to False to avoid expensive includeGridData requests. |
| include_notes | boolean | If True, also fetch cell notes for the range. Defaults to False to avoid expensive includeGridData requests. |
| include_smart_chips | boolean | If True, also fetch smart chips metadata (Drive files/folders and People chips) for the range. Defaults to False to avoid expensive includeGridData requests. |
| include_validation | boolean | If True, also fetch data validation rules (dropdowns, checkboxes, ranges, custom formulas) for the range. Defaults to False to avoid expensive includeGridData requests. |
| range_name | string | The range to read (e.g., "Sheet1!A1:D10", "A1:D10"). Defaults to "A1:Z1000". Open-ended or oversized ranges are clamped to at most 1000 rows before the Sheets API request to bound memory use. |
| service * | any | |
| spreadsheet_id * | string | The ID of the spreadsheet. Required. |
| user_google_email * | string | The user's Google email address. Required. |
render_page_to_imageRender a slide (or any page, including notes pages) to an image and return it as image content, for looking at a slide's layout and visuals.| Parameter | Type | Description |
|---|---|---|
| page_object_id * | string | The object ID of the page/slide to render. |
| presentation_id * | string | The ID of the presentation. |
| service * | any | |
| size | string | Image width. One of "SMALL" (200px), "MEDIUM" (800px), "LARGE" (1600px) or "WIDTH2000_PX" (2000px). Defaults to "MEDIUM". Start at MEDIUM: it reads titles and body text. Use LARGE for small text such as tables, chart labels and footnotes. WIDTH2000_PX rarely reads more than LARGE. SMALL shows layout only; its text is unreadable. Token cost and the resolution the model sees depend on the model: Claude models with high-resolution vision read MEDIUM at ~460 image tokens, LARGE at ~1,850 and WIDTH2000_PX at ~2,900, while other models may downscale LARGE and WIDTH2000_PX and count tokens differently. |
| user_google_email * | string | The user's Google email address. Required. |
resize_sheet_dimensionsManages sheet-level dimension properties: resize columns/rows, auto-resize| Parameter | Type | Description |
|---|---|---|
| auto_resize_columns | any | List of column letters to auto-resize to fit content. Example: ["A", "B"]. |
| auto_resize_rows | any | List of 1-based row numbers to auto-resize to fit content. Example: [1, 2]. |
| column_sizes | any | Dict mapping column letters to pixel widths. Example: {"A": 200, "C": 300}. Can be a JSON string or Python dict. |
| delete_columns | any | List of column letters to delete. Example: ["E", "F"]. |
| delete_row_range | string | Contiguous range of rows to delete, as "start:end" (1-based, inclusive). Example: "5:10" deletes rows 5 through 10. More efficient than delete_rows for large contiguous ranges. |
| delete_rows | any | List of 1-based row numbers to delete. Example: [5, 6]. Best for non-contiguous rows. |
| frozen_column_count | integer | Number of columns to freeze from the left. Use 0 to unfreeze all columns. |
| frozen_row_count | integer | Number of rows to freeze from the top. Use 0 to unfreeze all rows. |
| hide_columns | any | List of column letters to hide. Example: ["C", "D"]. |
| hide_rows | any | List of 1-based row numbers to hide. Example: [3, 4]. |
| insert_columns | integer | Number of columns to insert. |
| insert_columns_at | string | Column letter to insert before (e.g. "C"). Appends to the end if omitted. |
| insert_rows | integer | Number of rows to insert. |
| insert_rows_at | integer | 1-based row number to insert before. Appends to the end of the sheet if omitted. |
| row_sizes | any | Dict mapping 1-based row numbers to pixel heights. Example: {"1": 40, "3": 60}. Can be a JSON string or Python dict. |
| service * | any | |
| sheet_name | string | Sheet name to target. Defaults to the first sheet if not provided. |
| spreadsheet_id * | string | The ID of the spreadsheet. Required. |
| unhide_columns | any | List of column letters to unhide. Example: ["C", "D"]. |
| unhide_rows | any | List of 1-based row numbers to unhide. Example: [3, 4]. |
| user_google_email * | string | The user's Google email address. Required. |
run_script_functionExecutes a function in a deployed script.| Parameter | Type | Description |
|---|---|---|
| deployment_id | string | Optional API Executable deployment ID. When supplied, skips the automatic deployment lookup. When omitted, the versioned API Executable deployment with the highest version number is used. |
| dev_mode | boolean | Whether to run latest code vs deployed version |
| function_name * | string | Name of function to execute |
| parameters | any | Optional list of parameters to pass |
| script_id * | string | The script project ID |
| service * | any | Injected Google API service client |
| user_google_email * | string | User's email address |
search_contactsSearch contacts by name, email, phone number, or other fields.| Parameter | Type | Description |
|---|---|---|
| page_size | integer | Maximum number of results to return (default: 30, max: 30). |
| query * | string | Search query string (searches names, emails, phone numbers). |
| service * | any | |
| source | string | "saved" (default) or "other" for people you've emailed but never saved (Gmail's "Other contacts"). |
| user_google_email * | string | The user's Google email address. Required. |
search_customPerforms a search using Google Custom Search JSON API.| Parameter | Type | Description |
|---|---|---|
| country | string | Country code for results (e.g., "countryUS"). |
| date_restrict | string | Restrict results by date (e.g., "d5" for past 5 days, "m3" for past 3 months). |
| file_type | string | Filter by file type (e.g., "pdf", "doc"). |
| language | string | Language code for results (e.g., "lang_en"). |
| num | integer | Number of results to return (1-10). Defaults to 10. |
| q * | string | The search query. Required. |
| safe | string | Safe search level. Defaults to "off". |
| search_type | string | Search for images if set to "image". |
| service * | any | |
| site_search | string | Restrict search to a specific site/domain. |
| site_search_filter | string | Exclude ("e") or include ("i") site_search results. |
| sites | any | List of sites/domains to restrict search to (e.g., ["example.com", "docs.example.com"]). When provided, results are limited to these sites. |
| start | integer | The index of the first result to return (1-based). Defaults to 1. |
| user_google_email * | string | The user's Google email address. Required. |
search_docsSearches for Google Docs by name using Drive API (mimeType filter).| Parameter | Type | Description |
|---|---|---|
| corpora | string | Corpus to search ('user', 'domain', 'drive', 'allDrives'). Defaults to 'drive' when drive_id is set, otherwise 'allDrives'. |
| drive_id | string | Optional shared drive ID to search. |
| page_size | integer | Maximum number of documents to return. Defaults to 10. |
| page_token | string | Page token from a previous response's nextPageToken to retrieve the next page of results. |
| query * | string | Text to search for in document names. |
| service * | any | |
| user_google_email * | string | The user's Google email address. |
search_drive_filesSearches for files and folders within a user's Google Drive, including shared drives.| Parameter | Type | Description |
|---|---|---|
| corpora | string | Bodies of items to query (e.g., 'user', 'domain', 'drive', 'allDrives'). If 'drive_id' is specified and 'corpora' is None, it defaults to 'drive'. Otherwise it defaults to 'allDrives' when `include_items_from_all_drives` is True. Pass 'user' to search only My Drive and files shared with the user. |
| detailed | boolean | Whether to include size, modified time, and link in results. Defaults to True. |
| drive_id | string | ID of the shared drive to search. If None, behavior depends on `corpora` and `include_items_from_all_drives`. |
| file_type | string | Restrict results to a specific file type. Accepts a friendly name ('folder', 'document'/'doc', 'spreadsheet'/'sheet', 'presentation'/'slides', 'form', 'drawing', 'pdf', 'shortcut', 'script', 'site', 'jam'/'jamboard') or any raw MIME type string (e.g. 'application/pdf'). Defaults to None (all types). |
| include_items_from_all_drives | boolean | Whether shared drive items should be included in results. Defaults to True. This is effective when not specifying a `drive_id`. |
| include_trashed | boolean | Whether to include files in the trash. Defaults to False, matching the Drive web UI and `list_drive_items`. Ignored when `query` already contains its own `trashed` clause (`=` or `!=`), which always wins. |
| order_by | string | Sort order. Comma-separated list of sort keys with optional 'desc' modifier. Valid keys: 'createdTime', 'folder', 'modifiedByMeTime', 'modifiedTime', 'name', 'name_natural', 'quotaBytesUsed', 'recency', 'sharedWithMeTime', 'starred', 'viewedByMeTime'. Example: 'modifiedTime desc' or 'folder,modifiedTime desc,name'. Defaults to None (Drive API default ordering). |
| page_size | integer | The maximum number of files to return. Defaults to 10. |
| page_token | string | Page token from a previous response's nextPageToken to retrieve the next page of results. |
| query * | string | The search query string. Supports Google Drive search operators. NOTE: Owner-based queries ('user@example.com' in owners) DO NOT WORK in Shared Drives because files are owned by the shared drive itself, not individual users. For recent files by a specific user in Shared Drives, search by modifiedTime and use order_by='modifiedTime desc' instead. |
| service * | any | |
| user_google_email * | string | The user's Google email address. Required. |
search_gmail_messagesSearches messages in a user's Gmail account based on a query.| Parameter | Type | Description |
|---|---|---|
| include_headers | boolean | If True, also fetch each message's metadata and include Subject, From, Date and label IDs (e.g. DRAFT, SENT) per result. Costs one metadata get per result, grouped into HTTP batches of up to 10, plus retries for transient failures. Defaults to False (output unchanged from prior versions). |
| page_size | integer | The maximum number of messages to return. Defaults to 10. |
| page_token | string | Token for retrieving the next page of results. Use the next_page_token from a previous response. |
| query * | string | The search query. Supports standard Gmail search operators. Results include drafts unless the query excludes them (e.g. in:sent or -in:drafts). |
| service * | any | |
| user_google_email * | string | The user's Google email address. Required. |
send_gmail_message| Parameter | Type | Description |
|---|---|---|
| attachments | any | Optional list of attachments. Each can have: "url" (fetch from URL — works with MCP attachment URLs from get_drive_file_download_url / get_gmail_attachment_content), OR "path" (file path, auto-encodes), OR "content" (standard base64, not urlsafe) + "filename". Optional "mime_type". Optional "content_id" (string) makes the attachment inline-rendered: it lands in a multipart/related part with `Content-ID: <content_id>` and `Content-Disposition: inline`, and the HTML body can reference it via `<img src="cid:<content_id>">` (RFC 2392). Without `content_id` the attachment is a regular multipart/mixed attachment. Example: [{"url": "https://host/attachments/abc-123", "filename": "report.pdf"}] |
| bcc | string | Optional BCC email address. |
| body | string | Email body content (plain text or HTML). Required when sending. When forwarding, this is an optional note prepended above the quoted original. |
| body_format | string | Format of the body content (and of the prepended note when forwarding). Use 'plain' for plaintext or 'html' for HTML content. With 'html', write real markup; an entity-escaped body ('<div>') is rejected. |
| cc | string | Optional CC email address. |
| direction | any | |
| forward_message_id | string | Set to a Gmail message ID to forward that message instead of composing a new one. The original subject, body, and (optionally) attachments are carried over; 'body' becomes an optional note prepended to the forward. |
| from_email | string | Optional '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. |
| from_name | string | Optional sender display name (e.g., 'Peter Hartree'). If provided, the From header will be formatted as 'Name <email>'. |
| in_reply_to | string | Optional RFC Message-ID to explicitly reply to a specific message (e.g., '<message123@gmail.com>'). Omit to reply to the latest eligible message in thread_id. |
| include_forwarded_attachments | boolean | When forwarding, whether to include the original message's attachments. Ignored unless forward_message_id is set. |
| include_signature | boolean | Whether to append the Gmail signature from Settings > Signature when available. Defaults to true. |
| priority | any | 'high' or 'low' adds priority headers. Defaults to 'normal'. |
| quote_original | boolean | Whether to include the message being replied to as a quoted original, as Gmail web does. Only has an effect when thread_id is provided. Defaults to false; pass true on replies whose recipients should see the earlier message. |
| references | string | Optional Message-ID ancestry chain. Normally omit when thread_id is provided; the server derives the chain through the selected reply target. |
| reply_all | boolean | Whether to derive reply-all recipients from the thread: To = the sender being replied to, Cc = the other participants, excluding the authenticated account and from_email. Requires thread_id. Explicit to/cc win; when cc is omitted the sender being replied to is added to the derived Cc if they are not already in To. Defaults to false. |
| service * | any | |
| subject | string | Email subject. Required for a new message. Optional when replying with thread_id (inherits the parent message's subject, adding 'Re:' only if absent) or when forwarding (defaults to 'Fwd: <original subject>'). |
| thread_id | string | Optional Gmail thread ID to reply within. When in_reply_to is omitted, replies to the latest non-draft, non-trash message with an RFC Message-ID. |
| to | string | Recipient email address. Optional when replying with reply_all=True, which derives it from the thread. |
| user_google_email * | string | The user's Google email address. Required for authentication. |
send_messageSends a message to a Google Chat space, or edits a message already sent there.| Parameter | Type | Description |
|---|---|---|
| message_name | string | Edit this message in place instead of sending a new one (e.g. spaces/X/messages/Y, as returned by send_message or get_messages). Must be a message of space_id. Only the text is replaced, and only the author can edit their own message. |
| message_text * | string | |
| service * | any | |
| space_id * | string | |
| thread_key | string | Reply in a thread by app-defined key (creates thread if not found). |
| thread_name | string | Reply in an existing thread by its resource name (e.g. spaces/X/threads/Y). |
| user_google_email * | string |
set_publish_settingsUpdates the publish settings of a form.| Parameter | Type | Description |
|---|---|---|
| form_id * | string | The ID of the form to update publish settings for. |
| is_accepting_responses | boolean | Whether the form accepts responses. Only takes effect when the form is published. Defaults to True. |
| is_published | boolean | Whether the form is published and visible to responders. Defaults to True. |
| service * | any | |
| user_google_email * | string | The user's Google email address. Required. |
start_google_authManually initiate Google OAuth authentication flow.| Parameter | Type | Description |
|---|---|---|
| service_name * | string | |
| user_google_email | string |
update_doc_headers_footersSafely creates or updates header/footer text in a Google Doc.| Parameter | Type | Description |
|---|---|---|
| content * | string | Text content for the header/footer |
| document_id * | string | ID of the document to update |
| header_footer_type | string | Type of header/footer ("DEFAULT", "FIRST_PAGE_ONLY", "EVEN_PAGE") |
| section_type * | string | Type of section to create or update ("header" or "footer") |
| service * | any | |
| user_google_email * | string | User's Google email address |
update_drive_fileUpdates metadata, properties, and/or content of a Google Drive file.| Parameter | Type | Description |
|---|---|---|
| copy_requires_writer_permission | boolean | Whether copying requires writer permission. Pass the target ID directly; this cannot be changed on a shortcut resource. |
| description | string | New description for the file. |
| file_id * | string | The ID of the file to update. Required. |
| mime_type | string | New MIME type (note: changing type may require content upload). For a shortcut ID, this must accompany content and applies to the resolved target. |
| service * | any | |
| trashed | boolean | Whether to move file to/from trash. |
| user_google_email * | string | The user's Google email address. Required. |
update_paragraph_styleApply paragraph-level formatting, heading styles, and/or list formatting to a range in a Google Doc.| Parameter | Type | Description |
|---|---|---|
| alignment | string | Text alignment - 'START' (left), 'CENTER', 'END' (right), or 'JUSTIFIED' |
| avoid_widow_and_orphan | boolean | Avoid widows/orphans for the paragraph |
| border_color | string | Border color (#RRGGBB; defaults to black) |
| border_dash | string | Border dash style ('SOLID', 'DOT', or 'DASH'; defaults to 'SOLID') |
| border_edges | array | Paragraph border edges to update ('top', 'bottom', 'left', 'right', or 'between'); omit to update all four outer edges |
| border_padding | number | Border padding in points (defaults to 4) |
| border_width | number | Border width in points (defaults to 1) |
| bullet_preset | string | Optional explicit Google Docs bullet preset |
| direction | string | Paragraph direction - 'LEFT_TO_RIGHT' or 'RIGHT_TO_LEFT' |
| document_id * | string | Document ID to modify |
| end_index * | integer | End position (exclusive) - should cover the entire paragraph |
| heading_level | integer | Heading level 0-6 (0 = NORMAL_TEXT, 1 = H1, 2 = H2, etc.) Use for semantic document structure |
| indent_end | number | Right/end indent in points |
| indent_first_line | number | First line indent in points (e.g., 36 for 0.5 inch) |
| indent_start | number | Left/start indent in points |
| keep_lines_together | boolean | Keep all lines of the paragraph together |
| keep_with_next | boolean | Keep the paragraph with the next paragraph |
| line_spacing | number | Line spacing multiplier (1.0 = single, 1.5 = 1.5x, 2.0 = double) |
| list_nesting_level | integer | Nesting level for lists (0-8, where 0 is top level, default is 0) Use higher levels for nested/indented list items |
| list_type | string | Create a list from existing paragraphs ('UNORDERED' for bullets, 'ORDERED' for numbers, 'CHECKBOX' for checklists), or 'NONE' to remove existing list formatting from the range. Use 'NONE' when text inserted after a list has inherited its bullets: setting named_style_type or heading_level does not clear list membership, only 'NONE' does. |
| named_style_type | string | Direct named style type - 'NORMAL_TEXT', 'TITLE', 'SUBTITLE', 'HEADING_1' through 'HEADING_6'. Mutually exclusive with heading_level. |
| page_break_before | boolean | Start the paragraph on a new page |
| segment_id | string | Optional header/footer/footnote segment ID to target |
| service * | any | |
| shading_color | string | Paragraph shading/background color (#RRGGBB) |
| space_above | number | Space above paragraph in points (e.g., 12 for one line) |
| space_below | number | Space below paragraph in points |
| spacing_mode | string | 'NEVER_COLLAPSE' or 'COLLAPSE_LISTS' |
| start_index * | integer | Start position using Docs API indices from inspect_doc_structure. For the main body, 0 is also accepted as an alias for the first writable position. |
| tab_id | string | Optional document tab ID to target |
| user_google_email * | string | User's Google email address |
Security checks
- ✓README presentThe repository's README runs to about 2.4K words.
- ✓License declaredThe repository declares the MIT license.
- ✓Tests presentA test suite exists in the repository.
- ✓Dependencies pinnedA lockfile pins dependency versions.
- ✓No dynamic code executionScanned 94 source files and found no eval, dynamic Function or shell execution.
- !Scoped permissionsDoesn't declare a permission scope. Assume it can do anything its process can.
Releases
README
The repository's README runs to about 2.4K words, fetched 14 days ago. The original in the repository is authoritative.
Read full README