Skip to main content
Glama

ssh_write_file

Write text content to a file on a remote host via SFTP, overwriting it if it exists. Optionally create missing parent directories to ensure the target path is ready.

Instructions

Write text content to a file on the remote host via SFTP, overwriting it.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
pathYes
contentYes
session_idYes
create_dirsNo

Schema Changelog

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

  1. First observedv0.1.0

TDQS

B3.3/5.0
Behavior3/5

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

With no annotations, the description carries the full burden of behavioral disclosure. It does disclose the key destructive behavior—overwriting an existing file—which is critical for an agent to know. However, it omits other important behavioral traits such as the requirement for an existing session, the effect of create_dirs, and what happens on failure or success.

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 a single sentence that is tightly worded and front-loaded with the action. Every word contributes meaning: 'Write', 'text content', 'file', 'remote host', 'SFTP', and 'overwriting'. No unnecessary detail or repetition exists.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Despite low complexity (4 flat scalar parameters), the description is missing important context that the schema doesn't provide: the create_dirs default behavior, the need for an active session, and any expected outcomes or response. The only extra context over the name is the SFTP mechanism and overwrite semantics. An agent could still misuse this tool without understanding session requirements or directory creation.

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

Parameters1/5

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

Schema description coverage is 0%, so the description must compensate for the lack of parameter documentation. It does not mention any of the parameters by name or provide additional meaning for path, content, session_id, or create_dirs. The only indirect hints are 'text content' (mapping to content) and 'file' (mapping to path), which is insufficient for an agent to correctly populate all four parameters.

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 resource ('file on the remote host') and clearly distinguishes this from sibling tools like ssh_read_file and ssh_exec. It also adds a precise mechanism (SFTP) and the overwriting behavior. An agent can immediately understand what this tool does and how it differs from alternatives.

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 usage context is implied: use this tool when you need to write or overwrite a file on a remote host over SFTP. However, there is no explicit guidance on when not to use it, no mention of prerequisites like an active session, and no comparison to alternative siblings. The description does enough to suggest its purpose but leaves the reasoning to the agent.

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/CrimsonCosmos/ssh-bridge-mcp'

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