Skip to main content
Glama

Delete folder

delete_folder
DestructiveIdempotent

Delete a folder. Its sites and any sub-folders are kept and moved up to the deleted folder’s parent (the drive root if it was top-level), a sub-folder or a page taking the next free slug there when the parent already holds its own, so no content is lost; each page's old workspace-host address forwards to its new one until another page takes it. Only someone who can manage the folder may delete it. In the SnapHost marketing workspace the Marketing folder is never deleted; a folder inside it may be, and its pages keep serving one level up at shorter /lp addresses, so the result names every address that ended and every one that started.

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": {
      "folder_id": "<folder_id>"
    },
    "name": "delete_folder"
  }
}

Input Schema

NameRequiredDescriptionDefault
folder_idYesThe folder id to delete
workspace_idNoOptional: the workspace to act in, from list_workspaces (the connection reaches the person's personal space and every workspace they are a member of). Required on a write when the connection reaches more than one workspace. Omit to act in the personal space (for an older single-workspace connection, the one workspace it was authorized for).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / workspace_id / description
      Previous value: -"Optional: the workspace (the personal space or a Pro workspace) to act in, from list_workspaces. Omit to act in the token owner's own account."New value: +"Optional: the workspace to act in, from list_workspaces (the connection reaches the person's personal space and every workspace they are a member of). Required on a write when the connection reaches more than one workspace. Omit to act in the personal space (for an older single-workspace connection, the one workspace it was authorized for)."
  2. First observed

TDQS

A3.8/5.0
Behavior5/5

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

The annotations already declare destructiveHint=true and idempotentHint=true, but the description goes well beyond them: it discloses that content is not destroyed but re-parented, that collisions trigger next-free-slug assignment, that old workspace-host addresses redirect until reclaimed, and that the response enumerates addresses that ended and started. For a destructive tool, that is exactly the consequence-level detail an agent needs before invoking it.

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

Conciseness3/5

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

The purpose sentence is correctly front-loaded, but everything after it collapses into a single dense run-on sentence chaining re-parenting, slug collisions, redirects, permissions, and a workspace-specific exception. Each fact earns its place, yet the structure makes it hard to scan and the deployment-specific Marketing note is buried mid-sentence.

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 destructive tool with no output schema, the description covers nearly everything an agent needs: non-loss of content, permission gate, redirect behavior, the workspace-specific exception, and even the shape of the result. The only gap is that workspace_id's effect on scoping is left entirely to the schema, which is a minor omission given its thoroughness 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 description coverage is 100% and both parameters (folder_id, workspace_id) are fully documented in the schema, including the multi-workspace requirement for writes. The description adds no parameter-level meaning beyond that, such as what folder_id format is expected, so 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?

The opening verb+resource ("Delete a folder") is unambiguous, and the description immediately scopes the operation by explaining that contained sites and sub-folders survive and are re-parented, which distinguishes it from delete_site/delete_collection behaviorally. It stops short of naming the sibling delete tools an agent might confuse it with, so it is clear but not fully self-differentiating.

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?

It gives a real prerequisite ("Only someone who can manage the folder may delete it") and one hard exclusion (the Marketing folder in the SnapHost workspace is never deleted), which is meaningful when-not guidance. However, it never tells the agent which tool to use instead for the adjacent tasks (deleting a site, a collection, moving a folder), leaving the routing to inference from sibling names.

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.