Skip to main content
Glama
dam2452

vastai-mcp

by dam2452

ssh_transfer

Transfer a single file between your local machine and a Vast.ai instance over SFTP. Supports upload and download, automatically resolving the instance's SSH host and port.

Instructions

Transfer a single file between the local machine and an instance over SFTP.

  • upload: local file -> instance path

  • download: instance path -> local file

Directories are not supported — call once per file. Resolves the instance's ssh_host/ssh_port automatically. The private key stays local.

key_path defaults to the VASTAI_MCP_SSH_KEY_PATH env var if set.

Examples: ssh_transfer(direction="upload", instance_id=12345, local_path="./train.py", remote_path="/workspace/train.py") ssh_transfer(direction="download", instance_id=12345, local_path="./results.tar", remote_path="/workspace/results.tar")

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
userNoroot
timeoutNo
key_pathNo
directionYes
local_pathYes
instance_idYes
remote_pathYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Behavior4/5

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

With no annotations, the description carries the full burden. It discloses important behavioral traits: directories are unsupported, ssh_host/ssh_port are auto-resolved, the private key stays local, and key_path defaults to an env var. It does not mention overwrite behavior or return specifics, but it covers key operational expectations.

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 concise and well-structured: a single clear statement, bullet points for directions, a limitation note, a default note, and two representative examples. Every sentence adds value with no fluff.

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?

The description fully covers the tool's main behavior, limitations, and examples. It does not explain user/timeout parameters or potential overwrite behavior, but the tool is simple and the output schema likely covers return values. Overall, it is complete enough for a straightforward file transfer tool.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/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 explains the core parameters (direction, local_path, remote_path, instance_id) and the key_path default. It omits the user and timeout parameters, but those have defaults and are secondary. The examples also illustrate parameter usage clearly.

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 clearly states the tool transfers a single file over SFTP and distinguishes upload vs download directions. It specifies the exact resource (single file) and action (transfer), making it distinct from sibling tools like execute_command or ssh_exec.

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?

The description gives clear context on when to use the tool (for single-file transfers) and explicitly notes that directories are not supported, requiring per-file calls. However, it does not explicitly name alternatives or state when not to use this tool, just missing the explicit 'when-not-to' guidance.

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/dam2452/vastai-mcp'

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