Skip to main content
Glama
alebgl77

ftp-deploy-mcp

by alebgl77

Deploy a local directory

ftp_deploy
Destructive

Recursively upload a local directory to an FTP, FTPS, or SFTP server over one connection, with exclude/include globs and dry-run preview.

Instructions

Recursively upload a local directory to the server over a single connection, applying default and custom exclude globs (and optional include globs). Supports dry_run.

Input Schema

NameRequiredDescriptionDefault
serverNoName of the configured server. Defaults to the configured default, or the sole server.
dry_runNoIf true, list what would be uploaded without connecting.
excludeNoExtra glob patterns to exclude, added to the built-in defaults.
includeNoGlob patterns; when given, a file must match at least one to be uploaded.
local_dirYesLocal directory to deploy, absolute or relative to the server's configured localRoot.
remote_dirNoDestination remote directory, relative to the server root. Defaults to the 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": {
      -      "aborted_early": {
      -        "type": "boolean"
      -      },
      -      "complete": {
      -        "type": "boolean"
      -      },
      -      "duration_ms": {
      -        "minimum": 0,
      -        "type": "integer"
      -      },
      -      "failed_count": {
      -        "minimum": 0,
      -        "type": "integer"
      -      },
      -      "failures": {
      -        "items": {
      -          "additionalProperties": false,
      -          "properties": {
      -            "message": {
      -              "type": "string"
      -            },
      -            "path": {
      -              "type": "string"
      -            }
      -          },
      -          "required": [
      -            "path",
      -            "message"
      -          ],
      -          "type": "object"
      -        },
      -        "type": "array"
      -      },
      -      "failures_omitted": {
      -        "minimum": 0,
      -        "type": "integer"
      -      },
      -      "mode": {
      -        "enum": [
      -          "dry_run",
      -          "deploy"
      -        ],
      -        "type": "string"
      -      },
      -      "planned": {
      -        "items": {
      -          "additionalProperties": false,
      -          "properties": {
      -            "path": {
      -              "type": "string"
      -            },
      -            "size_bytes": {
      -              "minimum": 0,
      -              "type": "number"
      -            }
      -          },
      -          "required": [
      -            "path",
      -            "size_bytes"
      -          ],
      -          "type": "object"
      -        },
      -        "type": "array"
      -      },
      -      "planned_omitted": {
      -        "minimum": 0,
      -        "type": "integer"
      -      },
      -      "remote_base": {
      -        "type": "string"
      -      },
      -      "security_warning": {
      -        "type": [
      -          "string",
      -          "null"
      -        ]
      -      },
      -      "server": {
      -        "type": "string"
      -      },
      -      "total_bytes": {
      -        "minimum": 0,
      -        "type": "number"
      -      },
      -      "total_files": {
      -        "minimum": 0,
      -        "type": "integer"
      -      },
      -      "uploaded": {
      -        "items": {
      -          "additionalProperties": false,
      -          "properties": {
      -            "path": {
      -              "type": "string"
      -            },
      -            "size_bytes": {
      -              "minimum": 0,
      -              "type": "number"
      -            }
      -          },
      -          "required": [
      -            "path",
      -            "size_bytes"
      -          ],
      -          "type": "object"
      -        },
      -        "type": "array"
      -      },
      -      "uploaded_bytes": {
      -        "minimum": 0,
      -        "type": "number"
      -      },
      -      "uploaded_count": {
      -        "minimum": 0,
      -        "type": "integer"
      -      },
      -      "uploaded_omitted": {
      -        "minimum": 0,
      -        "type": "integer"
      -      }
      -    },
      -    "required": [
      -      "mode",
      -      "server",
      -      "remote_base",
      -      "total_files",
      -      "total_bytes",
      -      "uploaded_count",
      -      "uploaded_bytes",
      -      "failed_count",
      -      "aborted_early",
      -      "complete",
      -      "duration_ms",
      -      "security_warning",
      -      "uploaded",
      -      "uploaded_omitted",
      -      "planned",
      -      "planned_omitted",
      -      "failures",
      -      "failures_omitted"
      -    ],
      -    "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": {
      +      "aborted_early": {
      +        "type": "boolean"
      +      },
      +      "complete": {
      +        "type": "boolean"
      +      },
      +      "duration_ms": {
      +        "maximum": 9007199254740991,
      +        "minimum": 0,
      +        "type": "integer"
      +      },
      +      "failed_count": {
      +        "maximum": 9007199254740991,
      +        "minimum": 0,
      +        "type": "integer"
      +      },
      +      "failures": {
      +        "items": {
      +          "additionalProperties": false,
      +          "properties": {
      +            "message": {
      +              "type": "string"
      +            },
      +            "path": {
      +              "type": "string"
      +            }
      +          },
      +          "required": [
      +            "path",
      +            "message"
      +          ],
      +          "type": "object"
      +        },
      +        "type": "array"
      +      },
      +      "failures_omitted": {
      +        "maximum": 9007199254740991,
      +        "minimum": 0,
      +        "type": "integer"
      +      },
      +      "mode": {
      +        "enum": [
      +          "dry_run",
      +          "deploy"
      +        ],
      +        "type": "string"
      +      },
      +      "planned": {
      +        "items": {
      +          "additionalProperties": false,
      +          "properties": {
      +            "path": {
      +              "type": "string"
      +            },
      +            "size_bytes": {
      +              "minimum": 0,
      +              "type": "number"
      +            }
      +          },
      +          "required": [
      +            "path",
      +            "size_bytes"
      +          ],
      +          "type": "object"
      +        },
      +        "type": "array"
      +      },
      +      "planned_omitted": {
      +        "maximum": 9007199254740991,
      +        "minimum": 0,
      +        "type": "integer"
      +      },
      +      "remote_base": {
      +        "type": "string"
      +      },
      +      "security_warning": {
      +        "type": [
      +          "string",
      +          "null"
      +        ]
      +      },
      +      "server": {
      +        "type": "string"
      +      },
      +      "total_bytes": {
      +        "minimum": 0,
      +        "type": "number"
      +      },
      +      "total_files": {
      +        "maximum": 9007199254740991,
      +        "minimum": 0,
      +        "type": "integer"
      +      },
      +      "uploaded": {
      +        "items": {
      +          "additionalProperties": false,
      +          "properties": {
      +            "path": {
      +              "type": "string"
      +            },
      +            "size_bytes": {
      +              "minimum": 0,
      +              "type": "number"
      +            }
      +          },
      +          "required": [
      +            "path",
      +            "size_bytes"
      +          ],
      +          "type": "object"
      +        },
      +        "type": "array"
      +      },
      +      "uploaded_bytes": {
      +        "minimum": 0,
      +        "type": "number"
      +      },
      +      "uploaded_count": {
      +        "maximum": 9007199254740991,
      +        "minimum": 0,
      +        "type": "integer"
      +      },
      +      "uploaded_omitted": {
      +        "maximum": 9007199254740991,
      +        "minimum": 0,
      +        "type": "integer"
      +      }
      +    },
      +    "required": [
      +      "mode",
      +      "server",
      +      "remote_base",
      +      "total_files",
      +      "total_bytes",
      +      "uploaded_count",
      +      "uploaded_bytes",
      +      "failed_count",
      +      "aborted_early",
      +      "complete",
      +      "duration_ms",
      +      "security_warning",
      +      "uploaded",
      +      "uploaded_omitted",
      +      "planned",
      +      "planned_omitted",
      +      "failures",
      +      "failures_omitted"
      +    ],
      +    "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_dir / description
      Previous value: -"Local directory to deploy (relative paths resolve against the process cwd)."New value: +"Local directory to deploy, 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": {
      +        "aborted_early": {
      +          "type": "boolean"
      +        },
      +        "complete": {
      +          "type": "boolean"
      +        },
      +        "duration_ms": {
      +          "minimum": 0,
      +          "type": "integer"
      +        },
      +        "failed_count": {
      +          "minimum": 0,
      +          "type": "integer"
      +        },
      +        "failures": {
      +          "items": {
      +            "additionalProperties": false,
      +            "properties": {
      +              "message": {
      +                "type": "string"
      +              },
      +              "path": {
      +                "type": "string"
      +              }
      +            },
      +            "required": [
      +              "path",
      +              "message"
      +            ],
      +            "type": "object"
      +          },
      +          "type": "array"
      +        },
      +        "failures_omitted": {
      +          "minimum": 0,
      +          "type": "integer"
      +        },
      +        "mode": {
      +          "enum": [
      +            "dry_run",
      +            "deploy"
      +          ],
      +          "type": "string"
      +        },
      +        "planned": {
      +          "items": {
      +            "additionalProperties": false,
      +            "properties": {
      +              "path": {
      +                "type": "string"
      +              },
      +              "size_bytes": {
      +                "minimum": 0,
      +                "type": "number"
      +              }
      +            },
      +            "required": [
      +              "path",
      +              "size_bytes"
      +            ],
      +            "type": "object"
      +          },
      +          "type": "array"
      +        },
      +        "planned_omitted": {
      +          "minimum": 0,
      +          "type": "integer"
      +        },
      +        "remote_base": {
      +          "type": "string"
      +        },
      +        "security_warning": {
      +          "type": [
      +            "string",
      +            "null"
      +          ]
      +        },
      +        "server": {
      +          "type": "string"
      +        },
      +        "total_bytes": {
      +          "minimum": 0,
      +          "type": "number"
      +        },
      +        "total_files": {
      +          "minimum": 0,
      +          "type": "integer"
      +        },
      +        "uploaded": {
      +          "items": {
      +            "additionalProperties": false,
      +            "properties": {
      +              "path": {
      +                "type": "string"
      +              },
      +              "size_bytes": {
      +                "minimum": 0,
      +                "type": "number"
      +              }
      +            },
      +            "required": [
      +              "path",
      +              "size_bytes"
      +            ],
      +            "type": "object"
      +          },
      +          "type": "array"
      +        },
      +        "uploaded_bytes": {
      +          "minimum": 0,
      +          "type": "number"
      +        },
      +        "uploaded_count": {
      +          "minimum": 0,
      +          "type": "integer"
      +        },
      +        "uploaded_omitted": {
      +          "minimum": 0,
      +          "type": "integer"
      +        }
      +      },
      +      "required": [
      +        "mode",
      +        "server",
      +        "remote_base",
      +        "total_files",
      +        "total_bytes",
      +        "uploaded_count",
      +        "uploaded_bytes",
      +        "failed_count",
      +        "aborted_early",
      +        "complete",
      +        "duration_ms",
      +        "security_warning",
      +        "uploaded",
      +        "uploaded_omitted",
      +        "planned",
      +        "planned_omitted",
      +        "failures",
      +        "failures_omitted"
      +      ],
      +      "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

A4.3/5.0
Behavior4/5

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

Annotations already declare destructiveHint=true, readOnlyHint=false, openWorldHint=true, and idempotentHint=false. The description adds that the upload occurs over a single connection, mentions dry_run support, and explains glob filtering behavior, which clarifies mutation semantics beyond the annotations. It doesn't detail what happens on failure or existing remote files, keeping it at 4.

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 sentence that is front-loaded with the core action and scope, then packed with key modifiers (single connection, globs, dry_run) without any filler.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given the presence of an output schema, rich schema descriptions, and explicit destructive annotations, the description is complete enough for an agent to invoke it correctly. It needn't explain return values or failure modes covered elsewhere.

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 coverage is 100%, so the schema already documents all parameters including dry_run, exclude, include, and remote_dir. The description repeats the existence of dry_run and globs but adds no syntax or edge-case details beyond the schema. Baseline 3 is appropriate.

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 uses a specific verb (upload) and resource (local directory), and quantifies recursion and single-connection behavior. It clearly distinguishes ftp_deploy from ftp_upload (single file) by mentioning directory deployment.

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 implies deployment of a directory, with optional dry_run and glob filtering. It does not explicitly state when to use this instead of ftp_upload or ftp_test, but the directory focus and dry_run hint provide reasonable context.

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