Skip to main content
Glama

Delete PrestaShop Product

ps_delete_product
Destructive

Deletes a PrestaShop product by ID through the Webservice API, requiring delete-enabled access; the shop may soft-delete it by marking it inactive.

Instructions

Delete a product by ID.

⚠️ Requires PS_READONLY=false and DELETE enabled on the PrestaShop Webservice key. Note: PrestaShop may soft-delete (set active=0) depending on shop configuration.

Args:

  • id: Product ID (required)

  • confirmation_token: Confirmation token (when PS_CONFIRM_DESTRUCTIVE=true)

Returns: Confirmation of deletion.

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

Input Schema

NameRequiredDescriptionDefault
idYesProduct ID
confirmation_tokenNoConfirmation token

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv3.1.0

TDQS

A4.3/5.0
Behavior5/5

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

Annotations already declare destructiveHint=true and readOnlyHint=false, yet the description adds real operational context beyond them: the required permission configuration, the conditional confirmation token gate, and the important caveat that PrestaShop may soft-delete (active=0) rather than remove the record. That soft-delete warning is exactly the kind of outcome information an agent cannot get from the annotations.

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?

Well front-loaded: the action, then the warning, then the args, then the return value. The Args block largely duplicates the schema descriptions, which is mild redundancy, but the high-value warning is placed early where it will be read.

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 two-parameter destructive tool with no output schema, everything needed is present: prerequisites, the confirmation gate, the return value, and the soft-delete behavior that determines what actually happens after the call. No output schema exists, so the one-line return note is sufficient.

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 baseline is 3, but the description adds meaning the schema lacks by tying confirmation_token to the PS_CONFIRM_DESTRUCTIVE environment flag, telling the agent when the parameter becomes mandatory. The id parameter is only restated, not enriched.

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 opens with a specific verb and resource ('Delete a product by ID'), which clearly separates it from reads (ps_get_product) and non-destructive writes (ps_update_product) among the siblings. It does not explicitly name a sibling alternative, so it stops short of the top tier.

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?

It gives concrete preconditions for use: PS_READONLY=false and DELETE enabled on the Webservice key, plus when confirmation_token is needed (PS_CONFIRM_DESTRUCTIVE=true). It does not discuss when to prefer a non-destructive route such as deactivating via update, and states no explicit exclusions.

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

Deploy Server

Other Tools