Skip to main content
Glama
mocchalera

xserver-files-mcp

by mocchalera

Write remote file

write_file
Destructive

Write UTF-8 text files to a configured domain root, automatically backing up existing files to prevent data loss.

Instructions

Write a UTF-8 text file under a configured domain root. Existing files are backed up by default.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
pathYesFile path relative to the configured domain root.
backupNoBack up existing file before writing.
domainYesConfigured domain root to operate under.
contentYesUTF-8 text content to write.
dry_runNoReturn what would happen without writing.
server_idNoServer profile id. Defaults to config.defaultServer.
backup_labelNoBackup label used in the generated filename.
Behavior4/5

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

Annotations already mark the tool as destructive. The description adds useful context by noting that existing files are backed up by default, which goes beyond the bare annotations. No contradiction found.

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 concise sentences with front-loaded purpose and a key behavioral note. Every word earns its place with no redundancy or filler.

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?

Given the tool has 7 parameters and no output schema, the description is adequate but lacks details about return values or failure behavior. The schema covers the parameters, but the description doesn't add broader operational context such as dry-run semantics or how backups are labeled.

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 description coverage is 100%, so parameters are fully documented. The description's mention of UTF-8 and backup default restates schema information but adds no new parameter-level meaning, so it meets the baseline for high coverage.

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?

The description clearly states the action: 'Write a UTF-8 text file under a configured domain root.' It specifies the resource and verb, but does not explicitly differentiate from sibling tools like replace_in_file or push_file_from_workspace, though the scope is clear.

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?

Usage is implied: use when you need to write a UTF-8 text file within a configured domain root. However, there are no explicit exclusions or references to alternatives, so the guidance is minimal.

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/mocchalera/xserver-files-mcp'

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