Skip to main content
Glama
devrandom

mcp-fstools

by devrandom

write

Save content to a file, creating any missing directories, and track file hash for edit consistency.

Instructions

Write content to file_path, overwriting any existing content.

Parent directories are created if missing. The file's new content hash is recorded so a follow-up edit will require a fresh read.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
contentYes
filePathYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior4/5

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

With no annotations, the description carries the full burden. It discloses key behaviors: overwriting content, creating parent directories if missing, and recording a content hash that affects edit. These are important for the agent to understand side effects. Missing details like idempotency or failure handling, but overall sufficient.

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?

The description is very concise: three sentences. The first sentence states the core action, the second adds directory creation behavior, and the third explains the hash recording. Every sentence adds value without redundancy or fluff.

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?

For a simple write tool, the description covers primary behavior and important side effects. It does not mention return values, but an output schema exists (context confirms) which likely covers that. Overall, it provides enough information for the agent to use the tool correctly.

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?

The description adds basic meaning by using parameter names in context: 'Write `content` to `file_path`'. It also explains that parent directories are created for filePath. However, with 0% schema coverage, more detail on constraints (e.g., path format, content encoding) would be beneficial. The description provides minimal yet adequate semantics.

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 clearly states the action: 'Write `content` to `file_path`, overwriting any existing content.' It specifies the verb (write), resource (file), and that it overwrites. It also distinguishes from sibling tools by noting that the content hash is recorded, requiring a fresh read for a follow-up edit.

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 provides context about when to use this tool by mentioning the interaction with edit: 'a follow-up `edit` will require a fresh `read`.' This implies write is for creating or fully overwriting files. However, it does not explicitly state when to prefer write over edit or when not to use it, which would be clearer.

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

Install Server

Other Tools

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/devrandom/mcp-fstools'

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