Skip to main content
Glama

Delete folder

folder_delete
DestructiveIdempotent

Move a folder, and the files in it, to the trash for 30 days: id is the folder's id (any kind: personal, team or workspace), or its slug: in workspaceId when given, else in team, else one of your personal folders. They leave listings, and reads of the files answer DELETED through the folder. The files keep their filing and come back with the folder; the slug stays held. Personal: the owner; team: any member; workspace: who may delete its content, with why (expectedWorkspaceRevision optional). Repeating it returns the same dates.

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": {
      "id": "<id>"
    },
    "name": "folder_delete"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYesThe folder: its id (any kind), or its slug: in workspaceId when given, else in team, else one of your personal folders.
whyNoRequired for workspace items: one sentence on the goal this change serves, not a description of this edit. Every edit to workspace files, rows, folders and settings takes one (task operations need none); sessions and summaries record themselves from it. At most 300 characters.
teamNoWith a folder slug: the team (slug or id) it belongs to.
workspaceIdNoWith a folder slug: the workspace it is in (its id or its slug).
expectedWorkspaceRevisionNoOptional, a workspace folder's: refuse (CONFLICT) if the folder changed since this workspace_revision.

Output Schema

NameRequiredDescriptionDefault
idYes
typeYes
purgeAtYes
deletedAtYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / why / description
      Previous value: -"Required for workspace items: one sentence on what the person is trying to accomplish, in their terms, not a description of this edit. Every workspace write takes one; sessions and summaries record themselves from it. At most 300 characters."New value: +"Required for workspace items: one sentence on the goal this change serves, not a description of this edit. Every edit to workspace files, rows, folders and settings takes one (task operations need none); sessions and summaries record themselves from it. At most 300 characters."
  2. Changed3 schema fields changed
    • removedInput schema / properties / folder
      Removed value: -{
      -  "description": "The folder: its id (any kind), or its slug: in workspaceId when given, else in team, else one of your personal folders.",
      -  "maxLength": 200,
      -  "minLength": 1,
      -  "type": "string"
      -}
    • addedInput schema / properties / id
      Added value: +{
      +  "description": "The folder: its id (any kind), or its slug: in workspaceId when given, else in team, else one of your personal folders.",
      +  "maxLength": 200,
      +  "minLength": 1,
      +  "type": "string"
      +}
    • changedInput schema / required
      Previous value: -[
      -  "folder"
      -]New value: +[
      +  "id"
      +]
  3. Changed5 schema fields changed
    • changedInput schema / properties / workspaceId / description
      Previous value: -"With a folder slug: the workspace it is in."New value: +"With a folder slug: the workspace it is in (its id or its slug)."
    • removedInput schema / properties / workspaceId / format
      Removed value: -"uuid"
    • addedInput schema / properties / workspaceId / maxLength
      Added value: +64
    • addedInput schema / properties / workspaceId / minLength
      Added value: +1
    • removedInput schema / properties / workspaceId / pattern
      Removed value: -"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
  4. First observed

TDQS

A3.8/5.0
Behavior3/5

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

The annotations already declare destructiveHint=true and idempotentHint=true, so the safety profile is covered. The description does add real value beyond them: a 30-day trash window, files leaving listings while reads answer DELETED, files returning with the folder, the slug staying held, and the CONFLICT behavior via expectedWorkspaceRevision. It does not cover output shape or rate limits, so it sits at solid adequacy rather than richness.

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?

The effect and 30-day window are front-loaded, and every clause carries information. The middle sentences are densely punctuated and read as a run-on, which slightly hurts scanability but not substance.

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

Completeness5/5

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

For a destructive, permission-gated mutation with five parameters and an output schema, the description covers reversibility, listing behavior, post-restore state, slug retention, authorization per scope, the why requirement, conflict handling and idempotency. Nothing an agent needs before calling is missing.

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 id, why, team, workspaceId and expectedWorkspaceRevision in detail. The description largely restates the id resolution order and the workspace why requirement verbatim, adding only light framing ('expectedWorkspaceRevision optional'). Baseline 3 applies when the schema carries the semantics.

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 plus the exact effect: move a folder and its files to the trash for 30 days. The recoverability framing implicitly separates it from permanent deletion siblings like folder_empty, but no sibling is named, so an agent must infer the contrast.

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

Usage Guidelines4/5

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

Gives concrete preconditions per scope (personal: owner; team: any member; workspace: whoever may delete its content, plus a required why), which tells the agent when the call will succeed. It stops short of an explicit when-to-use-this-instead-of-X statement or a stated prohibition.

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.