Skip to main content
Glama

Document Delete Paragraph

document_delete_paragraph
Destructive

Use this to delete one or more paragraphs matching requested text in a specified local word-processing document. This removes document content; confirm the exact match and backup needs.

Input Schema

NameRequiredDescriptionDefault
allNoApply to all matching paragraphs; default true.
pathYesExisting .docx path, or the new document destination when create=true.
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.
searchYesParagraph text substring for replace/insert/delete operations.

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

A4/5.0
Behavior4/5

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

Annotations already declare destructiveHint=true, readOnlyHint=false and idempotentHint=false, so the safety profile is covered structurally. The description still adds real value by flagging irreversible content removal and advising a backup/match confirmation. It omits specifics such as what happens when multiple paragraphs match and the 'all' default resolves to true -- a meaningful gap for a destructive call.

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?

Two sentences, zero filler, with the action and scope front-loaded and the caution trailing. Every clause earns its place.

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

Completeness4/5

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

With an output schema present and full annotation coverage, the description does not need to explain return values, and it correctly focuses on the destructive-caution angle. It leaves the create/output parameters unexplained at the description level, which is slightly confusing for a delete tool, but the schema resolves that.

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% with six documented parameters, so the schema carries the semantics. The description only echoes 'matching requested text' and 'specified document', adding no syntax, matching-rule, or interaction detail (e.g. how 'all' vs 'search' interact) beyond what the schema already states. Baseline 3 applies.

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 states a specific verb ('delete') on a specific resource ('one or more paragraphs matching requested text') within a bounded scope ('a specified local word-processing document'). That is far more precise than the title alone, though it never names the adjacent paragraph tools (document_replace, document_append_paragraph, document_insert_paragraph_before/after) to draw the boundary explicitly.

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

Usage Guidelines4/5

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

'Use this to delete...' plus 'confirm the exact match and backup needs' gives clear operating context and a pre-flight caution before a destructive call. It stops short of explicit exclusions or alternatives -- it does not say, for example, to use document_replace when the intent is substitution rather than removal.

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