Skip to main content
Glama

fast_edit_block

Replace exact text blocks in files with safety controls for backups, previews, and match validation.

Instructions

Precise block editing: safely replace exact matches (desktop-commander style)

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
pathYesPath of the file to edit
old_textYesExact existing text to match (include minimal context)
new_textYesReplacement text
expected_replacementsNoExpected number of replacements (safety guard)
backupNoCreate a backup
word_boundaryNoEnforce word boundaries (prevents partial matches)
preview_onlyNoPreview only (don’t modify the file)
case_sensitiveNoMatch case sensitively
Behavior3/5

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

With no annotations provided, the description carries the full burden of behavioral disclosure. It mentions 'safely replace' and 'desktop-commander style', which hints at safety features, but doesn't elaborate on what makes it safe, error handling, or performance characteristics. The description adds some context but leaves important behavioral aspects unspecified.

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 extremely concise at just 9 words, front-loading the core purpose ('Precise block editing') followed by key behavioral context. Every word earns its place with no wasted text or redundancy.

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?

For a file editing tool with 8 parameters and no annotations or output schema, the description provides basic purpose but lacks important context about safety mechanisms, error conditions, or what distinguishes it from sibling editing tools. The 'desktop-commander style' reference is vague and doesn't sufficiently compensate for the missing behavioral details.

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?

The input schema has 100% description coverage, providing clear documentation for all 8 parameters. The description doesn't add any parameter-specific information beyond what's already in the schema descriptions, so it meets the baseline expectation without enhancing parameter understanding.

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 tool's purpose: 'Precise block editing: safely replace exact matches'. It specifies the verb ('replace') and resource ('exact matches'), though it doesn't explicitly differentiate from sibling tools like 'fast_edit_blocks' or 'fast_safe_edit' beyond the 'desktop-commander style' reference.

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. With multiple sibling editing tools (fast_edit_blocks, fast_edit_multiple_blocks, fast_safe_edit), there's no indication of when this specific 'block editing' approach is preferred or what distinguishes it from other editing operations.

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/efforthye/fast-filesystem-mcp'

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