Skip to main content
Glama

Google Workspace MCP Server

by ZatesloFL

modify_doc_text

Update and format text in Google Docs by inserting, replacing, or applying styles like bold, italic, underline, font size, and font family using specific start and end indexes.

Instructions

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

Args: user_google_email: User's Google email address document_id: ID of the document to update start_index: Start position for operation (0-based) end_index: End position for text replacement/formatting (if not provided with text, text is inserted) text: New text to insert or replace with (optional - can format existing text without changing it) bold: Whether to make text bold (True/False/None to leave unchanged) italic: Whether to make text italic (True/False/None to leave unchanged) underline: Whether to underline text (True/False/None to leave unchanged) font_size: Font size in points font_family: Font family name (e.g., "Arial", "Times New Roman")

Returns: str: Confirmation message with operation details

Input Schema

NameRequiredDescriptionDefault
boldNo
document_idYes
end_indexNo
font_familyNo
font_sizeNo
italicNo
start_indexYes
textNo
underlineNo
user_google_emailYes

Input Schema (JSON Schema)

{ "properties": { "bold": { "default": null, "title": "Bold", "type": "boolean" }, "document_id": { "title": "Document Id", "type": "string" }, "end_index": { "default": null, "title": "End Index", "type": "integer" }, "font_family": { "default": null, "title": "Font Family", "type": "string" }, "font_size": { "default": null, "title": "Font Size", "type": "integer" }, "italic": { "default": null, "title": "Italic", "type": "boolean" }, "start_index": { "title": "Start Index", "type": "integer" }, "text": { "default": null, "title": "Text", "type": "string" }, "underline": { "default": null, "title": "Underline", "type": "boolean" }, "user_google_email": { "title": "User Google Email", "type": "string" } }, "required": [ "user_google_email", "document_id", "start_index" ], "type": "object" }

Other Tools from Google Workspace MCP Server

Related Tools

    MCP directory API

    We provide all the information about MCP servers via our MCP API.

    curl -X GET 'https://glama.ai/api/mcp/v1/servers/ZatesloFL/google_workspace_mcp'

    If you have feedback or need assistance with the MCP directory API, please join our Discord server