Skip to main content
Glama

home write text

exza_home_write_text
Destructive

CREATE or MODIFY one text/source-code file (max 48KB) within a managed home area. New files cannot replace existing files. Replacements require the exact SHA256 returned by a previous read.

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>",
      "content": "<content>"
    },
    "name": "exza_home_write_text"
  }
}

Input Schema

NameRequiredDescriptionDefault
areaYes
pathYes
contentYes
expectedSha256No

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added
  2. Removed
  3. Changed4 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 / content / description
      Added value: +"Exact file contents to create or replace in the allowed scope."
    • addedInput schema / properties / expectedSha256 / description
      Added value: +"Lowercase SHA-256 from the prior read; prevents overwriting changed content."
    • addedInput schema / properties / path / description
      Added value: +"Explicit path inside the scope for this tool; no symlink traversal where prohibited."
  4. First observed

TDQS

A3.7/5.0
Behavior3/5

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

Annotations already declare destructiveHint=true and readOnlyHint=false, so the safety profile is largely covered; the description usefully adds the 48KB ceiling and the no-clobber/SHA256 guard. It says nothing about what happens on failures (stale hash, size overflow), whether parent directories are created, or what a successful write returns - gaps that matter for a destructive mutation.

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?

Two dense sentences with the capability and its limits front-loaded, then the overwrite constraint. Nothing redundant or padded.

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 3-required-parameter, destructive write tool with no output schema, the definition covers size and overwrite semantics but not path resolution, error behavior, or return value. An agent can attempt the call but may fumble the `area`/`path` pairing on first try.

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 coverage is 0%, so the description must compensate. It effectively explains expectedSha256 (exact hash from a prior read) and ties `content` to the 48KB limit, but leaves `area` (the only enum) and `path` completely unexplained - notably whether path is relative to the area and how nestable it is.

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 pair (CREATE or MODIFY), the resource (one text/source-code file), the scope (managed home area), and a hard limit (48KB). It clearly separates itself from related home tools like exza_home_edit_block and exza_home_mkdir, though it never names a sibling 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 real precondition guidance: new files cannot overwrite, and replacement requires the exact SHA256 from a previous read, which implicitly directs the agent to exza_home_read_text first. It does not, however, say when to prefer exza_write_file, exza_commander_append, or exza_home_edit_block over this tool.

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