Skip to main content
Glama

sftp_upload

Uploads a local file to a remote server via SFTP using source and destination paths, with an optional timeout to abort stalled transfers.

Instructions

Upload a local file to the remote server.

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": {
      "local_path": "<local_path>",
      "remote_path": "<remote_path>"
    },
    "name": "sftp_upload"
  }
}

Input Schema

NameRequiredDescriptionDefault
timeoutNoAbort this SFTP operation if it makes no progress for this many milliseconds
local_pathYesLocal file path to upload
session_idNoSession ID (optional if using pre-configured server)
remote_pathYesRemote destination path

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.0

TDQS

C2.8/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 burden and adds almost nothing: it does not say whether an existing remote file is overwritten, whether missing parent directories are created, what permissions the uploaded file gets, or whether partial uploads are cleaned up. For a mutating file-transfer operation these omissions are significant.

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

Conciseness3/5

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

A single sentence with no wasted words, which is good, but the brevity reflects under-specification rather than disciplined compression. It states only the obvious and front-loads nothing about behavior the agent actually needs.

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 four-parameter mutating tool with no annotations and no output schema, the definition is too thin. It leaves overwrite semantics, session requirements, timeout defaults, and the shape of the result entirely undocumented.

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 all four parameters (local_path, remote_path, session_id, timeout) are already documented in the schema. The description adds no syntax, path-format, or timeout-interaction detail beyond that, so the baseline of 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?

The description states a specific verb and resource ("Upload a local file to the remote server"), which is clearly distinct from sftp_download and sftp_write. It does not explicitly name or differentiate itself from any sibling, but the direction of transfer is unambiguous.

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 sftp_write (which may also transfer content) or when to establish a session first. Nothing tells the agent about prerequisites such as needing a session_id or pre-configured server, nor about preconditions on the remote destination.

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