Skip to main content
Glama
MCP Server for FTP Access

MCP Server for FTP Access

Upload File

upload-file
DestructiveIdempotent

Upload a file to an FTP server by specifying the remote path and content; set encoding to base64 for binary files.

Instructions

Upload a file to the FTP server. Pass encoding "base64" to upload binary content.

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>",
      "content": "<content>"
    },
    "name": "upload-file"
  }
}

Input Schema

NameRequiredDescriptionDefault
contentYesContent to upload to the file
encodingNoEncoding of the provided content (default: utf8)
remotePathYesDestination path on the FTP server

Output Schema

NameRequiredDescriptionDefault
remotePathYes
bytesWrittenYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv1.4.1
    • removedInput schema / additionalProperties
      Removed value: -false
  2. Changed3 schema fields changedv1.2.2
    • changedInput schema / $schema
      Previous value: -"http://json-schema.org/draft-07/schema#"New value: +"https://json-schema.org/draft/2020-12/schema"
    • changedOutput schema / $schema
      Previous value: -"http://json-schema.org/draft-07/schema#"New value: +"https://json-schema.org/draft/2020-12/schema"
    • removedOutput schema / additionalProperties
      Removed value: -false
  3. Addedv1.2.1
  4. Removedv1.2.0
  5. First observed

TDQS

B3.3/5.0
Behavior2/5

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

Annotations already declare destructiveHint=true and idempotentHint=true, so the description is not the primary source of the safety profile. Yet with a destructive mutation, the description should explain what is destroyed — specifically whether an existing file at remotePath is overwritten — and it says nothing beyond the basic action.

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 core action and free of filler. Every clause contributes information.

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

Completeness3/5

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

An output schema and rich annotations reduce the description's burden. Still, for a destructive upload operation with close sibling alternatives, the description omits overwrite behavior, path conventions, and size or permission constraints that an agent would benefit from knowing.

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 content, encoding, and remotePath in full, including the enum and default. The description's base64/binary note adds slight practical meaning but is essentially a restatement of the schema's encoding field.

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?

The description states a specific verb and resource ('Upload a file to the FTP server'), which is clear enough to act on. It does not differentiate from the sibling 'upload-local-file', leaving ambiguity about which upload path to choose.

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 operation, and there is a useful hint to use 'base64' for binary content. However, there is no explicit guidance on when to use this tool versus upload-local-file, append-file, or edit-file, nor any stated prerequisites.

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