List Clients
list_clientsList / SELECT clients. This is the marketing selection engine: filter by q (name), tag (a grouping_id from the account's tags), state (2-letter), county (+ county_state), near_zip OR near_client (a client_id) with radius_miles for a geo radius, and has_email / has_phone (true to require one on file). Filters AND together. Each row has clients_id, name, city, state, zip, email, phone. Use the same filters with tag_clients, enroll_clients or make_call_list to act on the whole selection.
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": "list_clients"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| q | No | Search text; with multiple words, all must match. | |
| tag | No | A tag's grouping_id (from your tags / client selection). | |
| limit | No | Maximum rows to return (integer; default varies, cap ~100). | |
| state | No | US state as a 2-letter code, e.g. MI. | |
| county | No | A US county name (use with county_state). | |
| offset | No | Rows to skip, for paging (0-based integer). | |
| near_zip | No | A US ZIP code to search around (use with radius_miles). | |
| has_email | No | If true, only include records that have an email on file. | |
| has_phone | No | If true, only include records that have a phone on file. | |
| near_client | No | A client id to search around geographically (use with radius_miles). | |
| county_state | No | The county's US state as a 2-letter code, e.g. MI. | |
| radius_miles | No | Search radius in miles from the ZIP or client. |