Skip to main content
Glama

server_write_file

Writes or appends text to a remote file over SSH through stdin, enabling overwrite or append updates by specifying a path and content.

Instructions

Write or append text to a remote file via stdin.

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>",
      "content": "<content>"
    },
    "name": "server_write_file"
  }
}

Input Schema

NameRequiredDescriptionDefault
pathYes
appendNo
contentYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

C2.9/5.0
Behavior2/5

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

With no annotations, the description carries the full behavioral burden for a mutating tool, yet it never says that the default mode overwrites the target file, whether parent directories are created, what encoding is assumed, or what happens on failure. The only behavioral hint is the write-vs-append distinction, which is minimal for a destructive write operation.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

One short sentence, front-loaded with the action, with no filler. The trailing 'via stdin' is an implementation detail that adds little and could confuse an agent looking for a stdin parameter, slightly diluting the efficiency.

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?

For a three-parameter mutation tool with zero annotation coverage, zero schema descriptions, and no output schema, a single sentence is far too thin. Nothing addresses overwrite risk, permissions, error modes, or return behavior, so an agent cannot call this safely without guessing.

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 0%, so the description must compensate; it partially does by mapping 'text' to content and 'append' to an alternate mode, and 'remote file' to path. However it never states the append default (false) or the overwrite implication of the default, leaving the most consequential parameter behavior undocumented.

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 names a specific verb pair (write/append) and resource (a remote file), which is enough to distinguish it from server_read_file. It stops short of explicitly naming siblings like server_upload or server_session_write, so the differentiation is implicit rather than stated.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

There is no guidance on when to use this versus server_upload (binary transfers) or server_session_write (session-scoped writes), and no prerequisites such as authentication or directory existence are mentioned. The agent is left to infer placement from sibling names alone.

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