Skip to main content
Glama

Delete a folder

tp_delete_folder
Destructive

Deletes a folder from the user's TransformPipe account. Use it when the user asks to delete or remove a folder. By default the folder alone is removed and its documents and subfolders move up one level, to its parent folder or the top level. With with_documents: true, every document in the folder and its subfolders is moved to the Trash as well, where it is kept for 14 days and then deleted for good; tp_restore_document puts one back, outside any folder. The folder itself, its sharing settings and its reader list are deleted for good, and a shared folder's link stops working at once. confirm: true is required on every call and is set after the user has named the folder and agreed to delete it; without it nothing is deleted and the response describes what the folder contains and what would happen to it.

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": {
      "folder": "<folder>",
      "confirm": "<confirm>"
    },
    "name": "tp_delete_folder"
  }
}

Input Schema

NameRequiredDescriptionDefault
folderYesThe folder: an id from tp_list_folders, or a path from the top such as "Devart AI/Home".
confirmYesSet true after the user has asked for this folder to be deleted — and, with `with_documents`, its documents.
with_documentsNoAlso move every document in the folder and its subfolders to the Trash, where they are kept 14 days. Default false: they move up one level.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.7/5.0
Behavior5/5

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

Beyond the annotations, the description discloses the critical behaviors: default documents/subfolders move up one level, `with_documents` sends them to Trash for 14 days, and the folder with sharing settings and reader list is permanently deleted. It also states that a shared folder link stops working immediately and that a missing confirmation produces a descriptive no-op response.

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?

The description is front-loaded with purpose, then moves through default behavior, the destructive `with_documents` option, permanent deletion effects, and the confirmation gate. Every sentence contributes necessary context for a destructive operation, and there is no filler.

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 output schema, the description covers what is deleted permanently, what is recoverable for 14 days, where restored documents go, how sharing links are affected, and what happens when confirmation is missing. Nothing essential for safe invocation is absent.

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 coverage is already 100%, so the baseline is 3, but the description adds meaningful semantics for `confirm` by explaining the no-deletion fallback and response behavior. It also reinforces `with_documents` with the 14-day Trash period and the `tp_restore_document` recovery path, though the `folder` parameter itself adds little beyond the schema.

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 states a specific verb and resource: deleting a folder from a TransformPipe account. It clearly distinguishes folder deletion from document behavior by explaining default reparenting and the `with_documents` option. An agent can tell this apart from document-deletion and restore siblings.

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?

It gives a direct trigger: use when the user asks to delete or remove a folder, plus the strong precondition that `confirm: true` should be set only after the user has named the folder and agreed. It does not explicitly name or exclude sibling tools such as `tp_delete_document`, but the context is clear enough for selection.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.