Skip to main content
Glama

write_file

Write UTF-8 text files to the workflow workspace, enabling agents to persist scripts, data, or outputs within a sandboxed environment.

Instructions

Write a UTF-8 text file sandboxed to the workflow workspace.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
pathYes
contentYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections. Dates show when Glama detected each change.

  1. First observed

TDQS

A3.9/5.0
Behavior3/5

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

No annotations are provided, so the description carries the burden of disclosing side effects. It reveals that the file will be UTF-8 text and sandboxed to the workspace, but it does not state whether an existing file is overwritten, whether parent directories are created, or what happens on failure.

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?

A single focused sentence that clearly states the operation, the file type, and the workspace constraint, with no unnecessary words. It is appropriately concise and front-loaded.

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?

The tool has only two simple parameters and an output schema exists, so the description does not need to explain return values. The sandbox and encoding information give an agent enough context to make a first correct call, though overwrite and directory behavior are still unspecified.

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%, and the description does not compensate for missing parameter details. It gives a small hint that content should be UTF-8 text, but it says nothing about path semantics, path format, content size limits, or how the two parameters relate.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description uses a specific verb ('Write') and a clear resource ('a UTF-8 text file') and adds an important scope constraint ('sandboxed to the workflow workspace'). It is clearly distinct from siblings like read_file and list_dir, which represent read operations.

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?

The description makes the intended use clear: writing text files within the workflow workspace. It does not explicitly name alternatives or state when not to use it, but the 'sandboxed to the workflow workspace' phrase provides helpful context for selecting the tool.

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

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/readyagents/readyagents-core'

If you have feedback or need assistance with the MCP directory API, please join our Discord server