Skip to main content
Glama

file_upload

Upload a local file to a remote host path over SFTP, report byte counts, and block existing destinations unless overwrite is enabled.

Instructions

Upload a local file (absolute path) to a remote path on a host over SFTP and report byte counts; auth/network failures appear as AUTH_FAILED/HOST_UNREACHABLE. Refuses an existing remote destination unless overwrite:true.

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>",
      "localPath": "<localPath>"
    },
    "name": "file_upload"
  }
}

Input Schema

NameRequiredDescriptionDefault
hostNo
localPathYesAbsolute local file path
overwriteNoReplace the remote file if it already exists (default false)
remotePathYesRemote destination path

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.2/5.0
Behavior4/5

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

With no annotations supplied, the description carries the load and does much of it: it discloses the default refusal to clobber an existing remote file (a safety trait an agent must know), names the failure modes AUTH_FAILED and HOST_UNREACHABLE, and states that byte counts are reported back. It stops short of explaining how host credentials are resolved, whether intermediate remote directories are created, or what happens to a partially written file on failure.

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?

One tightly packed sentence with the core action first, then the safety guard and error semantics. No filler, no restatement of the title or name.

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?

There is no output schema, yet the description still tells the agent what comes back (byte counts) and how errors surface. For a four-parameter write tool with zero annotations this is solid coverage; the remaining gap is connection/credential context, which the agent would need before a first call.

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 coverage is 75%, and the description adds meaning the schema lacks: the overwrite parameter is framed as a hard guard ('refuses an existing remote destination unless overwrite:true') rather than a plain boolean, and the local path is constrained to absolute form. The host parameter, which has no schema description, is only vaguely covered as 'on a host'.

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?

A specific verb (upload), resource (a local file), destination (remote path on a host), and transport (SFTP) are all named. 'Upload' inherently separates this from the sibling file_download, so an agent can select it without opening the schema.

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?

Usage is implied by the verb and the local-to-remote direction, but there is no explicit when-to-use vs when-not guidance and no alternative tool is named. The overwrite clause gives one concrete selection condition, which lifts it above pure implication but not to a 4.

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