Skip to main content
Glama

document_insert_paragraph

Insert a new paragraph at a specific position in LibreOffice Writer documents. Specify text, location, and optional style for precise document editing.

Instructions

Insert a new paragraph at a specific index in a Writer document.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
docIdYesDocument handle returned by document_open
textYesParagraph text
indexYesIndex at which to insert the paragraph (0-based)
styleNoStyle name (e.g., "Heading 1", "Normal")
Behavior2/5

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

No annotations are provided, so the description carries the full burden of behavioral disclosure. It states the tool inserts a paragraph, implying a mutation, but lacks details on permissions, side effects (e.g., impact on existing content), error handling, or response format. This is inadequate for a mutation tool with zero annotation coverage.

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?

The description is a single, clear sentence that front-loads the core action and resource without unnecessary words. It efficiently communicates the purpose without redundancy, making it easy to parse and understand quickly.

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?

Given the tool's complexity as a mutation operation with no annotations and no output schema, the description is insufficient. It lacks information on behavioral traits, return values, error conditions, and how it differs from similar tools, leaving significant gaps for an AI agent to understand and invoke it correctly.

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 the schema fully documents all parameters. The description adds no additional meaning beyond implying the tool uses these parameters for insertion, but it does not compensate for any gaps since there are none. Baseline 3 is appropriate as the schema handles parameter semantics effectively.

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?

The description clearly states the action ('insert a new paragraph') and target resource ('Writer document'), with specificity about location ('at a specific index'). However, it does not explicitly differentiate from sibling tools like 'document_insert_text' or 'document_replace_text', which also modify document content, leaving some ambiguity about when to choose this tool over those alternatives.

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?

The description provides no guidance on when to use this tool versus alternatives. It mentions 'at a specific index' but does not clarify scenarios where inserting a paragraph is preferred over inserting text or other document operations, nor does it reference sibling tools like 'document_insert_text' for context-specific choices.

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/passerbyflutter/libreoffice-mcp-tools'

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