Skip to main content
Glama

home edit block

exza_home_edit_block
Destructive

CHANGE: Edit exactly one unique text span in a small source/text file in a managed home area. Requires original SHA256 from exza_home_read_text; rejects ambiguous matches and concurrent edits. No shell and no unrestricted computer permission.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "area": "<area>",
      "path": "<path>",
      "oldText": "<oldText>",
      "newText": "<newText>",
      "expectedSha256": "<expectedSha256>"
    },
    "name": "exza_home_edit_block"
  }
}

Input Schema

NameRequiredDescriptionDefault
areaYes
pathYes
newTextYes
oldTextYes
expectedSha256Yes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added
  2. Removed
  3. Changed5 schema fields changed
    • addedInput schema / properties / area / description
      Added value: +"Managed home area, one of the allowed values; no arbitrary filesystem roots."
    • addedInput schema / properties / expectedSha256 / description
      Added value: +"Lowercase SHA-256 from the prior read; prevents overwriting changed content."
    • addedInput schema / properties / newText / description
      Added value: +"Replacement text for the exact matching span."
    • addedInput schema / properties / oldText / description
      Added value: +"Text span that must occur uniquely before a guarded edit."
    • addedInput schema / properties / path / description
      Added value: +"Explicit path inside the scope for this tool; no symlink traversal where prohibited."
  4. First observed

TDQS

A4/5.0
Behavior4/5

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

Annotations already flag destructiveHint=true and openWorldHint=false, but the description adds genuinely new behavior: ambiguous-match rejection, optimistic concurrency control via expectedSha256, and the fact that no shell or unrestricted machine access is involved. It does not say whether a failed edit leaves the file untouched (atomicity), which would be valuable for a destructive write.

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?

Three tight sentences with the action and scope front-loaded under a CHANGE tag, followed by the prerequisite and the guardrails. Every clause carries operational information; nothing is filler.

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?

With no output schema and destructive annotations, the description covers action, scope, precondition, and failure modes well. The remaining gap is what the agent gets back on success/failure and how path resolves against area for a 5-parameter mutation tool.

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 expectedSha256's provenance from exza_home_read_text and that oldText must match uniquely, but leaves the area enum values (Downloads/Desktop/Documents/Pictures/Music) and whether path is relative to area entirely undocumented in both schema and description.

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?

States a specific verb (edit) plus a tightly scoped resource: exactly one unique text span in a small source/text file within a managed home area. The 'unique span' and 'small file' qualifiers implicitly separate it from exza_home_write_text (whole-file writes) and exza_commander_edit, though no sibling is named explicitly.

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?

Gives a concrete prerequisite workflow by naming exza_home_read_text as the source of the SHA256, which tells the agent to read before editing. It stops short of stating when to prefer exza_home_write_text instead (e.g., new files or full rewrites) or how to chain multiple edits.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources