Get Customer
Gets a single WooCommerce customer by ID, including billing, shipping, and order stats.
Also known as: customer details, customer info, customer address.
| Property | Value |
|---|---|
| Ability slug | mosmcp/get-customer |
| Wire tool name | mosmcp__get-customer |
| Category | WooCommerce (mosmcp-woocommerce) |
| Plan | Free |
Required access
| Requirement | Value |
|---|---|
| Capability | manage_woocommerce |
| Minimum default role | Shop manager |
| Requires | WooCommerce |
| Annotations | readOnly: true · destructive: false · idempotent: true · openWorld: false |
Input schema
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
| id | integer | Yes | — | The customer (WordPress user) ID (required). |
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
Show me the details and address for customer 57.
Example request (json)
{
"jsonrpc": "2.0",
"id": 367,
"method": "tools/call",
"params": {
"name": "mosmcp__get-customer",
"arguments": {
"input": {
"id": 57
}
}
}
}Example response (json)
{
"jsonrpc": "2.0",
"id": 367,
"result": {
"isError": false,
"structuredContent": {
"success": true,
"message": "Customer retrieved.",
"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 0142"
},
"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/get-customer",
"timestamp": "2026-09-29T10:15:00+00:00",
"execution_time": "18.4ms"
}
}
}
}
Edge cases / errors
- id missing or not positive → wcab_invalid_id.
- No WordPress user with that ID → wcab_customer_not_found.
- Any user ID works (not only the customer role); stats like order_count and total_spent come from WooCommerce.
| << Previous | Next >> |
|---|---|
| Get Coupon | Get Customer Purchase History |
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.