Skip to main content
Glama

Create PrestaShop Product

ps_create_product

Creates a new product in PrestaShop using required name, tax-excluded price, and default category, with optional descriptions, SEO fields, reference, and active status.

Instructions

Create a new product.

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

Args:

  • name: Product name (required)

  • price: Price tax excluded (required)

  • id_category_default: Default category ID (required)

  • description: Long description (HTML allowed)

  • description_short: Short description (HTML allowed)

  • reference: Product reference code

  • active: Activate the product (default: true)

  • 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 product 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>",
      "price": "<price>",
      "id_category_default": "<id_category_default>"
    },
    "name": "ps_create_product"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameYesProduct name
priceYesPrice tax excluded
activeNoActivate the product
lang_idNoLanguage ID1
referenceNoProduct reference
meta_titleNoSEO title
descriptionNoLong description (HTML allowed)
link_rewriteNoURL slug
meta_descriptionNoSEO meta description
description_shortNoShort description
confirmation_tokenNoConfirmation token
id_category_defaultYesDefault category ID

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv3.1.0

TDQS

A3.6/5.0
Behavior3/5

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

Annotations already declare non-readonly, non-destructive, non-idempotent behavior, so the baseline burden is lower; the description usefully adds the write-permission prerequisite and the fact that link_rewrite is auto-derived from name when omitted. It says nothing about uniqueness constraints (e.g., duplicate reference handling) or side effects like SEO/indexing, so it adds context without fully describing creation semantics.

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 warning is front-loaded right after the one-line purpose, and the Args/Returns structure is easy to scan. The per-argument list is somewhat redundant against a schema that already documents every parameter, which is the main inefficiency.

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 12-parameter mutation tool with no output schema, the description covers purpose, permission prerequisite, the key optional behaviors, and a return summary (created product ID). The only material gap is the undocumented confirmation_token parameter and no note on failure modes beyond permissions.

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 baseline is 3. The description adds some genuine meaning, notably that link_rewrite is auto-generated from name and that lang_id governs multilang fields, but it largely restates schema descriptions and omits confirmation_token entirely, so the added value is modest.

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") that an agent can immediately distinguish from ps_update_product or ps_delete_product among the siblings. It does not explicitly name those alternatives, so it stops short of the 5 level, but the operation itself 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 Guidelines4/5

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

It states a concrete precondition for use: the PrestaShop Webservice key must have PS_READONLY=false and POST enabled, which tells the agent when this call will fail. It gives no explicit when-to-use-versus-alternative routing (e.g., create vs. update), which keeps it at 4 rather than 5.

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