Skip to main content
Glama

ssh_file_write

DestructiveIdempotent

Write text files on a remote server atomically, replacing whole files with specified permissions, optional sudo, and sha256 verification. Supports multiple files in one call.

Instructions

Writes text files on a server, several in one call, each with its own permissions. Content lands under a temporary name and takes its place in one rename, so a half-written file never appears at the target, and an optional sha256 check confirms what arrived. A file is replaced whole; there is no append. For something that already exists on this machine, use ssh_upload.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
filesYesOne file, or a list — mode and sudo decided per file, not per call.
profileYesMachine name.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
filesNo
legendNoWhat the words in this answer mean. A key names the field before the value — "state=limited", "jobs[].state=lost" — and only the values this answer actually used are listed.
Behavior4/5

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

The description details important behavioral aspects: atomic write (temp name + rename), no partial files, optional sha256 verification, and whole-file replacement with no append. These align with the destructive and idempotent hints. Minor imprecision: says 'text files' while the schema supports binary via base64, but this is a small oversight.

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 concise and well-structured: it opens with the core function, explains the atomic mechanism and verification, notes the append limitation, and closes with an alternative. Every sentence contributes to the understanding.

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?

Given that an output schema exists, the description appropriately avoids detailing return values. It covers the essential behavioral aspects, including atomicity, permissions, verification, and the distinction from ssh_upload. It doesn't discuss error handling, but that is not required given the output schema.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The input schema already provides comprehensive descriptions for all parameters, so the description doesn't need to repeat them. It adds context like 'each with its own permissions' (mode) and 'optional sha256 check' (verify), which enriches understanding without contradicting the schema.

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 and specifically states the tool's function: writing text files to a server, supporting multiple files per call, each with its own permissions. It also explicitly contrasts with ssh_upload, making the purpose unambiguous.

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 a clear alternative usage condition: 'For something that already exists on this machine, use ssh_upload.' This gives guidance on when to prefer another tool. It doesn't explicitly discuss other alternatives, but the provided hint is sufficient for typical usage.

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/hypnosis/ssh-mcp-server'

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