Skip to main content
Glama

Delete Catalog Taxonomy

delete_catalog_taxonomy
Destructive

Delete an item category, brand or item group (kind=category|brand|group), as the app's delete does. A category that still has subcategories is refused (move or delete them first). The preview counts the items that carry the entry and, for a category or brand, the discounts that name it; neither is changed, so reassign items first with set_item_classification when they should land elsewhere. Requires an operator (unpinned) credential.

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": {
      "kind": "<kind>",
      "id": "<id>"
    },
    "name": "delete_catalog_taxonomy"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYesThe entry id (GUID) to delete.
kindYescategory, brand or group.
previewNoStep 1 of the required two-step write: set true to validate and receive a structured preview plus a single-use previewReceipt. Nothing changes until the commit call.
idempotencyKeyNoCaller-generated idempotency key; required with previewReceipt to commit.
previewReceiptNoStep 2 of the required two-step write: the receipt returned by the preview call. Supply together with a fresh idempotencyKey to commit; calls without it are refused.

Output Schema

NameRequiredDescriptionDefault
okNo
entryNo
deletedNo
previewNo
expiresAtNo
actionItemIdNo
confirmationNo
correlationIdNo
approvalResultNo
idempotencyKeyNo
previewReceiptNo
idempotentReplayNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.5/5.0
Behavior5/5

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

Goes well beyond the destructiveHint=true annotation: discloses the refusal rule for non-empty categories, that the preview only counts affected items and discounts without changing them, and that an operator (unpinned) credential is required. This is exactly the side-effect and authorization context a delete tool needs.

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?

Four compact sentences, front-loaded with the action and its scope, then the refusal rule, then the side-effect warning, then the credential requirement. Slightly dense with parentheticals, but no sentence is wasted.

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, credential-gated write with an output schema and fully documented parameters, the description covers the surprising behaviors (refusal, no-cascade, credential). It leaves the mandatory preview-then-commit sequencing to the schema's parameter descriptions, a minor gap only.

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 100% and the schema already documents kind, id, preview, idempotencyKey and previewReceipt in detail. The description only restates the kind enumeration and alludes to preview counting; it adds no new meaning for the two-step commit parameters, so baseline 3 applies.

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 precise verb and resource ('Delete an item category, brand or item group') and enumerates the exact kinds accepted, so an agent can distinguish it from list_catalog_taxonomy/save_catalog_taxonomy without opening the schema.

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 prerequisites and alternatives: a category with subcategories is refused and must have them moved or deleted first, and items that should land elsewhere must be reassigned via set_item_classification before the delete. It names a sibling and the condition that selects it.

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.

Resources