Skip to main content
Glama
mcp-local-reference

mcp-local-reference

delete_collection

Delete a collection without deleting its items; items lose membership and sub-collections become orphans. Run dry-run first to list both impacts before any write.

Instructions

Delete a collection. Items inside are NOT deleted — they lose membership in this collection. Sub-collections become orphans. Dry-run lists both blast surfaces before any write.

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

Input Schema

NameRequiredDescriptionDefault
dry_runNo
collection_keyYes

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.8/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and largely meets it: it discloses the blast radius (items are not deleted, sub-collections are orphaned) and states that dry-run enumerates both affected surfaces before any write. It omits whether the delete is reversible, what permissions are required, and what dry_run=true as a default implies for a caller who omits it.

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 short sentences, survival semantics front-loaded before the dry-run note, no filler. Every sentence contributes information an agent would otherwise have to guess.

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?

An output schema exists, so return values need no explanation, and the blast-radius disclosure is the main thing an agent needs before a destructive call. The remaining gap is irreversible/permission context for a mutation tool with zero annotation coverage.

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 0%, so the description must compensate for the two parameters. It gives dry_run real meaning ('lists both blast surfaces before any write'), which is more than the schema offers, but collection_key is left entirely unexplained and the interaction with the schema's default of true is not addressed.

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?

The first sentence gives a specific verb and resource ('Delete a collection'), and the following sentences immediately clarify the scope of the deletion. It does not name a sibling to contrast with (e.g., remove_items_from_collection), but the entity being destroyed is unambiguous.

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 description implies when this is appropriate by stressing that items survive and only membership is lost, which implicitly distinguishes it from item-level removal tools. However, it never states explicit conditions or alternatives such as 'use remove_items_from_collection to detach a subset of items instead'.

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