Skip to main content
Glama
MCP Server for FTP Access

MCP Server for FTP Access

Download To Local File

download-to-local
DestructiveIdempotent

Streams a remote FTP file directly to a permitted local path without returning its contents, enabling files to be saved on this computer.

Instructions

Download a file from the FTP server straight to a path on this computer, streamed, without returning its contents. Only paths inside the directories listed in FTP_LOCAL_ROOTS can be written.

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": "download-to-local"
  }
}

Input Schema

NameRequiredDescriptionDefault
localPathYesDestination path on this computer (inside an FTP_LOCAL_ROOTS directory; the folder must exist)
overwriteNoReplace an existing local file (default: false)
remotePathYesPath of the file on the FTP server

Output Schema

NameRequiredDescriptionDefault
bytesYes
sha256Yes
localPathYes
remotePathYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv1.4.1
    • removedInput schema / additionalProperties
      Removed value: -false
  2. Addedv1.3.0

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already declare destructive=true, readOnly=false, and idempotent=true, so the safety profile is partly covered. The description adds genuinely new context: the transfer is streamed, contents are not returned, and writes are sandboxed to FTP_LOCAL_ROOTS directories. It does not discuss permissions, partial-failure behavior, or what happens when the remote file is missing.

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, front-loaded with the core action and followed by the hard constraint. No filler or redundant restatement of the title.

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?

An output schema exists, so return values need not be explained, and the description covers the key sandboxing constraint. Gaps remain around error conditions such as a nonexistent remote path or a missing destination folder during streaming, but nothing essential to invoking it correctly is absent.

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 three parameters are already documented, including the FTP_LOCAL_ROOTS constraint on localPath and the default for overwrite. The description repeats the roots constraint but adds no syntax, path format, or remotePath details beyond the schema, so baseline 3 applies.

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?

States a specific verb and resource ('Download a file from the FTP server') plus the destination and a distinguishing behavioral trait ('straight to a path on this computer, streamed, without returning its contents'). The contrast with a content-returning download is explicit enough that an agent can tell this apart from the sibling 'download-file' without opening either schema.

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 phrase 'without returning its contents' gives a clear selection criterion: use this when the file should land on disk rather than be read into the conversation. It does not name the alternative tool explicitly or state when-not-to-use, so it stops short of full routing guidance.

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