Save blocking rule
save_blocking_ruleSave the blocking rule for one event on a site, such as Purchase, or for all events (AllEvents). It replaces the rule already saved for that event, if any. Rules for other events stay. A blocking rule stops matching events from being sent to ad platforms, such as a second Purchase when the confirmation page is refreshed. A rule for one event, such as Purchase, replaces the AllEvents rule for that event, so include any AllEvents conditions it should keep. The current rules are in get_site_status. Returns the saved rule. Repeating an idempotency_key applies the change once. Use it when the user wants to stop duplicate or unwanted events reaching ad platforms, or to save a rule proposed by suggest_triggers.
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": {
"site_id": "<site_id>",
"idempotency_key": "<idempotency_key>",
"rule": "<rule>"
},
"name": "save_blocking_rule"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| rule | Yes | Rule to save. The `rule` of a suggest_triggers blocking_rules line is ready to pass. | |
| site_id | Yes | Site to act on, as returned by list_sites. | |
| idempotency_key | Yes | Unique string per intended change, such as a UUID. Repeating a key returns the first result instead of writing again. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| rule | Yes | The saved rule: `target`, `mode`, and `groups`, the shape the rule parameter takes. |