Skip to main content
Glama

Remove an empty folder

rmdir
Destructive

Removes an empty folder ("project/folder"). A folder with docs or folders in it stays, and nothing is deleted with it. Only when the user asks.

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": "<folder>"
    },
    "name": "rmdir"
  }
}

Input Schema

NameRequiredDescriptionDefault
folderYes"project/folder" or "project/folder/subfolder".
workspaceNoWorkspace slug. Default: the only one, else the user's personal one.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already declare destructiveHint=true and readOnlyHint=false, so the safety profile is known; the description adds genuinely new behavior beyond that — the operation is non-recursive and cascades nothing ('nothing is deleted with it', a non-empty folder 'stays'). It does not say whether a non-empty or missing folder produces an error versus a silent no-op, which matters given idempotentHint=false.

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?

Short, front-loaded, and the safety-relevant precondition comes before the consent rule. 'And nothing is deleted with it' overlaps somewhat with 'a folder with docs or folders in it stays', so there is minor redundancy.

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 two-parameter destructive tool with full schema coverage and a rich annotation set, the description covers the essential unknowns: emptiness precondition, no cascading deletion, and user-consent requirement. Only the failure mode for a non-empty or nonexistent folder is left unstated.

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 both parameters are already documented; the description only restates the path format example that the schema already supplies and says nothing about the workspace parameter's defaulting behavior. Baseline 3 is appropriate since the schema carries the parameter burden.

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?

States a specific verb and resource ('Removes an empty folder') and immediately bounds the scope to empty folders, which clearly separates it from mkdir and from any content-deleting operation. An agent can identify the operation and its precondition without opening the schema.

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?

'Only when the user asks' gives an explicit consent gate that rules out proactive cleanup, and the note that a folder containing docs or folders 'stays' tells the agent when the call will not succeed. It does not name an alternative (e.g. listing with tree/ls first to verify emptiness), so it stops just short of full when/when-not guidance.

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