Skip to main content
Glama
MCP Server for FTP Access

MCP Server for FTP Access

Delete Directory

delete-directory
DestructiveIdempotent

Deletes a directory from an FTP server by remote path, helping you clean up or reorganize remote storage.

Instructions

Delete a directory from the FTP server

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": "delete-directory"
  }
}

Input Schema

NameRequiredDescriptionDefault
remotePathYesPath of the directory to delete

Output Schema

NameRequiredDescriptionDefault
deletedYes
remotePathYes

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

C2.9/5.0
Behavior2/5

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

Annotations already declare destructiveHint=true, idempotentHint=true, readOnlyHint=false and openWorldHint=false, so the safety profile is covered structurally. The description adds nothing beyond that: it does not say whether deletion is recursive, what happens to non-empty directories, whether it fails or succeeds silently on a missing path, or what errors surface.

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?

One short, front-loaded sentence with no wasted wording. It is efficient, though the terseness borders on under-specification for a destructive operation.

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

Completeness2/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 burden, but for a destructive directory operation the description leaves out the behavior an agent most needs: recursion semantics, handling of non-empty directories, and failure modes. The definition is technically callable but not complete for the risk involved.

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?

The single remotePath parameter is fully described in the schema (100% coverage), and the description only restates that a directory path is involved. With one parameter and complete schema documentation, the baseline of 3 applies; no extra format, root-path, or path-syntax guidance is contributed.

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 and resource ("Delete a directory") plus the target system ("FTP server"), which is enough to tell it apart from delete-file by resource alone. It stops short of explicitly contrasting with siblings such as delete-file or rename-file, so it is clear but not fully differentiated.

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?

There is no guidance on when to use this versus delete-file, or versus a recursive/cleanup alternative. No prerequisites are given either, such as whether the directory must be empty or whether contents are removed with it.

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