Skip to main content
Glama

Create PrestaShop Category

ps_create_category

Creates a new PrestaShop product category by specifying a name and parent category, with optional activation, description, and SEO fields.

Instructions

Create a new product category.

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

Args:

  • name: Category name (required)

  • id_parent: Parent category ID (required, use 2 for "Home")

  • active: Activate the category (default: true)

  • description: Category description

  • meta_title: SEO title

  • meta_description: SEO meta description

  • link_rewrite: URL slug (auto-generated from name if not provided)

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

Returns: Created category ID and 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": {
      "name": "<name>",
      "id_parent": "<id_parent>"
    },
    "name": "ps_create_category"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameYesCategory name
activeNoActivate the category
lang_idNoLanguage ID1
id_parentYesParent category ID
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.7/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=false, destructiveHint=false and idempotentHint=false, so the safety profile is covered structurally. The description adds genuinely non-structured context: the required key configuration, the auto-generation of link_rewrite from name, the active default, and the return content. The only gap is that it does not state what happens on duplicate names or whether creation fails on an invalid parent ID.

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 structure is front-loaded with the action, then the blocking prerequisite, then args, then returns, which matches how an agent needs the information. The Args list largely restates the 100%-covered schema, which is mild redundancy, but the notes attached to several params earn their space.

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 write tool with annotation coverage but no output schema, the description carries the important extras: auth/config prerequisite, defaults, slug auto-generation, and a statement of what is returned. It falls short only on one undocumented parameter (confirmation_token) and on error/edge behavior, which are minor for a creation tool of this shape.

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 schema already carries baseline documentation and 3 is the floor. The description adds some meaning the schema lacks — the "use 2 for Home" convention on id_parent, the auto-slug behavior for link_rewrite, and the multilang role of lang_id — but it omits confirmation_token entirely and adds no constraints beyond the schema.

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 ("Create a new product category"), which is unambiguous against analytics/report siblings. It does not explicitly differentiate from ps_update_category or ps_get_category, but the create action and target resource make selection straightforward from the name and first line.

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 a genuine invocation prerequisite ("Requires PS_READONLY=false and POST enabled on the PrestaShop Webservice key") and a practical hint for id_parent ("use 2 for Home"), which are real usage conditions. However, there is no explicit when-to-use versus when-to-use-an-alternative guidance, e.g. no pointer to ps_update_category for modifying existing categories, so usage is implied rather than fully directed.

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