Skip to main content
Glama
BreezeDelegate

wisp-mcp

safe_write_file

DestructiveIdempotent

Overwrite a text file only if its SHA-256 hash matches the value previously read, preventing accidental overwrites of modified files.

Instructions

Overwrite an existing text file only if its SHA-256 still matches the value previously read.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
pathYes
contentYes
server_idNo
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 declare destructiveHint=true and idempotentHint=true. The description adds meaningful context: the write is conditional on a hash match, and it only applies to existing files. It doesn't disclose the failure mode on mismatch, but it enriches the behavioral 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 sentence, perfectly front-loaded, with no redundant words. Every word contributes meaning, and it conveys the core contract efficiently.

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

Completeness5/5

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

Given the tool's simplicity and the presence of an output schema, the description covers the full contract: target (existing file), precondition (hash must match), and the conditional nature of the overwrite. It implies the required 'read first then safe write' workflow.

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 'expected_sha256' via the SHA-256 condition, and 'path'/'content' are self-evident. However, 'server_id' is not mentioned, and the description does not fully elaborate each parameter's purpose.

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 specifies a clear action ('Overwrite') with a specific resource ('existing text file') and a precise condition (SHA-256 match). This distinguishes it from the sibling 'write_file' tool, which likely performs unconditional writes.

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 condition 'only if its SHA-256 still matches the value previously read' clearly implies a compare-and-swap workflow, indicating when this tool should be used (when you have a prior read hash and want to avoid clobbering changes). It doesn't explicitly name alternatives or exclusions, but the context is strong enough.

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