Skip to main content
Glama

Empty folder

folder_empty
DestructiveIdempotent

Move the live files in a workspace folder to the trash and leave the folder: id is the folder's id, or its slug with workspaceId; the workspace is the folder's own. Needs why. expectedWorkspaceRevision is optional: send the folder's workspace revision to refuse (CONFLICT) if it changed since.

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_empty"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYesThe workspace folder: its id, or its slug with workspaceId.
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.
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
keptYes
failedYesEach file not moved, with the refusal code its own delete answers.
trashedYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields 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."
    • addedOutput schema / properties / failed / description
      Added value: +"Each file not moved, with the refusal code its own delete answers."
  2. Changed3 schema fields changed
    • removedInput schema / properties / folder
      Removed value: -{
      -  "description": "The workspace folder: its id, or its slug with workspaceId.",
      -  "maxLength": 200,
      -  "minLength": 1,
      -  "type": "string"
      -}
    • addedInput schema / properties / id
      Added value: +{
      +  "description": "The workspace folder: its id, or its slug with workspaceId.",
      +  "maxLength": 200,
      +  "minLength": 1,
      +  "type": "string"
      +}
    • changedInput schema / required
      Previous value: -[
      -  "folder"
      -]New value: +[
      +  "id"
      +]
  3. Added

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already declare destructive=true and idempotent=true, but the description adds real value beyond them: files go to the trash rather than being purged, the folder itself survives, and expectedWorkspaceRevision produces a CONFLICT refusal on drift. It does not say whether subfolders' files are included or what permissions are needed.

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?

Compact and front-loaded: the action comes first, then parameter guidance, then the revision check. The telegraphic 'Needs why.' fragment is efficient but slightly cryptic in isolation.

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?

With an output schema present, return values need no explanation, and the destructive/conflict/why semantics are all covered. Gaps are minor: recursion into subfolders and required permissions are unstated for a destructive mutation.

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%, so all four parameters are already documented. The description restates the id/slug+workspaceId relationship and the concurrency-check purpose but adds only the clarifying note that the workspace is 'the folder's own', which roughly matches the schema baseline.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

Specific verb and resource: 'Move the live files in a workspace folder to the trash and leave the folder'. The trailing clause 'leave the folder' cleanly distinguishes it from folder_delete, which an agent could otherwise confuse it with.

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?

Usage context is clear (clear out contents without removing the folder), and the 'Needs why' line flags a required behavioral step. It stops short of explicitly naming the alternative (folder_delete) or stating when not to use this tool, so it is strong but not the full when/when-not/alternatives pattern.

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.