Skip to main content
Glama

Delete Folder

delete_folder

Delete a folder and its subfolders. Files are NOT deleted — they move back to the storage root. Deleting the files themselves is a separate, explicit action.

Input Schema

NameRequiredDescriptionDefault
folderIdYesFolder id (uuid) as returned by list_storage or create_folder

Output Schema

NameRequiredDescriptionDefault
okYes
folderIdYes
filesKeptYesAlways true — folder deletion never removes a file

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.8/5.0
Behavior4/5

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

Adds real value beyond the annotations: it explains that files survive and are moved back to the storage root, which is precisely the context needed to reconcile a 'delete' verb with destructiveHint=false. It does not state whether removing subfolders is reversible or what permissions are required.

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?

Three short sentences, each earning its place: the action first, then the non-obvious side effect, then the boundary against file deletion. No filler and the key surprise (files are preserved) is front-loaded.

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?

For a one-parameter tool with an output schema, the description covers the essential semantics: what gets removed and what does not. The only meaningful omission is recoverability of the deleted folder structure and any permission requirement.

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 folderId parameter is fully documented in the schema (100% coverage, including which tools produce the id), so the description need not restate it. The description adds nothing about the identifier and the baseline 3 applies.

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 folder') plus scope ('and its subfolders'), so the agent knows exactly what is affected. It separates the action from file deletion, but no sibling tool is named (and no delete-file tool appears in the sibling list), so routing is inferred rather than explicit.

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 description implies usage by contrasting folder deletion with deleting files ('a separate, explicit action'), which hints at when this tool is the wrong choice. It gives no positive guidance on when to prefer delete_folder over update_folder or move_file, and no prerequisites are stated.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources