Skip to main content
Glama

insert_doc_elements

Insert a table, list, or page break into a Google Doc at a specified position by selecting the element type and index.

Instructions

Insert a table, list, or page break into a Google Doc.

For plain text or inline markdown use modify_doc_text (with format_as_markdown=True for rich output). For images use insert_doc_image. For Drive-file chips use insert_doc_file_chip. Note: index 0 is automatically bumped to 1 (to skip the opening section break). Requires the documents OAuth scope.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
user_google_emailYesThe user's Google email address (authenticated account).
document_idYesTarget document ID.
element_typeYes"table", "list", or "page_break".
indexYes0-based insertion index. Get stable positions from inspect_doc_structure. Index 0 is auto-bumped to 1.
rowsNoRow count for a table. Required when element_type="table".
columnsNoColumn count for a table. Required when element_type="table".
list_typeNo"UNORDERED" (bullets) or "ORDERED" (numbered). Required when element_type="list".
textNoSeed text for a list item. Defaults to "List item" when list_type is set but text is omitted.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior4/5

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

Describes the automatic index bump from 0 to 1 and the OAuth scope requirement. No annotations present, so description bears full burden. Could mention error handling or permission 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?

Concise, well-structured, and front-loaded with the main purpose. Every sentence adds value without fluff.

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?

Given 8 parameters with full schema coverage and an output schema, the description covers purpose, usage alternatives, and a key behavioral detail (index bump). No gaps for an insertion tool.

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 baseline is 3. Description repeats some schema info (e.g., rows/columns for table) but adds value with the index bump note. No additional semantic detail beyond 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?

Clearly states the action (insert) and resources (table, list, page break into a Google Doc). Distinguishes from sibling tools like modify_doc_text, insert_doc_image, etc.

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 provides when to use this tool versus alternatives for plain text, images, and file chips. Also notes the index bump behavior and required OAuth scope.

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

Install Server

Other Tools

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/HuntsDesk/ve-gws'

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