Skip to main content
Glama

apply_delete_folders

Destructive

Applies a confirmed folder-deletion plan in one call, creates a pre-change backup, deletes verified folders in order, and refreshes the extension UI.

Instructions

Apply the entire previewed delete plan in one call only after presenting all folders and receiving explicit confirmation. It saves exactly one pre-change backup before the first deletion, deletes each verified folder in order, then refreshes the open extension UI. Do not split cleanup into repeated single-folder deletes.

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": {
      "planId": "<planId>"
    },
    "name": "apply_delete_folders"
  }
}

Input Schema

NameRequiredDescriptionDefault
planIdYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0-dev.0

TDQS

A4.6/5.0
Behavior5/5

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

Annotations already flag destructiveHint=true and readOnlyHint=false; the description adds real operational detail beyond them: exactly one pre-change backup before the first deletion, ordered deletion of each verified folder, and a UI refresh afterward. It also discloses the confirmation gate and the batching contract, which an agent cannot infer from annotations.

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, all load-bearing, with the action and scope front-loaded and the confirmation prerequisite and anti-pattern following. Nothing is redundant or padding.

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 destructive single-parameter tool with annotations and no output schema, the description covers confirmation, backup, ordering, and post-action UI state. It leaves failure behavior (partial deletion, invalid or expired planId) unstated, which is the remaining gap for a high-risk mutation.

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 coverage is 0% for the single planId parameter, so the schema gives type and UUID pattern but no meaning. The description partially compensates by tying the ID to a 'previewed delete plan,' implying it comes from the preview tool, but it never states validity, expiry, or whether a plan can be reapplied.

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 with scope: 'Apply the entire previewed delete plan in one call.' It distinguishes itself from the single-folder sibling by emphasizing the whole plan and explicitly warning against splitting into repeated single-folder deletes.

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?

Explicit preconditions are given: only after presenting all folders and receiving explicit confirmation. It also states a clear negative case ('Do not split cleanup into repeated single-folder deletes'), which routes the agent away from the per-folder alternative even without naming it.

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