Skip to main content
Glama

Document Prepend Paragraph

document_prepend_paragraph
Destructive

Use this to insert a user-provided paragraph at the beginning of a specified local word-processing document. Confirm the document path and preserve existing content.

Input Schema

NameRequiredDescriptionDefault
pathYesExisting .docx path, or the new document destination when create=true.
textYesParagraph text to append/prepend/insert.
createNoCreate a new DOCX at path. Fails if path already exists; do not combine with output.
deviceYesReMCP device id returned by list_devices. Required for every device operation.
outputNoOptional output .docx path when editing an existing document.

Output Schema

NameRequiredDescriptionDefault
dataNoEdit DOCX document structured result for edit_document. Stable fields are declared explicitly; platform-specific fields may be added. Large results may return truncated/bytes/preview instead of the full payload.
textYesConcise human-readable result of the tool call.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

B3.2/5.0
Behavior2/5

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

Annotations already declare destructiveHint=true and idempotentHint=false, so the safety profile is covered. The description only adds 'preserve existing content', which is a caution but does not warn that repeated calls duplicate content (non-idempotent) or that the operation mutates the file in place — gaps that matter for a destructive write tool.

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?

Two short sentences, action stated first, pre-condition second. No padding; only a minor loss for not front-loading the destructive/in-place nature.

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

Completeness3/5

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

An output schema exists and the input schema is fully described, so return values and parameters need no explanation. What is missing is behavior on a non-idempotent destructive edit (duplicate paragraphs on retry, overwrite risk) and any note on device scoping for local documents.

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 path, text, create, output, and device. The description adds nothing about the create/output interplay beyond what the schema already states, which is the baseline expectation.

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?

States a specific verb and resource: insert a paragraph at the beginning of a local word-processing document. Implicitly distinguishes from document_append_paragraph by naming the position, though it never names the sibling explicitly.

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

Usage Guidelines3/5

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

The opening 'Use this to...' gives an implied usage context and adds a sane pre-condition ('Confirm the document path'), but there is no guidance on when to prefer document_append_paragraph or the insert_paragraph_before/after variants, and no mention of the create=true path.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources