Skip to main content
Glama

Delete Collection

delete_collection

Permanently deletes a Bruno collection directory and all its requests from disk, plus its workspace entry. Use it to remove a collection entirely; unregister it instead to keep files.

Instructions

Permanently delete a Bruno collection: the collection directory and everything inside it is removed from disk, and its workspace registry entry with it. Nothing here can be recovered through this server. Only a directory that is itself a collection root — one holding opencollection.yml or bruno.json — can be deleted. To keep the files and only stop the collection being listed, use unregister_collection instead.

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": {
      "collectionPath": "<collectionPath>",
      "confirm": "<confirm>"
    },
    "name": "delete_collection"
  }
}

Input Schema

NameRequiredDescriptionDefault
confirmYesMust be true. Explicit acknowledgement that the directory and every request in it are deleted permanently.
workspacePathNoAbsolute path of the workspace.yml holding its entry. Defaults to the same one list_collections reads: BRUNO_WORKSPACE_PATH, or the Bruno app's workspace for this platform.
collectionPathYesAbsolute path of the collection directory to delete. Use the path from list_collections.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv2.4.0

TDQS

A4.9/5.0
Behavior5/5

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

With no annotations supplied, the description carries the full burden and does so: it discloses permanent, on-disk destruction, that nothing is recoverable through the server, and that the workspace registry entry is also removed. It also flags the structural precondition that bounds what can be deleted.

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?

Four sentences, each earning its place: what is destroyed, irrecoverability, eligibility precondition, and the safer alternative. The destructive consequence is front-loaded before the conditions.

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 mutation tool with no annotations and no output schema, the description covers consequence, irreversibility, precondition, and the sibling alternative. The only unaddressed item is the response shape, which is minor for a delete operation.

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 100%, so the schema already documents all three parameters; baseline is 3. The description adds meaning by tying deletion to the workspace registry entry (illuminating the workspacePath parameter) and by constraining collectionPath to a genuine collection root, which the schema text alone does not fully convey.

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 ("Permanently delete a Bruno collection") and immediately defines the scope: the collection directory, everything inside it, and its workspace registry entry. That is far more precise than the bare name/title, and it is distinguishable from sibling delete_request or unregister_collection.

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 names the alternative and the condition that selects it: "To keep the files and only stop the collection being listed, use unregister_collection instead." It also states a precondition for use (the directory must be a collection root holding opencollection.yml or bruno.json).

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