Skip to main content
Glama

Edit block

edit_block
Destructive

Replace exact text, modify DOCX XML, or update Excel ranges in files to apply precise content changes during AI-assisted development.

Instructions

Perform exact text replacement, DOCX XML replacement, or Excel range update.

Input Schema

NameRequiredDescriptionDefault
rangeNo
contentNo
deviceIdNo
file_pathYes
deviceNameNo
new_stringNo
old_stringNo
expected_replacementsNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.8.0

TDQS

C2.4/5.0
Behavior2/5

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

Annotations already declare destructiveHint=true and readOnlyHint=false, so the write/mutation nature is covered structurally. The description adds almost nothing beyond that: it does not say matches must be exact and unique, what happens when old_string is missing or ambiguous, how expected_replacements guards against unintended edits, or how DOCX/Excel edits alter the underlying file. For a destructive multi-mode editor this is a significant gap.

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?

A single tight sentence with no filler, and the three modes are front-loaded so an agent can scan it quickly. It is terse rather than padded, though the brevity reflects under-specification rather than disciplined economy.

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?

For an 8-parameter, destructive, multi-format edit tool with 0% schema documentation and no output schema, one sentence is not enough. An agent cannot reliably determine mode selection, required companion parameters, or failure behavior from what is provided.

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

Parameters2/5

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

Schema description coverage is 0% for 8 parameters, so the description carries the full burden and largely fails. It hints that old_string/new_string/expected_replacements drive text replacement and that range/content drive Excel updates, but it never explains how parameters map to modes, what 'content' accepts, or the role of deviceId/deviceName. Only partial compensation for the coverage gap.

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

Purpose3/5

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

The description names a specific verb ('edit') and enumerates three distinct operation modes (exact text replacement, DOCX XML replacement, Excel range update), which tells an agent what the tool can do. However, it offers no differentiation from closely related siblings such as fs_write_text, fs_apply_patch_many, or write_file, leaving mode selection ambiguous.

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?

There is no statement of when to choose this tool over the many file-mutation siblings, nor any prerequisites, exclusions, or guidance on which of the three modes applies to which file type. An agent must infer everything from the one-sentence mode list.

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

Deploy Server

Other Tools