Skip to main content
Glama

unfour.api.delete_folder

unfour.api.delete_folder
Destructive

Recursively soft-deletes a folder, its descendant folders, and their saved requests, requiring confirmation bound to the current subtree and request revisions.

Instructions

Recursively soft-deletes a folder, descendant folders and their saved requests. Guarded policy requires confirmation bound to the current subtree and request revisions.

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": {
      "folderId": "<folderId>"
    },
    "name": "unfour.api.delete_folder"
  }
}

Input Schema

NameRequiredDescriptionDefault
confirmNo
folderIdYes
workspaceIdNo
confirmationTextNo
confirmation_textNo

Output Schema

NameRequiredDescriptionDefault
deletedYes
folderIdYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.15.0

TDQS

B3.2/5.0
Behavior3/5

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

Annotations already declare destructiveHint=true, so the safety profile is known; the description earns credit for adding that deletion is *soft* (recoverable) and recursive across descendants. However, the guard is described in opaque terms — it never says which parameter carries the confirmation, what form it takes, or that the agent must first read current revisions, which is the single most consequential behavior here.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Two sentences, front-loaded with the destructive scope before the guard condition, with no filler. The second sentence is dense jargon but not padded.

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

Completeness3/5

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

An output schema exists so return values need no explanation, and annotations cover destructiveness. But for a recursive destructive operation with five undocumented parameters, the description should at minimum explain how to satisfy the confirmation guard and whether workspaceId scopes the target tree.

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

Parameters2/5

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

Schema description coverage is 0% across five parameters, and the description does not compensate: folderId, workspaceId, confirm, confirmationText, and confirmation_text are never mapped or explained. The presence of two near-duplicate confirmation fields especially demands disambiguation that is entirely absent.

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

Purpose4/5

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

States a specific verb and scope: recursively soft-deletes a folder, its descendant folders, and their saved requests. This distinguishes it in substance from single-target siblings like delete_request or delete_collection, though it never names them explicitly.

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 guarded-policy sentence implies a precondition (confirmation bound to the current subtree and request revisions) but gives no explicit when-to-use versus move_folder/delete_request guidance, and no statement of what happens if the tree changed since the confirmation was prepared.

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

Deploy Server

Other Tools