Skip to main content
Glama

Update PrestaShop Product

ps_update_product
Idempotent

Updates PrestaShop product details such as price, active status, name, descriptions, SEO fields, and URL slug by product ID. Use it to correct or refresh catalog data through the Webservice API.

Instructions

Update product fields: price, active status, name, description, meta_title, meta_description, link_rewrite.

⚠️ Requires PS_READONLY=false and PUT enabled on the PrestaShop Webservice key.

Args:

  • id: Product ID (required)

  • price: New price (tax excluded)

  • active: Activate or deactivate the product

  • name: Product name (for lang_id language)

  • description: Long description (HTML allowed)

  • description_short: Short description (HTML allowed)

  • meta_title: SEO title

  • meta_description: SEO meta description

  • link_rewrite: URL slug

  • lang_id: Language ID for multilang fields (default: "1")

Returns: Updated product summary.

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_update_product"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYesProduct ID
nameNoProduct name
priceNoNew price (tax excluded)
activeNoActivate or deactivate
lang_idNoLanguage ID for multilang fields1
meta_titleNoSEO title
descriptionNoLong description (HTML allowed)
link_rewriteNoURL slug
meta_descriptionNoSEO meta description
description_shortNoShort description (HTML allowed)
confirmation_tokenNoConfirmation token for destructive operations (when PS_CONFIRM_DESTRUCTIVE=true)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv3.1.0

TDQS

B3.4/5.0
Behavior3/5

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

The annotations already declare destructiveHint=false, idempotentHint=true and readOnlyHint=false, so the description's added value is the auth/configuration requirement and the note that it returns an updated product summary. It never states that only supplied fields change and the rest are preserved, and it omits the confirmation_token mechanism that the schema exposes via PS_CONFIRM_DESTRUCTIVE — a notable gap for a mutation tool with 11 parameters.

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?

The front-loaded field list and the warning line are efficient and well ordered. The Args block mostly duplicates a schema that already has full description coverage, which is wasted space, but the description still reads quickly and has no filler prose.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

It covers prerequisites and return shape for an 11-parameter mutation tool, and no output schema exists so the one-line returns note is appropriate. It is still incomplete on the two things an agent most needs: partial-update semantics for the ten optional fields and what confirmation_token is for.

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%, so the schema already documents every parameter including bounds, patterns, and defaults. The description restates the same fields nearly verbatim; the only marginal additions are "price (tax excluded)" and the note that name/description map to lang_id, which the schema does not spell out.

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 plus resource ("Update product fields") and enumerates the mutable fields, so an agent can immediately tell this mutates an existing product rather than creating one. It does not explicitly contrast with siblings such as ps_update_seo or ps_create_product, which keeps it at 4 rather than 5.

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?

It supplies real preconditions (PS_READONLY=false and PUT enabled on the Webservice key), which is more than most mutation tools offer. However, it never says when to choose this over ps_update_seo or ps_update_stock, nor when a partial update is preferable to a full one, so usage is only implied.

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