Skip to main content
Glama

Docs Append Document Text

docs_append_document_text

Append plain, unformatted text to the end of a Google Docs document to add new content without editing existing text.

Instructions

Append plain, unformatted text to the end of a Google Docs document. The document_id comes from drive_list_files, search_workspace or docs_create_document; to change existing text use docs_replace_document_text, and for formatting or inserts at a position use docs_batch_update_document (extended tool tier). Returns status 'ok', document_id and revision_id, the document's revision after the append.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "document_id": "<document_id>",
      "text": "<text>"
    },
    "name": "docs_append_document_text"
  }
}

Input Schema

NameRequiredDescriptionDefault
textYesPlain text inserted at the end of the body exactly as given; no newline is added, so start it with a newline to begin a new paragraph.
document_idYesGoogle Docs document ID: the Drive file ID, also the long ID in the document's URL.

Output Schema

NameRequiredDescriptionDefault
statusNoMachine-readable operation status.
document_idNo
revision_idNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv2.2.0

TDQS

A4.7/5.0
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations already declare readOnlyHint=false, destructiveHint=false and idempotentHint=false, so the safety profile is covered. The description adds real context beyond that: the append is plain-text only with no formatting interpretation, and the response carries status/document_id/revision_id. It stops short of stating that repeated calls append again (the practical consequence of non-idempotence) or any auth requirements.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Three tight sentences, front-loaded with the action, then id/filter routing, then return shape. Every clause carries routing or contract information with no filler. The return-value sentence is mildly redundant given an output schema exists, but it is short and confirms the revision field.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a two-parameter, fully documented append tool with an output schema and annotations, nothing an agent needs is missing: what it does, when to prefer it, where the ID comes from, and what comes back. Complexity is low, and the description matches it.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so baseline would be 3. The description adds provenance for document_id (drive_list_files, search_workspace, docs_create_document) that the schema does not provide, though the no-newline behavior of 'text' largely restates the schema's own parameter description.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The first sentence gives a specific verb ('Append'), a specific resource ('Google Docs document'), and a scope constraint ('plain, unformatted text' at 'the end'), which immediately separates it from docs_replace_document_text and docs_batch_update_document.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

It names both alternatives and the exact condition that selects each: docs_replace_document_text 'to change existing text' and docs_batch_update_document 'for formatting or inserts at a position'. It also tells the agent where the document_id comes from, removing the main pre-call ambiguity.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Deploy Server

Other Tools