Tag Clients
tag_clientsApply a tag to a whole selection of clients at once. Target the set with EITHER client_ids (an explicit list) OR the same selection filters as list_clients (tag, state, county/county_state, near_zip/near_client + radius_miles, has_email, has_phone, q). Name the tag with grouping_id (existing tag) or tag_name (created if new — e.g. 'Marked for mailing'). Returns how many were newly tagged. This is the modern 'mark for mailing'.
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": "tag_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). | |
| state | No | US state as a 2-letter code, e.g. MI. | |
| county | No | A US county name (use with county_state). | |
| near_zip | No | A US ZIP code to search around (use with radius_miles). | |
| tag_name | No | ||
| 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. | |
| client_ids | No | A list of client ids (from search or list_clients). | |
| grouping_id | No | ||
| 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. |