Skip to main content
Glama

deleteShopCategory

Destructive

Delete a shop category together with every product in it, so members can no longer see or buy them. Deleting is permanent and cannot be undone; orders already placed stay. To keep a product, move it to another category with updateProduct first. Returns the category as it was before the delete. Get categoryId from getShopCategories. Never invent UUIDs; only use values from prior tool responses.

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": {
      "categoryId": "<categoryId>"
    },
    "name": "deleteShopCategory"
  }
}

Input Schema

NameRequiredDescriptionDefault
categoryIdYesThe id of the shop category.

Output Schema

NameRequiredDescriptionDefault
categoryYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.6/5.0
Behavior5/5

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

Annotations already flag destructive=true, but the description goes well beyond them: it discloses the cascading product deletion, that the action is permanent and irreversible, and that existing orders survive. It also states the return value is the pre-delete category and warns against inventing UUIDs, which is real operational context.

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?

Front-loaded with the destructive consequence, then consequences, then the safer alternative, then id provenance. Every sentence carries information, though 'returns the category as it was before the delete' is slightly redundant given an output schema exists.

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 single-parameter destructive tool with full annotation coverage and an output schema, the description covers blast radius, reversibility, side effects on orders, the safer path, and id sourcing. Nothing an agent needs to call it safely is missing.

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 categoryId type and format are already documented. The description adds provenance meaning the schema cannot convey — obtain the id from getShopCategories and never fabricate UUIDs — which is the failure mode most likely to break this call.

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 plus the crucial cascade scope: deleting the category also deletes every product in it, which is what separates it from deleteProduct. An agent can immediately tell what the operation does and how far it reaches.

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?

Gives explicit routing for the main decision: 'To keep a product, move it to another category with updateProduct first,' and points to getShopCategories for the required id. It stops short of saying when to delete a category versus deleting individual products, but the practical alternative is named.

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