Skip to main content
Glama
cmssy-io

@cmssy/mcp-server

Official
by cmssy-io

delete_media_folder

Delete a media folder after user confirmation: removes only empty folders by default, with options to delete contained assets or force-delete assets still referenced.

Instructions

Delete a media folder. By default only empty folders are removed; pass deleteContents to also delete the assets inside, and force to override the refusal that protects assets still in use. Only call after the user explicitly confirmed the deletion.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
idNoThe folder id to delete
forceNoWhen true, delete assets that pages, records or branding still reference. The refusal names those files; pass this only after the user has seen them and said to go ahead. Requires the media:force-delete permission.
deleteContentsNoWhen true, also delete the assets inside the folder. When false (default), deletion is refused if the folder is not empty.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.73.1

TDQS

A4.5/5.0
Behavior5/5

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

With no annotations provided, the description carries the full burden of disclosing destructive behavior. It explains the empty-folder default, the deleteContents escalation, the force override protecting assets in use, and the requirement for explicit user confirmation. This is strong transparency for a destructive tool.

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?

Two tightly written sentences state the core behavior, the option flags, and the key safety condition. No filler or redundant phrasing; the critical confirmation condition comes last for emphasis.

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?

For a destructive tool with no annotations and no output schema, the description covers default behavior, escalation flags, the protection refusal, and the user-confirmation prerequisite. An agent has enough context to decide when and how to invoke it safely.

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 the baseline is 3. The description paraphrases the schema's parameter meanings but does not add substantive detail beyond what the input schema already provides.

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 has a specific verb ('Delete') and resource ('media folder'), and immediately clarifies the default behavior (only empty folders removed). This distinguishes it from sibling tools like delete_model and delete_webhook without needing to inspect schemas.

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?

The description gives a clear, explicit condition: 'Only call after the user explicitly confirmed the deletion.' It also explains when deleteContents and force apply. It does not name alternatives, but the conditional usage is strong and actionable.

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