Skip to main content
Glama

delete_paragraphs

Delete a range of paragraphs from a Word document by start and end index, preserving document integrity with safety checks. Supports tracked deletions, auto-backup, and live editing.

Instructions

Delete body paragraphs start..end (0-based, INCLUSIVE; end defaults to start). Refuses ranges that cut through a field or carry a section break. Deleting every paragraph leaves one empty paragraph behind (a document always keeps one). track marks tracked deletions by author instead of removing (result key deleted_tracked). Auto-backup in file mode: prev/anchor slots in .ks4w-backups (backup=False skips rotation only); atomic validated save. Documents open in Word are edited live.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
endNo
liveNoauto
startYes
trackNo
authorNoClaude
backupNo
file_pathYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Behavior5/5

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

With no annotations, the description carries full weight, and it is unusually thorough: it discloses inclusive range semantics, the empty-paragraph fallback, tracked-deletion behavior, backup slots, atomic validated saves, and live editing of documents open in Word. Nothing contradicts the missing annotations.

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?

The core operation is front-loaded and every clause carries information, but the sentence is dense with caveats (backup slots, atomic save, live editing), making it efficient rather than crisp. It earns its length, though it could be broken into bullets for readability.

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?

For a 7-parameter mutation tool with no annotations and an output schema, the description covers the important edge cases and side effects well. The main missing context is full clarification of the 'live' parameter and how file mode is selected, but overall an agent can call it correctly.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0%, so the description must compensate, and largely does: start/end inclusivity and default, track+author behavior, and backup=False semantics are all explained beyond the bare schema. file_path and the 'live' parameter are not given the same explicit treatment, leaving a small gap.

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?

The description opens with 'Delete body paragraphs start..end' – a specific verb, target resource, and exact range semantics. This distinguishes it from paragraph-adjacent siblings like replace_paragraph_text and from delete_source/delete_columns/delete_rows.

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 deletion semantics and refusal conditions ('Refuses ranges that cut through a field or carry a section break') give clear context, but no alternative tools are named or recommended. When-to-use vs siblings is only implied by the phrase 'body paragraphs.'

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/nometalalchemist/KitchenSink4Word'

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