Skip to main content
Glama

docs_insert_before

Insert a new paragraph before a specified text anchor in a Google Doc, enabling precise placement without rewriting the entire document.

Instructions

Insert a new paragraph immediately before the paragraph containing anchor.

The anchor is matched case-insensitively as a substring of the paragraph.

Rich formatting is ON by default. Set rich=False to insert literal text.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
richNoIf True (default), interpret simple markdown-like formatting natively
textYesText to insert as the new paragraph
anchorYesText to search for to find the target paragraph
doc_idYesGoogle Doc ID

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections. Dates show when Glama detected each change.

  1. First observedv0.2.0

TDQS

A4.4/5.0
Behavior4/5

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

With no annotations, the description takes on the burden of behavior and does so well: it discloses case-insensitive substring matching, the default rich formatting behavior, and how to opt into literal text with rich=False. It does not specify behavior when multiple paragraphs contain the anchor or when no match is found, which is a minor but real gap.

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 short sentences, each earning its place: the operation, the matching rule, and the formatting default. There is no fluff or repetition of schema fields.

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?

The essential invocation details are covered, and since an output schema exists, return values need no explanation. The only missing context is edge-case behavior for unmatched or multiple matching anchors, which an agent would benefit from knowing.

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?

The schema already covers 100% of parameters, so the baseline is 3. The description adds useful meaning beyond the schema by explaining how `anchor` is matched (case-insensitive substring) and what `rich` controls (formatting mode and the default).

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 description opens with a specific verb-resource pair: 'Insert a new paragraph immediately before the paragraph containing `anchor`.' This states both the operation and its placement, and the word 'before' differentiates it from siblings like docs_insert_after and docs_append.

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

Usage Guidelines4/5

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

The placement constraint 'immediately before the paragraph containing anchor' clearly tells an agent when this tool is appropriate, and the substring matching rule sets expectations about how the target is located. It does not explicitly name alternatives such as docs_insert_after, so it stops short of a full when-to-use/when-not-to-use statement.

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

Latest Blog Posts

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/dbuxton/google-docs-mcp'

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