Skip to main content
Glama

sftp

Transfer files and manage remote filesystems securely over SSH using SFTP protocol, including upload, download, directory operations, and async transfers.

Instructions

Transfer files and manage remote filesystems over SSH (SFTP protocol). Reuses SSH session pool — same authentication and session reuse as the ssh tool. Operations: upload (local to remote), download (remote to local), ls, stat, mkdir, rm, chmod, rename. Async operations: upload_async, download_async (returns transfer_id immediately), status (check progress), cancel. Max file transfer size: 2 GB. Use overwrite=true to replace existing files. Recursive delete is limited to 10,000 items for safety.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
hostYesSSH server hostname or IP address (IPv4 or IPv6),required
portNoSSH port number. Default: 22
userYesSSH username,required
passwordNoPassword for authentication
key_fileNoPath to SSH private key file (e.g. ~/.ssh/id_rsa)
passphraseNoPassphrase for encrypted private key
use_agentNoUse SSH agent for authentication. Default: true if no other auth method specified
host_key_checkNoHost key verification: strict, tofu (default), none
jump_hostNoJump/bastion host for ProxyJump (hostname or IP)
jump_portNoJump host SSH port. Default: 22
jump_userNoJump host username. Default: same as user
jump_passwordNoJump host password. Default: same as password
jump_key_fileNoJump host SSH private key file. Default: same as key_file
jump_passphraseNoJump host key passphrase. Default: same as passphrase
operationYesSFTP operation: upload, download, upload_async, download_async, status, cancel, ls, stat, mkdir, rm, chmod, rename,required
local_pathNoLocal file path (for upload/download)
remote_pathNoRemote file/directory path
recursiveNoRecursive operation (mkdir: create parents, rm: remove directory tree)
modeNoFile permission mode in octal (e.g. 0755). Used by chmod
new_pathNoNew remote path (for rename operation)
overwriteNoOverwrite existing file on upload/download. Default: false
transfer_idNoTransfer ID for status/cancel operations (returned by upload_async/download_async)
Behavior4/5

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

No annotations provided, so description carries full burden. Discloses critical behavioral traits: session reuse mechanics, async operation patterns (returns transfer_id immediately), file size limits, and safety constraints on recursive delete. Could improve by mentioning error handling or rate limiting behaviors.

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?

Seven sentences, each earning its place: purpose, session reuse, operation list, async operations, size limits, overwrite guidance, and safety limits. No redundant or filler text. Well front-loaded with protocol and scope.

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 complex 22-parameter tool with multiple operation modes (sync/async) and no output schema, description adequately covers authentication, available operations, and critical limits. Minor gap: does not describe return value structure or success/failure indicators for operations.

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 has 100% description coverage, establishing baseline of 3. Description references specific parameters ('overwrite=true', 'transfer_id') to illustrate behavior but does not add semantic meaning beyond what schema already provides for the 22 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?

Description opens with specific verb+noun ('Transfer files and manage remote filesystems') and protocol ('SFTP'). Explicitly distinguishes from sibling 'ssh' tool by noting session pool reuse while clarifying distinct file operations (upload, download, ls, etc.).

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?

Provides concrete constraints (2GB max file size, 10,000 item recursive delete limit) and configuration hints ('Use overwrite=true'). Mentions relationship to ssh tool for authentication context. Lacks explicit guidance on when to prefer this over siblings 'download' or 'upload' (likely HTTP-based alternatives).

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

Install Server

Other Tools

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/knewstimek/agent-tool'

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