Save a merchant group
save_groupCreate, update or delete one of the user's own merchant groups: a named list of merchants, such as a competitive set or a portfolio, kept on their account for later calls.
A saved group is private to this account. Pass its slug as group to query_spend, breakdown, compare_brands, compare_to_benchmark, cross_shop, wallet_migration or cohort_overlap; find_groups lists it with owned true. action is create, update or delete. create needs name and members; slug defaults to the name's words. update and delete name the group by its slug or id in group; on update, members replaces the whole list. members are brand names or merchant_ids, at most 200. A name that matches several merchants comes back with candidates: ask the user which one, then pass its merchant_id. An account keeps at most 50 groups. Costs 0 credits.
Talk to the user in plain words: no tool, parameter or field names. Say "the American Spend model", never "panel" or a data source.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"action": "<action>"
},
"name": "save_group"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | The group's name. | |
| slug | No | Lowercase letters, digits and hyphens. Defaults to the name's words. | |
| group | No | update and delete: the group's slug or id. | |
| action | Yes | ||
| members | No | Brand names or merchant_ids, at most 200. | |
| description | No | What the group is for. |