Skip to main content
Glama

appendMarkdown

Append formatted Markdown content to the end of a Google Doc. Adds headings, lists, tables, links, and text styling, while reporting unsupported elements as warnings.

Instructions

Best for adding new formatted content to the end of a document. Supports headings, bold, italic, strikethrough, links, tables, bullet/numbered lists, and rich markdown HTML extensions for underline, color, highlight, font, alignment, and blockquotes. Does not support markdown images or raw HTML outside those listed extensions; unsupported content is omitted and reported as warnings in the result. Use insertImage for images. Use this instead of appendText when you need formatting. To edit existing content, use modifyText (single-location) or replaceDocumentWithMarkdown (section/full rewrite). Inserted 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": "appendMarkdown"
  }
}

Input Schema

NameRequiredDescriptionDefault
tabIdNoThe ID of the specific tab to append to. If not specified, appends to the first tab.
filePathNoPath to a local markdown file to use as content. Takes precedence over the markdown parameter.
markdownNoThe markdown content to append. For content longer than ~2000 characters, prefer writing to a local file first and passing filePath instead.
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.
addNewlineIfNeededNoAdd spacing before appended content if needed.
firstHeadingAsTitleNoIf true, the first H1 heading (# ...) in the markdown is styled as a Google Docs TITLE instead of Heading 1. Useful when the markdown represents a full document whose first line is the document title.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv4.0.0-rc.1

TDQS

A4.3/5.0
Behavior4/5

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

With no annotations supplied, the description carries the full load and does well: it discloses that unsupported markdown (images, raw HTML outside extensions) is silently omitted and surfaced as warnings, and that appended text gets the document's default color explicitly. It stops short of covering permission/auth requirements or whether the append is atomic, leaving some mutation-risk context to the schema's readHandle note.

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?

Front-loaded with the core purpose and the supported/unsupported formatting list before the sibling routing, so the agent gets the essentials first. It is on the long side at six sentences, and the trailing note about default text color is niche, but nothing is genuinely redundant.

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 seven-parameter write tool with no output schema, the description covers content capabilities, silent-omission behavior with warnings, and sibling routing — enough to call it correctly. The remaining gaps (permissions, revision-pinning semantics) are handled by the readHandle parameter description in the schema.

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 every parameter including readHandle, filePath precedence, and firstHeadingAsTitle is already documented in the schema. The description adds no parameter-level meaning beyond that, which is the expected baseline when the schema does the work.

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 ('adding new formatted content to the end of a document') and immediately delimits it against siblings appendText, modifyText, replaceDocumentWithMarkdown, and insertImage. An agent can pick this tool over the alternatives 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?

Explicit routing: use this instead of appendText when formatting is needed, insertImage for images, modifyText for single-location edits, replaceDocumentWithMarkdown for section/full rewrites. Both when-to-use and when-not-to-use are stated with named alternatives.

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