Skip to main content
Glama

Create PrestaShop Customer

ps_create_customer

Creates a new PrestaShop customer account with required name, email, and password, plus optional activation, newsletter, and group settings.

Instructions

Create a new customer account.

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

Args:

  • firstname: First name (required)

  • lastname: Last name (required)

  • email: Email address (required)

  • passwd: Password (required, min 5 chars)

  • active: Activate the account (default: true)

  • newsletter: Subscribe to newsletter (default: false)

  • id_default_group: Customer group ID (default: 3 = Customer)

Returns: Created customer 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": {
      "firstname": "<firstname>",
      "lastname": "<lastname>",
      "email": "<email>",
      "passwd": "<passwd>"
    },
    "name": "ps_create_customer"
  }
}

Input Schema

NameRequiredDescriptionDefault
emailYesEmail address
activeNoActivate the account
passwdYesPassword (min 5 chars)
lastnameYesLast name
firstnameYesFirst name
newsletterNoNewsletter subscription
id_default_groupNoCustomer group ID
confirmation_tokenNoConfirmation token

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv3.1.0

TDQS

A3.9/5.0
Behavior4/5

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

Annotations already declare readOnly=false and destructive=false; the description adds genuinely new operational context, namely the Webservice write-permission prerequisite that would otherwise cause a confusing failure. It also discloses the return shape (created customer ID plus summary), which annotations cannot convey. It omits duplicate-email failure behavior and any confirmation-email side effect, keeping it below top marks.

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 and prerequisite line is front-loaded right after the purpose sentence, and the Args list is scannable. There is mild duplication with the input schema for firstname/lastname/email/passwd, but no filler or hedging language.

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 non-idempotent creation tool with no output schema, the definition covers the write-permission prerequisite, all required fields, defaults, and the return value. Remaining gaps are edge-case behaviors such as duplicate email handling and whether a confirmation email is dispatched. Nothing needed to make a correct first call is missing.

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 all eight parameters are already documented, and the Args list largely restates them verbatim. It adds one useful semantic (id_default_group default 3 = Customer) but silently omits the confirmation_token parameter present in the schema. With the schema doing the heavy lifting, this is baseline.

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?

"Create a new customer account" is a specific verb+resource that unambiguously separates this from ps_get_customer and ps_update_customer by verb alone. The Args block further pins down the exact resource being constructed. It stops short of naming any sibling explicitly, so it lands at clear-but-not-differentiating.

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?

The definition gives an explicit precondition block: needs PS_READONLY=false and POST enabled on the Webservice key, which tells an agent when the call is even possible. It does not discuss when to choose create over update, nor what to do when a customer already exists, so there are no exclusion rules.

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