Skip to main content
Glama
BreezeDelegate

wisp-mcp

replace_in_file

DestructiveIdempotent

Replace an exact text snippet in a file on a WISP game server with optimistic concurrency. Uses a checksum to ensure the file hasn't changed, preventing whole-file model output.

Instructions

Replace an exact snippet server-side with optimistic concurrency, avoiding whole-file model output.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
newYes
oldYes
pathYes
server_idNo
expected_countNo
expected_sha256Yes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Behavior4/5

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

Annotations already indicate destructive and non-read-only behavior. The description adds meaningful context about optimistic concurrency and server-side execution, which clarifies the tool's operational model beyond the annotations.

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?

A single, well-structured sentence that front-loads the action and distinguishing feature. Every word adds value with no 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?

The description is adequate for a simple replacement tool, but gaps remain: expected_count semantics, server_id usage, and failure behavior when the old snippet is not found or expected_sha256 mismatches. The output schema may cover return values, but parameter semantics are partly unaddressed.

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 0%, so the description must compensate. It explains the core concept of exact snippet matching (old/new) and concurrency (expected_sha256), but leaves expected_count and server_id unexplained, forcing inference from names.

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 clearly states the tool replaces an exact snippet server-side with optimistic concurrency, which is a specific verb + resource. It also distinguishes from whole-file writes found in sibling tools like write_file and safe_write_file.

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?

The description implies when to use this tool: when you need a targeted snippet replacement without rewriting the entire file. It does not explicitly name alternatives or exclusions, but the 'avoiding whole-file model output' phrase gives clear context.

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/BreezeDelegate/wisp-mcp'

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