Get Customer Profiles
get_customer_profilesReturns the paginated list of customer profiles (aggregated order history, spending, ratings, and VIP/subscription status per customer) for the current company. Defaults to page 1 with up to 50 customers if page/limit are omitted. Supports searching by name, filtering by order type/customer type/order and driver rating, and sorting. Check the returned meta.totalPages and meta.nextPage: if meta.page is less than meta.totalPages and the user's request requires seeing every customer (not just a sample or summary), call this tool again with page=meta.nextPage to fetch the remaining pages, without asking the user to specify a page number themselves.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "get_customer_profiles"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | Free-text search over customer name | |
| page | No | Page number, starting at 1 | |
| limit | No | Number of customers per page | |
| sortType | No | Field to sort by | |
| orderType | No | Restrict to customers with delivery orders, pickup orders, or all orders | |
| orderRating | No | Restrict to customers whose average food/order rating falls in this range | |
| customerType | No | Restrict to VIP customers, recently-first-ordered customers, or all customers | |
| driverRating | No | Restrict to customers whose average driver rating falls in this range | |
| sortingOrder | No | Sort direction |