Skip to main content
Glama

Update PrestaShop Customer

ps_update_customer
Idempotent

Update an existing PrestaShop customer's name, email, active status, or newsletter subscription by ID; passwords cannot be changed for security.

Instructions

Update an existing customer's information.

⚠️ Requires PS_READONLY=false and PUT enabled on the PrestaShop Webservice key. Note: Password cannot be modified through this tool for security reasons.

Args:

  • id: Customer ID (required)

  • firstname: First name

  • lastname: Last name

  • email: Email address

  • active: Activate/deactivate

  • newsletter: Newsletter subscription

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

Input Schema

NameRequiredDescriptionDefault
idYesCustomer ID
emailNoEmail address
activeNoActivate or deactivate
lastnameNoLast name
firstnameNoFirst name
newsletterNoNewsletter subscription
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?

Goes well beyond the annotations (readOnly=false, idempotent=true, destructive=false) by disclosing the auth/config prerequisite and the security constraint that password changes are impossible here. It also states the return shape ('Confirmation with updated fields'), which the absent output schema would otherwise leave unknown.

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 critical prerequisite warning is front-loaded before the parameter list, and the prose is tight. The Args block is partially redundant with the schema, which is the only real waste.

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 7-parameter mutation tool with no output schema, the description covers prerequisites, a key limitation, and a return summary — enough for an agent to invoke it correctly. The one gap is the undocumented confirmation_token parameter, which is neither in the Args list nor explained.

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 documents every field. The Args list largely restates those fields and even omits the seventh parameter (confirmation_token) that appears in the schema, so it adds little semantic value beyond field names.

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 customer's information' — which is clearly distinct from ps_create_customer and the read-side ps_get_customer siblings. It does not explicitly name an alternative, but the verb+resource pairing 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?

Gives concrete preconditions for use: PS_READONLY=false and PUT enabled on the Webservice key. It also carves out a clear exclusion (password cannot be modified via this tool). What's missing is explicit routing against siblings such as ps_create_customer for new records.

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