Skip to main content
Glama
keesjankoster

Server Maintenance MCP Server

ssh_write_file

Write or update a remote file over SFTP, with automatic timestamped backup creation before overwriting existing content.

Instructions

Create or update a remote file over SFTP. By default automatically creates a timestamped backup copy (.bak-...) of any existing file before overwriting.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
modeNoOptional file permissions mode in octal notation, e.g. "0644" or "0755".
pathYesThe remote absolute path where the file should be written.
backupNoWhether to create a timestamped backup before writing if file exists (default: true).
contentYesThe string content to write into the file.
serverIdYesThe ID of the configured target server.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A4/5.0
Behavior4/5

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

With no annotations provided, the description carries the burden of disclosing side effects. It clearly states that existing files may be overwritten and that a timestamped backup (.bak-...) is created by default, adding meaningful behavioral context beyond the name and schema.

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 front-load the core operation and then add the most important behavioral default. There is no redundant or filler content.

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 straightforward file write tool with fully documented parameters and no output schema, the description covers the core operation and the key side-effect behavior. It could add explicit guidance on when not to use it, but the essential context for invoking it correctly is present.

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 100%, so the schema already documents all five parameters. The description adds the backup filename convention (.bak-...) and default behavior, but does not need to compensate for missing parameter documentation.

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 states a specific verb and resource: 'Create or update a remote file over SFTP.' It clearly distinguishes this from sibling tools like ssh_read_file and ssh_execute_command by naming the transport (SFTP) and the write action.

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?

The description implies usage for writing files over SFTP, and sibling names make the read/execute/listing alternatives obvious. However, it does not explicitly state when to use this tool versus alternatives or mention any exclusions or prerequisites.

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