Skip to main content
Glama

insert_paragraph

Destructive

Add paragraphs to DOCX or Google Docs documents at specific positions relative to anchor paragraphs while preserving formatting.

Instructions

Insert a paragraph before/after an anchor paragraph by bk* id. Supports DOCX and Google Docs.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
file_pathNoPath to the DOCX file.
google_doc_idNoGoogle Doc ID or URL (alternative to file_path). Extract from URL: docs.google.com/document/d/{ID}/edit
positional_anchor_node_idYes
new_stringYes
instructionYes
positionNo
style_source_idNoParagraph _bk_* ID to clone formatting (pPr and template run) from instead of the positional anchor. Falls back to anchor with a warning if not found.
Behavior3/5

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

Annotations declare destructiveHint=true and readOnlyHint=false, so the description doesn't need to establish the write nature. It adds value by specifying the _bk_* id lookup mechanism and dual file format support. However, it omits the warning behavior mentioned in the schema for style_source_id fallback and doesn't explain the mutation scope.

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?

Extremely concise single sentence with no filler words. Information density is high relative to length. However, given the tool's complexity (7 parameters, low schema coverage, destructive operation), this conciseness comes at the cost of necessary detail, preventing a 5.

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

Completeness2/5

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

Inadequate for a destructive tool with 7 parameters and no output schema. The required 'instruction' parameter is entirely undocumented in both schema and description. The description fails to explain what constitutes a valid _bk_* id, what the 'new_string' parameter expects (rich text? plain text?), or how the document targeting works.

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?

With only 43% schema description coverage, the description partially compensates by explaining the '_bk_* id' concept for the anchor parameter and implying the position enum (before/after). However, it leaves critical required parameters—'instruction' and 'new_string'—completely unexplained, and doesn't clarify the file selection logic between file_path and google_doc_id.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

Clearly states the action (Insert), target resource (paragraph), and positioning mechanism (before/after anchor by _bk_* id). Mentions supported formats (DOCX/Google Docs) which helps distinguish from file-type-specific siblings. Falls short of 5 by not explicitly differentiating from replace_text or explaining what _bk_* id refers to.

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

Usage Guidelines2/5

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

Provides no guidance on when to use this versus replace_text, add_comment, or other insertion-related siblings. Fails to clarify the mutual exclusivity between file_path and google_doc_id parameters, leaving the agent to guess which to use.

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/UseJunior/safe-docx'

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