Update Customer
Updates a customer's email, name, password, billing, or shipping details. Provide the customer ID and at least one field to change. Changing the password signs the customer out of all active sessions. The login username cannot be changed once created — that's a WordPress limitation, not one of this ability.
Also known as: change a customer address, edit a customer.
| Property | Value |
|---|---|
| Ability slug | mosmcp/update-customer |
| Wire tool name | mosmcp__update-customer |
| Category | WooCommerce (mosmcp-woocommerce) |
| Plan | Free |
Required access
| Requirement | Value |
|---|---|
| Capability | edit_users |
| Minimum default role | Administrator |
| Requires | WooCommerce |
| Annotations | readOnly: false · destructive: true · idempotent: true · openWorld: false |
Input schema
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
| id | integer | Yes | — | The customer ID to update (required). |
| string | — | New email address. | ||
| first_name | string | — | New first name. | |
| last_name | string | — | New last name. | |
| password | string | — | New password. Signs the customer out of all sessions. | |
| billing | object | — | ||
| billing.first_name | string | — | ||
| billing.last_name | string | — | ||
| billing.company | string | — | ||
| billing.address_1 | string | — | ||
| billing.address_2 | string | — | ||
| billing.city | string | — | ||
| billing.state | string | — | ||
| billing.postcode | string | — | ||
| billing.country | string | — | ||
| billing.phone | string | — | ||
| billing.email | string | — | ||
| shipping | object | — | ||
| shipping.first_name | string | — | ||
| shipping.last_name | string | — | ||
| shipping.company | string | — | ||
| shipping.address_1 | string | — | ||
| shipping.address_2 | string | — | ||
| shipping.city | string | — | ||
| shipping.state | string | — | ||
| shipping.postcode | string | — | ||
| shipping.country | string | — | ||
| shipping.phone | string | — | ||
| shipping.email | string | — |
Output schema
| Field | Type | Required |
|---|---|---|
| success | boolean | |
| message | string | |
| data | object | |
| data.id | integer | |
| data.date_created | string \| null | |
| data.date_modified | string \| null | |
| data.email | string | |
| data.first_name | string | |
| data.last_name | string | |
| data.role | string | |
| data.username | string | |
| data.billing | object | |
| data.shipping | object | |
| data.is_paying_customer | boolean | |
| data.avatar_url | string | |
| data.order_count | integer | |
| data.total_spent | string | |
| meta | object | |
| meta.ability | string | |
| meta.timestamp | string | |
| meta.execution_time | string \| null |
Example
Sample prompt
Update customer 57's billing phone to +1 512 555 0199.
Example request (json)
{
"jsonrpc": "2.0",
"id": 388,
"method": "tools/call",
"params": {
"name": "mosmcp__update-customer",
"arguments": {
"input": {
"id": 57,
"billing": {
"phone": "+1 512 555 0199"
}
}
}
}
}Example response (json)
{
"jsonrpc": "2.0",
"id": 388,
"result": {
"isError": false,
"structuredContent": {
"success": true,
"message": "Customer updated.",
"data": {
"id": 57,
"date_created": "2026-03-04T11:20:00",
"date_modified": "2026-09-27T16:46:02",
"email": "jane@example.com",
"first_name": "Jane",
"last_name": "Doe",
"role": "customer",
"username": "janedoe",
"billing": {
"first_name": "Jane",
"last_name": "Doe",
"company": "",
"address_1": "12 High Street",
"address_2": "",
"city": "Austin",
"state": "TX",
"postcode": "78701",
"country": "US",
"email": "jane@example.com",
"phone": "+1 512 555 0199"
},
"shipping": {
"first_name": "Jane",
"last_name": "Doe",
"company": "",
"address_1": "12 High Street",
"address_2": "",
"city": "Austin",
"state": "TX",
"postcode": "78701",
"country": "US",
"email": "",
"phone": ""
},
"is_paying_customer": true,
"avatar_url": "https://secure.gravatar.com/avatar/abc123?s=96&d=mm&r=g",
"order_count": 4,
"total_spent": "212.40"
},
"meta": {
"ability": "mosmcp/update-customer",
"timestamp": "2026-09-29T10:15:00+00:00",
"execution_time": "18.4ms"
}
}
}
}
Edge cases / errors
- Only id supplied → wcab_nothing_to_update; unknown user → wcab_customer_not_found; no rights to edit that user → wcab_cannot_edit.
- Invalid email → wcab_invalid_email; email already used by another account → wcab_email_in_use.
- Setting password logs the customer out of all sessions; the username can't be changed.
| << Previous | Next >> |
|---|---|
| Update Coupon | Update Order |
For more information about the Secure MCP Server for WordPress plugin, explore the following resources:
Product Overview | Pricing | Try for Free | Documentation
If you have any questions regarding plugin configuration, pricing plans or licensing, please contact us or mail us at aisupport@xecurify.com.