Skip to main content
Glama

Insert page break into Google Doc

insert_page_break

Insert a page break at a chosen index in a Google Doc so the following content starts on a new page. Re-read the document afterward since all later indexes shift.

Instructions

Insert a page break at an index of a Google Doc, so the content after it starts on a new page. The index must be inside an existing body paragraph (not inside a table, header, footer or footnote); to break before a paragraph use its startIndex from get_document or find_text. Inserting shifts every later index, so re-read the document with get_document before further index-based edits.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
indexYesA Google Docs index (UTF-16 offset). The body starts at index 1. Get exact indexes from get_document (structure) or find_text.
documentIdYesThe Google Docs document ID (the part between /d/ and /edit in the document URL). A full Google Docs URL is also accepted.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A4.9/5.0
Behavior5/5

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

Annotations only cover the safety profile (readOnly=false, idempotent=false, destructive=false), while the description adds the non-obvious side effect that inserting shifts every later index and mandates a re-read before subsequent edits. That is meaningful behavioral context beyond the structured fields.

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 clauses with zero filler: the action and effect come first, then the validity constraint, then the index-shift caveat. Nothing is repeated from the schema or annotations.

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?

With no output schema needed (the effect is described) and annotations covering the mutation profile, the description supplies the remaining essentials: placement constraints, index sourcing, and the shift side effect. An agent has everything required to call it correctly.

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 the baseline is 3, but the description adds a real constraint not in the schema: the index must fall inside an existing body paragraph and not inside a table/header/footer/footnote. It also points to where valid indexes come from, though it doesn't restate index bounds or documentId handling.

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+resource ('Insert a page break ... of a Google Doc') and immediately describes the effect ('content after it starts on a new page'), which distinguishes it from siblings like insert_text or insert_table.

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?

Gives explicit preconditions (index must be inside an existing body paragraph; not inside table, header, footer or footnote) and routes to the right helpers ('use its startIndex from get_document or find_text'). It also prescribes a required follow-up (re-read with get_document before further index-based edits).

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