set_merchant_category
Pin a merchant to a specific category and optional subcategory, recategorizing existing transactions and applying the rule going forward.
Instructions
Pin a merchant (merchant_norm substring) to a category (+ optional subcategory): adds a rule and recategorizes that merchant's existing transactions. Setting category='Random' requires confirm_random=true — it's discouraged, pick a real category or leave it in the review queue.
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": {
"merchant_norm": "<merchant_norm>",
"category": "<category>"
},
"name": "set_merchant_category"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| category | Yes | ||
| subcategory | No | ||
| merchant_norm | Yes | ||
| confirm_random | No |