Skip to main content
Glama

Panes

file_write

Destructive

Writes atomically and creates parent directories. URL-encode the absolute Windows path. Body is bytes, not JSON.

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": {
      "id": "<id>",
      "path": "<path>",
      "content_base64": "<content_base64>"
    },
    "name": "file_write"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYes
pathYes
content_base64Yes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

B3/5.0
Behavior3/5

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

Adds real behavior beyond annotations: atomicity and automatic creation of parent directories, which annotations (destructiveHint=true, idempotentHint=false) do not convey. However, it says nothing about overwrite semantics for an existing file, error behavior, or permissions — the most important unknowns 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 short, front-loaded sentences with no filler; the highest-value operational facts (atomic, creates parents, path encoding) come first.

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

Completeness2/5

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

For a destructive, non-idempotent write tool with three fully undocumented required parameters and no output schema, the description omits what 'id' identifies, whether existing files are overwritten, and what the call returns. Atomicity and path encoding alone are not enough to invoke it confidently.

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 coverage is 0%, so the description must carry all parameter meaning. It clarifies path format and that content is a byte payload, but leaves the required 'id' parameter entirely unexplained and the 'bytes, not JSON' phrasing is in tension with the content_base64 string field rather than explaining the base64 encoding.

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 and resource (writes a file) and adds meaningful qualifiers: atomic write and automatic parent-directory creation. It does not explicitly position itself against siblings like file_read or exec, but the write semantics are unambiguous.

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?

No guidance on when to use this versus alternatives such as shell exec or ssh for writing content. The only directives are formatting constraints (URL-encoded absolute Windows path, byte body), which are usage rules rather than when-to-use guidance.

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.