Skip to main content
Glama

Update PrestaShop Category

ps_update_category
Idempotent

Updates an existing PrestaShop category name, active status, description, SEO fields, and URL slug, with language-specific values for multilanguage stores.

Instructions

Update an existing category.

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

Args:

  • id: Category ID (required)

  • name: Category name

  • active: Activate/deactivate

  • description: Category description

  • meta_title: SEO title

  • meta_description: SEO meta description

  • link_rewrite: URL slug

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

Returns: Confirmation with updated fields.

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

Input Schema

NameRequiredDescriptionDefault
idYesCategory ID
nameNoCategory name
activeNoActivate or deactivate
lang_idNoLanguage ID1
meta_titleNoSEO title
descriptionNoCategory description
link_rewriteNoURL slug
meta_descriptionNoSEO meta description
confirmation_tokenNoConfirmation token

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv3.1.0

TDQS

A3.5/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=false, idempotentHint=true, and destructiveHint=false, so the safety profile is covered. The description adds genuinely new behavioral context: the write-permission prerequisite on the webservice key and the fact that only updated fields are echoed back. It stops short of saying whether omitted fields are preserved or reset, which matters for a PUT-style update.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The prerequisite warning is correctly front-loaded and the return note is brief. The Args block, however, duplicates a fully-described schema almost line for line, so a meaningful fraction of the text does not earn its place.

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?

With nine parameters, no output schema, and a mutation, the description does well to name the confirmation return and the auth requirement. It is still incomplete on the central semantic question for an update: whether unspecified fields are left untouched or overwritten, and what a partial failure looks like.

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 every parameter is already documented in the schema, making 3 the baseline. The Args list largely restates the schema glosses and even omits confirmation_token, which exists in the schema; it adds only the lang_id default, which the schema already carries.

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?

States a specific verb and resource ('Update an existing category'), which distinguishes it from ps_create_category and ps_get_category by name alone. It does not explicitly distinguish itself from adjacent update tools such as ps_update_seo or ps_update_product, but the resource noun is unambiguous.

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?

The warning line gives a hard precondition (PS_READONLY=false and PUT enabled on the key), which is useful context for whether the call can succeed. However, there is no guidance on when to choose this tool over ps_update_seo or ps_update_product, and no statement of exclusions or failure behavior when the precondition is unmet.

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