Skip to main content
Glama
MCP Server for FTP Access

MCP Server for FTP Access

List Directory

list-directory
Read-only

List the contents of an FTP directory to see available files and subfolders. Use it to inspect remote paths before downloading, uploading, or managing files.

Instructions

List contents of an FTP directory

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>"
    },
    "name": "list-directory"
  }
}

Input Schema

NameRequiredDescriptionDefault
remotePathYesPath of the directory on the FTP server

Output Schema

NameRequiredDescriptionDefault
pathYes
entriesYes
fileCountYes
totalCountYes
directoryCountYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv1.4.1
    • removedInput schema / additionalProperties
      Removed value: -false
  2. Changed6 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
    • removedOutput schema / properties / entries / description
      Removed value: -"Directory entries"
    • removedOutput schema / properties / entries / items / additionalProperties
      Removed value: -false
    • removedOutput schema / properties / path / description
      Removed value: -"The directory that was listed"
  3. Addedv1.2.1
  4. Removedv1.2.0
  5. First observed

TDQS

C2.9/5.0
Behavior2/5

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

Annotations already declare readOnlyHint=true and openWorldHint=false, so safety is covered elsewhere. The description adds nothing beyond that: it does not say whether subdirectories are included, whether listing is recursive, whether hidden files appear, or how large listings are handled.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

A single short sentence with the resource front-loaded and no filler. It is efficiently sized for a one-parameter read tool, though the brevity leaves the content thinner than ideal.

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?

Because an output schema exists, return values need not be explained, and the sole parameter is fully documented in the schema. What remains missing is any statement of listing semantics (recursion, sorting, included entry types), which matters for a directory-listing call.

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% for the single remotePath parameter, so the baseline is 3. The description adds no path-format meaning such as absolute vs relative paths or how to address the server root, and simply repeats the resource noun.

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?

"List contents of an FTP directory" pairs a specific verb (list) with a specific resource (FTP directory) and its scope. It is not differentiated from siblings such as download-file or delete-file, but the verb/resource pair is unambiguous on its own.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description contains no when-to-use or when-not-to-use guidance, no prerequisites (e.g. connection/auth state), and no mention of alternatives. The agent must infer that this is the read operation preceding download-file or delete-file.

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