Skip to main content
Glama
alebgl77

ftp-deploy-mcp

by alebgl77

Download a remote file

ftp_download
Destructive

Download a remote file to a local path and auto-create missing parent directories; existing files stay protected unless overwrite is set to true.

Instructions

Download a remote file to a local path, auto-creating local parent directories. Refuses to overwrite unless overwrite:true.

Input Schema

NameRequiredDescriptionDefault
serverNoName of the configured server. Defaults to the configured default, or the sole server.
overwriteNoAllow overwriting an existing local file.
local_pathYesLocal destination path, absolute or relative to the server's configured localRoot.
remote_pathYesRemote file path, relative to the server root.

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv0.3.2
    • changedOutput schema / oneOf
      Previous value: -[
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "local_path": {
      -        "type": "string"
      -      },
      -      "overwritten": {
      -        "type": "boolean"
      -      },
      -      "remote_path": {
      -        "type": "string"
      -      },
      -      "security_warning": {
      -        "type": [
      -          "string",
      -          "null"
      -        ]
      -      },
      -      "server": {
      -        "type": "string"
      -      },
      -      "size_bytes": {
      -        "minimum": 0,
      -        "type": "number"
      -      }
      -    },
      -    "required": [
      -      "server",
      -      "remote_path",
      -      "local_path",
      -      "size_bytes",
      -      "overwritten",
      -      "security_warning"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "error": {
      -        "additionalProperties": false,
      -        "properties": {
      -          "code": {
      -            "enum": [
      -              "CONFIG_REQUIRED",
      -              "CONFIG_INVALID",
      -              "SERVER_REQUIRED",
      -              "SERVER_UNKNOWN",
      -              "INVALID_ARGUMENT",
      -              "READ_ONLY",
      -              "TRANSPORT_POLICY",
      -              "HOST_KEY_REJECTED",
      -              "REMOTE_ROOT_REJECTED",
      -              "PATH_REJECTED",
      -              "NOT_FOUND",
      -              "ALREADY_EXISTS",
      -              "TRANSFER_LIMIT",
      -              "TRANSFER_VERIFY",
      -              "TARGET_CHANGED",
      -              "CANCELLED",
      -              "TIMEOUT",
      -              "DEPLOY_PARTIAL",
      -              "TRANSPORT_ERROR",
      -              "OUTPUT_LIMIT",
      -              "INTERNAL_ERROR",
      -              "SCAN_LIMIT",
      -              "CAPACITY_LIMIT"
      -            ],
      -            "type": "string"
      -          },
      -          "effects": {
      -            "enum": [
      -              "none",
      -              "possible",
      -              "confirmed"
      -            ],
      -            "type": "string"
      -          },
      -          "message": {
      -            "type": "string"
      -          },
      -          "next_action": {
      -            "enum": [
      -              "fix_input",
      -              "fix_config",
      -              "select_server",
      -              "inspect_target",
      -              "retry",
      -              "contact_operator",
      -              "none"
      -            ],
      -            "type": "string"
      -          },
      -          "partial": {
      -            "additionalProperties": false,
      -            "properties": {
      -              "completed_bytes": {
      -                "maximum": 9007199254740991,
      -                "minimum": 0,
      -                "type": "integer"
      -              },
      -              "completed_files": {
      -                "maximum": 9007199254740991,
      -                "minimum": 0,
      -                "type": "integer"
      -              },
      -              "failed_files": {
      -                "maximum": 9007199254740991,
      -                "minimum": 0,
      -                "type": "integer"
      -              },
      -              "final": {
      -                "type": "boolean"
      -              },
      -              "total_files": {
      -                "maximum": 9007199254740991,
      -                "minimum": 0,
      -                "type": "integer"
      -              }
      -            },
      -            "required": [
      -              "completed_files",
      -              "completed_bytes",
      -              "failed_files",
      -              "final"
      -            ],
      -            "type": "object"
      -          },
      -          "request_id": {
      -            "format": "uuid",
      -            "type": "string"
      -          },
      -          "retryable": {
      -            "type": "boolean"
      -          },
      -          "schema_version": {
      -            "const": 1,
      -            "type": "number"
      -          }
      -        },
      -        "required": [
      -          "schema_version",
      -          "code",
      -          "message",
      -          "retryable",
      -          "request_id",
      -          "next_action",
      -          "effects"
      -        ],
      -        "type": "object"
      -      }
      -    },
      -    "required": [
      -      "error"
      -    ],
      -    "type": "object"
      -  }
      -]New value: +[
      +  {
      +    "additionalProperties": false,
      +    "properties": {
      +      "local_path": {
      +        "type": "string"
      +      },
      +      "overwritten": {
      +        "type": "boolean"
      +      },
      +      "remote_path": {
      +        "type": "string"
      +      },
      +      "security_warning": {
      +        "type": [
      +          "string",
      +          "null"
      +        ]
      +      },
      +      "server": {
      +        "type": "string"
      +      },
      +      "size_bytes": {
      +        "minimum": 0,
      +        "type": "number"
      +      }
      +    },
      +    "required": [
      +      "server",
      +      "remote_path",
      +      "local_path",
      +      "size_bytes",
      +      "overwritten",
      +      "security_warning"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "additionalProperties": false,
      +    "properties": {
      +      "error": {
      +        "additionalProperties": false,
      +        "properties": {
      +          "code": {
      +            "enum": [
      +              "CONFIG_REQUIRED",
      +              "CONFIG_INVALID",
      +              "SERVER_REQUIRED",
      +              "SERVER_UNKNOWN",
      +              "INVALID_ARGUMENT",
      +              "READ_ONLY",
      +              "TRANSPORT_POLICY",
      +              "HOST_KEY_REJECTED",
      +              "REMOTE_ROOT_REJECTED",
      +              "PATH_REJECTED",
      +              "NOT_FOUND",
      +              "ALREADY_EXISTS",
      +              "TRANSFER_LIMIT",
      +              "TRANSFER_VERIFY",
      +              "TARGET_CHANGED",
      +              "CANCELLED",
      +              "TIMEOUT",
      +              "DEPLOY_PARTIAL",
      +              "TRANSPORT_ERROR",
      +              "OUTPUT_LIMIT",
      +              "INTERNAL_ERROR",
      +              "SCAN_LIMIT",
      +              "CAPACITY_LIMIT"
      +            ],
      +            "type": "string"
      +          },
      +          "effects": {
      +            "enum": [
      +              "none",
      +              "possible",
      +              "confirmed"
      +            ],
      +            "type": "string"
      +          },
      +          "message": {
      +            "type": "string"
      +          },
      +          "next_action": {
      +            "enum": [
      +              "fix_input",
      +              "fix_config",
      +              "select_server",
      +              "inspect_target",
      +              "retry",
      +              "contact_operator",
      +              "none"
      +            ],
      +            "type": "string"
      +          },
      +          "partial": {
      +            "additionalProperties": false,
      +            "properties": {
      +              "completed_bytes": {
      +                "maximum": 9007199254740991,
      +                "minimum": 0,
      +                "type": "integer"
      +              },
      +              "completed_files": {
      +                "maximum": 9007199254740991,
      +                "minimum": 0,
      +                "type": "integer"
      +              },
      +              "failed_files": {
      +                "maximum": 9007199254740991,
      +                "minimum": 0,
      +                "type": "integer"
      +              },
      +              "final": {
      +                "type": "boolean"
      +              },
      +              "total_files": {
      +                "maximum": 9007199254740991,
      +                "minimum": 0,
      +                "type": "integer"
      +              }
      +            },
      +            "required": [
      +              "completed_files",
      +              "completed_bytes",
      +              "failed_files",
      +              "final"
      +            ],
      +            "type": "object"
      +          },
      +          "request_id": {
      +            "format": "uuid",
      +            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
      +            "type": "string"
      +          },
      +          "retryable": {
      +            "type": "boolean"
      +          },
      +          "schema_version": {
      +            "const": 1,
      +            "type": "number"
      +          }
      +        },
      +        "required": [
      +          "schema_version",
      +          "code",
      +          "message",
      +          "retryable",
      +          "request_id",
      +          "next_action",
      +          "effects"
      +        ],
      +        "type": "object"
      +      }
      +    },
      +    "required": [
      +      "error"
      +    ],
      +    "type": "object"
      +  }
      +]
  2. Changed2 schema fields changedv0.2.0
    • changedInput schema / properties / local_path / description
      Previous value: -"Local destination path (relative paths resolve against the process cwd)."New value: +"Local destination path, absolute or relative to the server's configured localRoot."
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "$schema": "http://json-schema.org/draft-07/schema#",
      +  "oneOf": [
      +    {
      +      "additionalProperties": false,
      +      "properties": {
      +        "local_path": {
      +          "type": "string"
      +        },
      +        "overwritten": {
      +          "type": "boolean"
      +        },
      +        "remote_path": {
      +          "type": "string"
      +        },
      +        "security_warning": {
      +          "type": [
      +            "string",
      +            "null"
      +          ]
      +        },
      +        "server": {
      +          "type": "string"
      +        },
      +        "size_bytes": {
      +          "minimum": 0,
      +          "type": "number"
      +        }
      +      },
      +      "required": [
      +        "server",
      +        "remote_path",
      +        "local_path",
      +        "size_bytes",
      +        "overwritten",
      +        "security_warning"
      +      ],
      +      "type": "object"
      +    },
      +    {
      +      "additionalProperties": false,
      +      "properties": {
      +        "error": {
      +          "additionalProperties": false,
      +          "properties": {
      +            "code": {
      +              "enum": [
      +                "CONFIG_REQUIRED",
      +                "CONFIG_INVALID",
      +                "SERVER_REQUIRED",
      +                "SERVER_UNKNOWN",
      +                "INVALID_ARGUMENT",
      +                "READ_ONLY",
      +                "TRANSPORT_POLICY",
      +                "HOST_KEY_REJECTED",
      +                "REMOTE_ROOT_REJECTED",
      +                "PATH_REJECTED",
      +                "NOT_FOUND",
      +                "ALREADY_EXISTS",
      +                "TRANSFER_LIMIT",
      +                "TRANSFER_VERIFY",
      +                "TARGET_CHANGED",
      +                "CANCELLED",
      +                "TIMEOUT",
      +                "DEPLOY_PARTIAL",
      +                "TRANSPORT_ERROR",
      +                "OUTPUT_LIMIT",
      +                "INTERNAL_ERROR",
      +                "SCAN_LIMIT",
      +                "CAPACITY_LIMIT"
      +              ],
      +              "type": "string"
      +            },
      +            "effects": {
      +              "enum": [
      +                "none",
      +                "possible",
      +                "confirmed"
      +              ],
      +              "type": "string"
      +            },
      +            "message": {
      +              "type": "string"
      +            },
      +            "next_action": {
      +              "enum": [
      +                "fix_input",
      +                "fix_config",
      +                "select_server",
      +                "inspect_target",
      +                "retry",
      +                "contact_operator",
      +                "none"
      +              ],
      +              "type": "string"
      +            },
      +            "partial": {
      +              "additionalProperties": false,
      +              "properties": {
      +                "completed_bytes": {
      +                  "maximum": 9007199254740991,
      +                  "minimum": 0,
      +                  "type": "integer"
      +                },
      +                "completed_files": {
      +                  "maximum": 9007199254740991,
      +                  "minimum": 0,
      +                  "type": "integer"
      +                },
      +                "failed_files": {
      +                  "maximum": 9007199254740991,
      +                  "minimum": 0,
      +                  "type": "integer"
      +                },
      +                "final": {
      +                  "type": "boolean"
      +                },
      +                "total_files": {
      +                  "maximum": 9007199254740991,
      +                  "minimum": 0,
      +                  "type": "integer"
      +                }
      +              },
      +              "required": [
      +                "completed_files",
      +                "completed_bytes",
      +                "failed_files",
      +                "final"
      +              ],
      +              "type": "object"
      +            },
      +            "request_id": {
      +              "format": "uuid",
      +              "type": "string"
      +            },
      +            "retryable": {
      +              "type": "boolean"
      +            },
      +            "schema_version": {
      +              "const": 1,
      +              "type": "number"
      +            }
      +          },
      +          "required": [
      +            "schema_version",
      +            "code",
      +            "message",
      +            "retryable",
      +            "request_id",
      +            "next_action",
      +            "effects"
      +          ],
      +          "type": "object"
      +        }
      +      },
      +      "required": [
      +        "error"
      +      ],
      +      "type": "object"
      +    }
      +  ],
      +  "type": "object"
      +}
  3. First observedv0.1.0

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already declare destructiveHint=true, idempotentHint=false, and openWorldHint=true. The description adds genuinely new behavioral context on top of that: local parent directories are auto-created, and an existing local file causes refusal unless overwrite is set.

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 short sentences, front-loaded with the action and immediately followed by the two behaviors an agent must know. No filler.

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?

With an output schema present, return values need not be described, and all parameters are documented. The description covers the operation and its two notable side effects, leaving only minor gaps such as what happens on partial transfer failure.

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 are already documented in the schema. The description reinforces the overwrite parameter's effect but adds no syntax, default, or format detail beyond what the schema provides.

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?

States a specific verb ('Download') and resource ('a remote file to a local path') plus a scope note about auto-creating parent directories, which distinguishes it from ftp_upload and ftp_read. It never names a sibling explicitly, so differentiation is inferred rather than stated.

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?

The overwrite rule ('Refuses to overwrite unless overwrite:true') tells the agent a key precondition, but there is no explicit when-to-use/when-not guidance and no alternative tool is named for cases like reading a file into memory instead of downloading it.

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