Skip to main content
Glama

write_file

Write a file on your computer (creates parent directories). Files under /workspace and the home directory survive across sessions; /tmp does not.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
pathYesAbsolute path, or relative to /workspace
contentYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.5/5.0
Behavior3/5

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

With no annotations, the description carries the full behavioral burden. It usefully discloses that parent directories are created and which paths persist across sessions, but omits critical write semantics such as whether existing files are overwritten, encoding, and permission errors.

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 tight sentences with zero waste. The core action is front-loaded and the persistence caveat follows immediately, so every clause earns its place.

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 mutation tool with no annotations and no output schema, the description covers the essentials (action, directory creation, persistence) but leaves overwrite semantics and failure modes unaddressed. Adequate but with a notable gap for a destructive-by-nature operation.

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 50%: 'path' is documented in the schema while 'content' is not, though its meaning is self-evident. The persistence note adds useful meaning about path location semantics beyond the schema's 'absolute or relative to /workspace' line, but overwrite behavior of content is left unspecified.

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 ('Write a file on your computer'), which clearly separates it from read_file and list_directory among the siblings. It does not explicitly name an alternative tool, so it stops short of full sibling routing, but the action is unambiguous.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

There is no explicit when-to-use or when-not-to-use guidance. The persistence note (workspace/home survive, /tmp does not) implicitly guides where to write, which is real directional advice, but it never states prerequisites or contrasts with other tools.

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