Skip to main content
Glama

Delete shop content

shop_delete
Destructive

Deletes products, product and category images, stock records, basket items and product comments, and clears the wishlist. Cannot be undone.

Input Schema

NameRequiredDescriptionDefault
idNoGoods, category, comment, or basket line id.
idsNoIds separated by commas (invoice_*: order ids, also separated by |; stock_remove).
imgNoImage slot number, 0 for the main image.
actionYesOperation to run. Each oneOf entry describes one action and lists its parameters.
fieldsNoExtra form keys (checkout field_N, stock_*, var_*, cnt_REC_ID, …). Routing and mode keys (method, mode, del, page, …) are ignored.
confirmNoPass true only after the user approves this change. Required by: delete, img_del, category_image_delete, variation_dict_delete, stock_remove, stock_remove_all, comments_delete, wishlist_clear. Required in some cases by: basket_delete (see the action).
del_allNo1 = delete all images (img_del); otherwise img_del needs img.
files_sequenceNoImage order after single img_del.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / ids / description
      Previous value: -"Comma-separated ids (invoice_*, stock_remove)."New value: +"Ids separated by commas (invoice_*: order ids, also separated by |; stock_remove)."
  2. Added

TDQS

A4/5.0
Behavior4/5

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

Annotations already declare destructiveHint=true and readOnlyHint=false, but the description adds the important behavioral detail that deletion 'Cannot be undone' and specifies the full scope of what may be destroyed. It does not cover permissions or confirm requirements, but those are handled by the schema and annotations.

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?

Two sentences, front-loaded with the core action and resource scope, followed by the irreversibility warning. Every sentence earns its place with no wasted words.

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 multi-action destructive tool with rich schema and annotations, the description is sufficiently complete: it names all affected resource types and warns that deletion is permanent. The action enum details and confirm requirements are fully covered by the schema, though the description could have briefly mentioned that an action parameter selects the specific operation.

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 100%, so the detailed oneOf action parameter and other fields already document parameter semantics thoroughly. The description itself adds no parameter-specific detail beyond listing affected resources, making the baseline 3 appropriate.

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, 'Deletes,' and enumerates the exact resources affected: products, images, stock records, basket items, comments, and wishlist. This clearly distinguishes it from shop_read and shop_write siblings.

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?

Usage is implied by the destructive operation and the warning 'Cannot be undone,' but there is no explicit guidance on when to choose this over shop_write or other deletion tools, nor any stated prerequisites or exclusions.

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.