Skip to main content
Glama

delete_directory_tool

Delete a directory by path, optionally removing all contents recursively to clean up unwanted files.

Instructions

Delete a directory

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": {
      "path": "<path>"
    },
    "name": "delete_directory_tool"
  }
}

Input Schema

NameRequiredDescriptionDefault
pathYesAbsolute or relative path to the directory
recursiveNoIf True, delete directory and all contents

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

C2.3/5.0
Behavior2/5

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

No annotations are provided, so the description carries the full behavioral burden for a destructive mutation, and it discloses almost nothing: it does not say deletion is irreversible, whether it fails on non-empty directories, what permissions are required, or what is returned. The single word "Delete" is the only signal of destructive intent, which is far short of adequate for an operation that removes data.

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 wording is front-loaded and contains zero filler, but at four words it is under-specified rather than genuinely concise. Brevity here comes at the cost of the behavioral context this destructive tool needs.

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

Completeness2/5

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

For a destructive, annotation-free tool with no output schema, the definition should at minimum warn about irreversibility and clarify the empty-vs-recursive directory case. The schema covers parameters, but confirmation behavior and failure modes are left entirely unspecified.

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 the path and recursive parameters are already fully documented in the schema, including the default false. The description therefore adds no parameter meaning beyond structured fields; baseline 3 applies.

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

Purpose2/5

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

"Delete a directory" is a bare restatement of the tool name delete_directory_tool; it adds no scope, target domain, or distinguishing detail versus siblings such as delete_file_tool. The verb+resource pair is technically present, but an agent learns nothing it could not infer from the name alone.

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

Usage Guidelines2/5

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

There is no when-to-use guidance, no statement of preconditions, and no mention of when an agent should pick a different sibling (e.g., delete_file_tool for files, or a move operation instead of deletion). No exclusions or context are supplied.

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