Skip to main content
Glama

write file

exza_write_file
Destructive

RISK: Create or OVERWRITE a file in the owner-authorized scope. Can permanently replace existing data. Requires computer:write OAuth; ChatGPT controls native confirmation. Device file restrictions remain active.

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": {
      "path": "<path>",
      "content": "<content>"
    },
    "name": "exza_write_file"
  }
}

Input Schema

NameRequiredDescriptionDefault
pathYes
contentYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added
  2. Removed
  3. Changed2 schema fields changed
    • addedInput schema / properties / content / description
      Added value: +"Exact file contents to create or replace in the allowed scope."
    • addedInput schema / properties / path / description
      Added value: +"Explicit path inside the scope for this tool; no symlink traversal where prohibited."
  4. First observed

TDQS

B3.2/5.0
Behavior4/5

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

Annotations already declare destructiveHint=true and readOnlyHint=false, so the base safety profile is known; the description adds real context beyond that by naming the OAuth scope (computer:write), noting that ChatGPT mediates native confirmation, and that device-level file restrictions still apply. What it omits is what actually happens on failure or partial write, so it is not fully transparent.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The risk warning is front-loaded and the whole description is four short clauses with no filler. The telegraphic phrasing ("Device file restrictions remain active") is slightly imprecise but does not waste space.

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 destructive two-parameter write with no output schema, the definition covers risk, auth, and confirmation, which is the important part. It leaves out path format, overwrite-vs-create semantics when the file exists, and any indication of the return value, so an agent can call it but may get the path wrong.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0% — neither path nor content is documented in the schema. The description does not compensate at all: it never says whether path is absolute or relative, whether directories are auto-created, or how content is encoded. For a 2-parameter tool with zero schema documentation, this is a meaningful gap.

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?

"Create or OVERWRITE a file" gives a concrete verb and resource, and the capitalized OVERWRITE makes the dual create/replace behavior explicit. It stops short of differentiating this tool from write-capable siblings such as exza_home_write_text or exza_commander_edit, so an agent still has to infer the scope boundary.

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 only scoping signal is "owner-authorized scope" and "Device file restrictions remain active"; there is no statement of when to choose this tool over the many sibling write/edit tools (home_write_text, commander_edit, commander_append). No when-not-to-use conditions or alternatives are named.

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