Skip to main content
Glama
md-log

md-log-mcp

Official
by md-log

Delete Folder

delete_folder

Delete a folder with required confirmation. By default, deletes only empty folders; use cascade to remove folder and all contents (soft-deletes documents).

Instructions

Delete a folder. Requires confirm:true (otherwise VALIDATION). By default only an EMPTY folder is deleted (a non-empty one is refused); pass cascade:true to soft-delete the whole subtree — every subfolder and document under it (like rm -r). Documents are soft-deleted (recoverable), but prefer move_folder/move_markdown when reorganizing.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
pathYesPOSIX path of the folder to delete.
cascadeNotrue = delete the folder AND everything under it. Default false = refuse unless empty.
confirmYesMust be true to actually delete. A safety guard against accidental deletes.
Behavior5/5

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

Discloses required confirm flag, default behavior (only empty folder), cascade effect (like rm -r), and that documents are soft-deleted (recoverable). No annotations present; description carries full burden.

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?

Three sentences, no redundancy. Front-loaded with 'Delete a folder' then immediate conditions.

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?

Covers behavior, safety, alternatives, and recovery. No output schema, but description explains enough for correct invocation.

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

Parameters4/5

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

Schema has 100% coverage but description adds context: path is POSIX, confirm as safety guard, cascade for non-empty. Incorporates real-world analogy (rm -r).

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?

Clear verb 'delete' with specific resource 'folder'. Distinguishes from siblings by mentioning move_folder/move_markdown as alternatives for reorganization.

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

Usage Guidelines5/5

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

Explicitly states when to use (delete folder) and when not (reorganizing, prefer move tools). Provides conditions for cascade and confirm flags.

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/md-log/md-log-mcp'

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