List Customers
Lists WooCommerce customers, filterable by search term, email, and role.
Also known as: customers, buyers, shoppers, customer list.
| Property | Value |
|---|---|
| Ability slug | mosmcp/list-customers |
| Wire tool name | mosmcp__list-customers |
| 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 |
|---|---|---|---|---|
| search | string | — | Search term matched against name, login, or email. | |
| string | — | Search term matched specifically against email. Takes precedence over search. | ||
| role | string | customer |
WordPress role to filter by. Defaults to customer. | |
| page | integer | 1 |
Page number, for pagination. | |
| per_page | integer | 20 |
Results per page (1-100). |
Output schema
| Field | Type | Required |
|---|---|---|
| success | boolean | |
| message | string | |
| data | object | |
| data.customers | object[] | |
| meta | object | |
| meta.ability | string | |
| meta.timestamp | string | |
| meta.execution_time | string \| null | |
| meta.pagination | object |
Example
Sample prompt
Find the customer whose email is jane@example.com.
Example request (json)
{
"jsonrpc": "2.0",
"id": 374,
"method": "tools/call",
"params": {
"name": "mosmcp__list-customers",
"arguments": {
"input": {
"email": "jane@example.com"
}
}
}
}Example response (json)
{
"jsonrpc": "2.0",
"id": 374,
"result": {
"isError": false,
"structuredContent": {
"success": true,
"message": "1 customer(s) retrieved.",
"data": {
"customers": [
{
"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/list-customers",
"timestamp": "2026-09-29T10:15:00+00:00",
"execution_time": "18.4ms",
"pagination": {
"total": 1,
"total_pages": 1,
"current_page": 1,
"has_next": false,
"has_previous": false
}
}
}
}
}
Edge cases / errors
- Only users with the customer role are returned by default; pass another role (e.g. "subscriber") to widen it.
- email is a partial match on the email column and takes precedence over search when both are given.
- Guest shoppers without an account never appear here - search orders instead. per_page is clamped to 1-100.
| << Previous | Next >> |
|---|---|
| List Customer Segment | List Order Notes |
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.