Skip to main content
Glama

ssh_write_file

Writes content to a file on an HPC cluster over SSH, supporting overwrite or append and local-file input. Use it instead of shell heredocs or cat commands for file creation.

Instructions

Write content to a file on HPC. Use this instead of ssh_exec with cat/heredoc.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "path": "<path>"
    },
    "name": "ssh_write_file"
  }
}

Input Schema

NameRequiredDescriptionDefault
pathYesAbsolute file path on HPC
appendNoAppend instead of overwrite
contentNoFile content to write (omit if using from_file)
from_fileNoLocal file path to read content from (avoids displaying large content in UI)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.2.0

TDQS

A3.7/5.0
Behavior2/5

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

No annotations are provided, so the description must carry the behavioral burden for a mutation tool. It says only that content is written, without disclosing overwrite-by-default behavior, permission requirements, whether parent directories are created, or failure semantics.

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 two short sentences with the purpose front-loaded and no wasted wording. It immediately states what the tool does and then gives the key alternative to avoid.

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?

The schema is fully described and the tool is simple, but the description is thin for a write operation with no annotations. It does not warn that the default behavior overwrites a file or mention permission/authentication expectations, leaving meaningful behavioral context unstated.

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 the input schema already explains path, append, content, and from_file. The description does not add meaning beyond the schema, which is acceptable at the baseline for fully documented 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 states a specific verb and resource: writing content to a file on HPC. It also distinguishes this tool from the sibling ssh_exec by saying to use it instead of cat/heredoc for file writes.

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?

It gives clear usage guidance by naming ssh_exec with cat/heredoc as the alternative to avoid. It does not cover other possible alternatives such as sync_files or explain when to choose append versus overwrite, but the core routing guidance is explicit.

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