Skip to main content
Glama

sftp-upload

Destructive

Uploads file content to a remote path via SFTP and replaces any existing file at that path unconditionally.

Instructions

Upload a file to the remote server via SFTP (secure file transfer, not shell-based). Replaces an existing file at that path unconditionally — there is no overwrite flag and no way to require a new destination.

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": {
      "remotePath": "<remotePath>",
      "content": "<content>"
    },
    "name": "sftp-upload"
  }
}

Input Schema

NameRequiredDescriptionDefault
contentYesFile content to upload
profileNoProfile name
remotePathYesRemote file path. No leading or trailing whitespace, and no control, bidirectional or zero-width characters: the approval prompt and the audit record quote this path back.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv2.31.0
    • changedInput schema / $schema
      Previous value: -"http://json-schema.org/draft-07/schema#"New value: +"https://json-schema.org/draft/2020-12/schema"
  2. Changed1 schema field changedv2.11.0
    • changedInput schema / properties / remotePath / description
      Previous value: -"Remote file path"New value: +"Remote file path. No leading or trailing whitespace, and no control, bidirectional or zero-width characters: the approval prompt and the audit record quote this path back."
  3. First observedv2.5.0

TDQS

A4/5.0
Behavior5/5

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

Annotations only declare destructiveHint=true; the description goes further and names exactly what is destroyed and that there is no recourse — "there is no overwrite flag and no way to require a new destination." That is precisely the pre-call context an agent needs before clobbering a remote file.

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 sentences, no filler, and the destructive overwrite warning is placed in the first sentence where it will be read. Every clause carries information the agent cannot get from structured fields.

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 three-parameter destructive write with annotations and a fully documented schema, the description covers purpose, transport, and irreversibility well. Remaining gaps are minor: no statement of what a successful call returns (no output schema exists) and no note on whether the remote directory must already exist.

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% and remotePath already carries detailed character/whitespace constraints, so the schema does the heavy lifting. The description adds no parameter-level meaning (notably nothing about what profile controls or what content encoding is expected), so baseline 3 applies.

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?

States a specific verb and resource ("Upload a file to the remote server") and disambiguates the transport ("via SFTP ... not shell-based"), which separates it from run-command style tools. It does not, however, distinguish itself from the near-identical sibling sftp-upload-file, leaving a real ambiguity for the agent.

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 parenthetical "secure file transfer, not shell-based" implicitly tells the agent to prefer this over shell-based upload paths, which is useful routing context. There is no explicit when-to-use/when-not guidance and no mention of prerequisites such as needing a previously opened session or what the profile parameter selects.

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