Google Docs
AllMCP gives your agent full control of Google Docs: create and read documents (including every tab), edit and format text, build tables, lists, images, headers and footnotes, manage sharing, and export to Markdown, PDF, or Word.
All providers How connecting worksPoint your client at AllMCP
Section titled “Point your client at AllMCP”Connect your MCP client to the AllMCP endpoint and authenticate with your API key.
https://go.allmcp.co/mcp/Send your key on every request using either header:
X-API-Key: allmcp_xxxAuthorization: Bearer allmcp_xxxIf you run agents for more than one of your own customers, add ?user_id=... (and optionally ?org_id=...) to the endpoint URL so each customer’s Google connection stays separate.
Connect
Section titled “Connect”Google Docs uses OAuth2, so there are no tokens to copy by hand.
-
Ask your agent to connect Google Docs
Tell your agent to connect the
google_docsprovider. It returns a secure Google sign-in link. -
Grant access in your browser
Open the link, sign in to Google, and approve the requested access. That is the only manual step.
Tools by category
Section titled “Tools by category”Once you are connected, your agent can use the Google Docs tools below.
Find documents in Drive and manage their lifecycle.
| Tool | Description |
|---|---|
google_docs_list_files | Lists the Google Docs files you have access to in Google Drive. Supports name search and pagination. |
google_docs_get_file_metadata | Returns Drive-level metadata for one document: name, owner, timestamps, and share link. |
google_docs_copy_document | Duplicates a whole document into a new, independent file — the usual way to instantiate a template. |
google_docs_rename_document | Renames a document. |
google_docs_move_document | Moves a document into a different Drive folder. |
google_docs_trash_document | Moves a document to the trash. Recoverable. |
google_docs_untrash_document | Restores a document from the trash. |
google_docs_delete_document | Permanently deletes a document, bypassing the trash. Requires an explicit confirmation flag. |
Documents
Section titled “Documents”Create documents and read their content.
| Tool | Description |
|---|---|
google_docs_create_document | Creates a new document, optionally with starting text. |
google_docs_get_document | Reads a document and returns its title, full text, word count, revision ID, and tab list. Reads every tab by default, and can include headers, footers, and footnotes, a compact outline of element indexes for editing, or the raw element tree. |
google_docs_export_as_text | Exports a document as plain text via the Drive export endpoint. |
Export
Section titled “Export”Export a document to any format Google supports.
| Tool | Description |
|---|---|
google_docs_export_document | Exports a document as Markdown, plain text, PDF, DOCX, ODT, RTF, EPUB, or a zipped web page. Markdown preserves headings, lists, links, and tables. |
Sharing
Section titled “Sharing”Grant, audit, and revoke access.
| Tool | Description |
|---|---|
google_docs_list_permissions | Lists everyone who has access to a document. |
google_docs_get_permission | Returns one permission’s details by ID. |
google_docs_share_document | Shares a document with a person, group, domain, or by public link. |
google_docs_update_permission | Changes the role on an existing grant. |
google_docs_remove_permission | Revokes an existing grant. |
Write and edit document content.
| Tool | Description |
|---|---|
google_docs_insert_text | Inserts text at a position, or appends it to the end. |
google_docs_delete_content_range | Deletes a range of content. |
google_docs_replace_all_text | Finds and replaces every occurrence of a string. Supports case sensitivity and regular expressions. |
google_docs_insert_page_break | Inserts a page break. |
google_docs_insert_section_break | Inserts a section break, which is what makes per-section margins and multi-column layouts possible. |
Styling
Section titled “Styling”Format text, paragraphs, and pages.
| Tool | Description |
|---|---|
google_docs_update_text_style | Sets bold, italic, underline, strikethrough, small caps, font, size, colors, links, and superscript on a range. |
google_docs_update_paragraph_style | Sets heading level, alignment, line spacing, indents, spacing, and shading on paragraphs. |
google_docs_update_named_style | Redefines a built-in style such as HEADING_1 across the whole document. |
google_docs_update_document_style | Sets page margins, page size, orientation, background, and page numbering. |
google_docs_update_section_style | Sets a section’s columns, margins, and text direction. |
Bulleted, numbered, and checkbox lists.
| Tool | Description |
|---|---|
google_docs_create_paragraph_bullets | Turns paragraphs into list items using any Google bullet or numbering preset. |
google_docs_delete_paragraph_bullets | Removes list formatting while keeping the text. |
Tables
Section titled “Tables”Build and edit tables.
| Tool | Description |
|---|---|
google_docs_insert_table | Inserts an empty table of a given size. |
google_docs_insert_table_row | Inserts a row above or below a reference row. |
google_docs_insert_table_column | Inserts a column left or right of a reference column. |
google_docs_delete_table_row | Deletes a table row and its content. |
google_docs_delete_table_column | Deletes a table column and its content. |
google_docs_merge_table_cells | Merges a rectangular block of cells into one. |
google_docs_unmerge_table_cells | Splits merged cells back apart. |
google_docs_update_table_cell_style | Sets cell background, alignment, padding, and borders. |
google_docs_update_table_row_style | Sets row height, header flag, and page-break behaviour. |
google_docs_update_table_column_properties | Sets column widths, evenly distributed or fixed. |
google_docs_pin_table_header_rows | Repeats the first rows of a table at the top of every page it spans. |
Images
Section titled “Images”Insert and replace document images.
| Tool | Description |
|---|---|
google_docs_insert_inline_image | Inserts an image from a publicly reachable URL into the text flow. |
google_docs_replace_image | Swaps an existing image’s content in place, keeping its ID, size, and position. |
google_docs_delete_positioned_object | Deletes a floating (positioned) object. |
Named ranges
Section titled “Named ranges”Name spans of a document and rewrite them without indexes.
| Tool | Description |
|---|---|
google_docs_create_named_range | Names a span of the document so it can be addressed later by name. |
google_docs_delete_named_range | Deletes a named range. The document text is untouched. |
google_docs_replace_named_range_content | Rewrites a named range’s content — the reliable way to fill template placeholders. |
Structure
Section titled “Structure”Headers, footers, and footnotes.
| Tool | Description |
|---|---|
google_docs_create_header | Creates a page header and returns its segment ID. |
google_docs_delete_header | Deletes a header and its content. |
google_docs_create_footer | Creates a page footer and returns its segment ID. |
google_docs_delete_footer | Deletes a footer and its content. |
google_docs_create_footnote | Inserts a footnote reference and returns the footnote’s segment ID. |
Manage a document’s tabs.
| Tool | Description |
|---|---|
google_docs_list_tabs | Lists every tab with its ID, title, and position. |
google_docs_add_document_tab | Adds a new tab, optionally nested under another. |
google_docs_delete_tab | Deletes a tab, its content, and every tab nested under it. Requires an explicit confirmation flag. |
google_docs_update_document_tab_properties | Renames a tab or moves it among its siblings. |
Smart chips.
| Tool | Description |
|---|---|
google_docs_insert_person | Inserts a person smart chip that shows a live profile. |
google_docs_insert_rich_link | Inserts a smart chip that shows a linked file’s live title and icon. |
google_docs_insert_date | Inserts a date chip that renders in each reader’s locale. |
The escape hatch.
| Tool | Description |
|---|---|
google_docs_batch_update | Sends any combination of Google’s 40 batchUpdate request types as one atomic edit, with optional revision-guarded writes. |
Common workflows
Section titled “Common workflows”Just describe what you want in plain language — your agent picks the right tools.
Read the Google Doc at https://docs.google.com/document/d/1BxiMVs0.../editCreate a Google Doc called "Q3 Partner Briefing" with an Overview heading, then add a section summarizing our partner numbersIn the SOW doc, replace every mention of "Acme Corp" with "Acme Holdings B.V."Copy the SOW template, name it "SOW — Northwind Traders", and fill in the customer name and start dateTurn the section titles in this doc into Heading 2s and switch the page to landscapeAdd a 3-column pricing table to the proposal with Team, Business, and Enterprise tiersShare this doc with marina@example.com as a commenter and tell me who else has accessExport the Google Doc at https://docs.google.com/document/d/1BxiMVs0.../edit as a PDF