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.

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": {
      "action": "<action>",
      "site_id": "<site_id>"
    },
    "name": "shop_delete"
  }
}

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 (stock_*, var_*, cnt_REC_ID, …). Routing and mode keys (method, mode, del, page, …) are ignored.
confirmNoConfirmation of this deletion. Not needed unless the server refuses the call because the site owner requires it; that refusal says what to do.
del_allNo1 = delete all images (img_del); otherwise img_del needs img.
site_idYesSite to change: site_id from list_sites. Required: the call works only on this site, whatever select_site chose.
files_sequenceNoImage order after single img_del.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • addedInput schema / properties / site_id
      Added value: +{
      +  "description": "Site to change: site_id from list_sites. Required: the call works only on this site, whatever select_site chose.",
      +  "type": "integer"
      +}
    • changedInput schema / required
      Previous value: -[
      -  "action"
      -]New value: +[
      +  "action",
      +  "site_id"
      +]
  2. Changed1 schema field changed
    • changedInput schema / properties / fields / description
      Previous value: -"Extra form keys (checkout field_N, stock_*, var_*, cnt_REC_ID, …). Routing and mode keys (method, mode, del, page, …) are ignored."New value: +"Extra form keys (stock_*, var_*, cnt_REC_ID, …). Routing and mode keys (method, mode, del, page, …) are ignored."
  3. Changed2 schema fields changed
    • changedInput schema / properties / action / oneOf
      Previous value: -[
      -  {
      -    "const": "delete",
      -    "description": "Deletes a product. Required: id, confirm. Optional: fields."
      -  },
      -  {
      -    "const": "img_del",
      -    "description": "Deletes the product image in slot img (0 is the main image), or all images with del_all=1; img is required unless del_all is 1. Required: id, confirm. Optional: img, del_all, files_sequence, fields."
      -  },
      -  {
      -    "const": "category_image_delete",
      -    "description": "Deletes the image of a category. Required: id, confirm. Optional: fields."
      -  },
      -  {
      -    "const": "variation_dict_delete",
      -    "description": "Deletes a variation dictionary. Required: id, confirm. Optional: fields."
      -  },
      -  {
      -    "const": "stock_remove",
      -    "description": "Deletes the selected option sets of a product stock. Required: id, ids, confirm. Optional: fields."
      -  },
      -  {
      -    "const": "stock_remove_all",
      -    "description": "Deletes all option sets of a product stock. Required: id, confirm. Optional: fields."
      -  },
      -  {
      -    "const": "basket_delete",
      -    "description": "Deletes a basket line by id; without id clears the whole basket (then confirm is required). Optional: id, confirm."
      -  },
      -  {
      -    "const": "comments_delete",
      -    "description": "Deletes a product comment. Required: id, confirm."
      -  },
      -  {
      -    "const": "wishlist_clear",
      -    "description": "Clears the wishlist of the current user. Required: confirm."
      -  }
      -]New value: +[
      +  {
      +    "const": "delete",
      +    "description": "Deletes a product. Required: id. Optional: fields, confirm."
      +  },
      +  {
      +    "const": "img_del",
      +    "description": "Deletes the product image in slot img (0 is the main image), or all images with del_all=1; img is required unless del_all is 1. Required: id. Optional: img, del_all, files_sequence, fields, confirm."
      +  },
      +  {
      +    "const": "category_image_delete",
      +    "description": "Deletes the image of a category. Required: id. Optional: fields, confirm."
      +  },
      +  {
      +    "const": "variation_dict_delete",
      +    "description": "Deletes a variation dictionary. Required: id. Optional: fields, confirm."
      +  },
      +  {
      +    "const": "stock_remove",
      +    "description": "Deletes the selected option sets of a product stock. Required: id, ids. Optional: fields, confirm."
      +  },
      +  {
      +    "const": "stock_remove_all",
      +    "description": "Deletes all option sets of a product stock. Required: id. Optional: fields, confirm."
      +  },
      +  {
      +    "const": "basket_delete",
      +    "description": "Deletes a basket line by id; without id clears the whole basket. Optional: id, confirm."
      +  },
      +  {
      +    "const": "comments_delete",
      +    "description": "Deletes a product comment. Required: id. Optional: confirm."
      +  },
      +  {
      +    "const": "wishlist_clear",
      +    "description": "Clears the wishlist of the current user. Optional: confirm."
      +  }
      +]
    • changedInput schema / properties / confirm / description
      Previous value: -"Pass 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)."New value: +"Confirmation of this deletion. Not needed unless the server refuses the call because the site owner requires it; that refusal says what to do."
  4. 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)."
  5. Added

TDQS

A3.6/5.0
Behavior4/5

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

The annotations already declare destructiveHint=true and readOnlyHint=false, but the description adds useful behavioral context by naming the exact resource families affected and stating that deletion cannot be undone. It does not cover permission requirements, confirmation behavior, or site scoping, which remain in the schema.

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?

The description is a single front-loaded sentence with no wasted wording. It efficiently lists the affected resources and closes with the critical irreversibility warning.

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 complex destructive tool with nine parameters and nine actions, the description is terse but the schema carries the operational detail and annotations carry the destructive profile. The remaining gap is primarily the lack of explicit routing guidance among delete siblings.

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%, and the action enum documents each operation with its required and optional parameters in detail. The description lists affected resource types but adds no parameter syntax or selection guidance beyond what the schema already provides.

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 description uses a specific verb and clearly scopes the resource: products, product/category images, stock records, basket items, comments, and wishlist. This is much stronger than a tautology. It does not explicitly distinguish itself from nearby delete siblings such as content_delete, so it falls short of a 5.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The definition states what can be deleted but gives no when-to-use guidance, prerequisites, or alternatives. An agent must infer from the resource list whether this is the right delete tool compared with content_delete or other delete siblings.

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.