Skip to main content
Glama
shanmukhdatta

workspace-mcp

delete_directory

Delete a directory inside the workspace by specifying a relative path. Requires confirmation and supports recursive deletion of contents or only empty directories.

Instructions

Delete a directory inside the workspace.

Args: path: Path relative to the workspace root. confirm: Must be explicitly True; this is irreversible. recursive: If True (default), delete all contents too. If False, only succeeds when the directory is empty.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
pathYes
confirmNo
recursiveNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Behavior4/5

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

With no annotations, the description carries the full burden of disclosure. It explicitly warns that the operation is irreversible, that confirm must be True, and explains recursive behavior. This adds significant behavioral context beyond the schema, though it does not mention failure modes or side effects beyond the recursive constraint.

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?

The description is a terse overview followed by a clean Args block. Every sentence adds value; no fluff or repetition of schema fields. The structure is immediately scannable and digestible.

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?

The tool is a straightforward destructive operation, and the description covers all necessary context: scope, irreversibility, and parameter semantics. An output schema exists, so return values are not required in the description. Given the complexity, this is fully complete.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 0%, so the description is the sole source of parameter meaning. It explains path relative to the workspace root, confirm as an explicit requirement with irreversibility, and the default for recursive with conditions. This fully compensates for the schema gap.

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?

The description begins with a specific verb and resource: 'Delete a directory inside the workspace.' This clearly distinguishes it from sibling tools like delete_file and delete_project, and scope is defined relative to the workspace root.

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 when to use this tool (when deleting a directory) but does not explicitly mention alternatives or exclusion criteria. The parameter notes clarify the conditions for deletion (e.g., recursive vs. empty directory), but guidance on when to choose this tool over siblings is not provided.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/shanmukhdatta/workspace-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server