Skip to main content
Glama

appendText

Append plain text to the end of a Google Doc, adding a newline when needed. Use it to add unformatted content without rewriting existing text.

Instructions

Appends plain text to the end of a document. For formatted content, use appendMarkdown instead. To edit existing content, use modifyText (single-location) or replaceDocumentWithMarkdown (section/full rewrite). Appended text carries the document's default text color explicitly, when the document defines one.

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": {
      "documentId": "<documentId>"
    },
    "name": "appendText"
  }
}

Input Schema

NameRequiredDescriptionDefault
textNoThe plain text to append to the end of the document. For content longer than ~2000 characters, prefer writing to a local file first and passing filePath instead.
tabIdNoThe ID of the specific tab to append to. If not specified, appends to the first tab (or legacy document.body for documents without tabs).
filePathNoPath to a local text file to use as content. Takes precedence over the text parameter.
documentIdYesThe document ID — the long string between /d/ and /edit in a Google Docs URL.
readHandleNoCapability returned by a previous readDocument call for this document (and tab). Required over HTTP on the 2026-07-28 runtime: it authorizes the write and pins it to the revision that read saw. Omit it on stdio to use that connection's most recent read.
addNewlineIfNeededNoAutomatically add a newline before the appended text if the doc doesn't end with one.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv4.0.0-rc.1

TDQS

A4.1/5.0
Behavior3/5

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

No annotations are provided, so the description carries the full behavioral burden. It does add useful context — appended text adopts the document's default text color explicitly when one exists — and implies an additive, non-destructive write, but it never mentions the read authorization requirement (readHandle), revision pinning failures, or permission needs for a mutation tool. Those gaps matter for an agent deciding whether the call will succeed.

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

Conciseness4/5

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

Three front-loaded sentences: purpose first, alternatives second, one behavioral caveat third. Efficient and well ordered; the final sentence about default text color is slightly awkward but earns its place as the only non-obvious behavior disclosed.

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

Completeness4/5

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

For a six-parameter mutation tool with a fully documented schema, a strong routing sentence, and a behavior caveat, the description is nearly complete. What keeps it from 5 is the absence of any note on write authorization or what happens when the readHandle revision is stale — both material to a mutating tool with no annotations.

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

Parameters3/5

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

Schema description coverage is 100%, so the baseline is 3 and the schema already explains text vs filePath precedence, tabId fallback, and readHandle capability semantics. The description adds no parameter-level detail beyond the color note, so it neither helps nor harms beyond the schema.

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?

States a specific verb and resource ('Appends plain text to the end of a document') and immediately contrasts with appendMarkdown for formatted content. An agent can distinguish it from appendMarkdown, modifyText, and replaceDocumentWithMarkdown without opening any schema.

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?

Explicitly routes the agent: formatted content goes to appendMarkdown, single-location edits to modifyText, section/full rewrites to replaceDocumentWithMarkdown. This is a clean decision tree with named alternatives and the condition that selects each.

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