Add or remove exclusions
update_exclusionsAdd and remove single entries in the exclusion lists of Settings → Exclusions: ips (addresses or ranges like 203.0.113.0/24), paths (/admin/**), hostnames (staging.example.com), countries (new visits are not recorded) and hidden_countries (also hides the country's past data in every report; nothing is deleted, and removing it from hidden_countries shows the data again). Countries are ISO codes or English names. Example: {"add": {"ips": ["203.0.113.7"]}, "remove": {"countries": ["DE"]}}. Excluded visits are lost for good, so ask the user first. Adding hidden_countries needs confirm: true; without it the tool only describes the change. A repeat changes nothing; pass an idempotency_key to retry safely. change_note says what changed. list_sites shows the current lists.
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": "update_exclusions"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| add | No | Entries to add: ips, paths, hostnames, countries, hidden_countries. | |
| site | No | Site domain (example.com), id or public id (tb_…). Optional with a site key, or when the account has one site. | |
| remove | No | Entries to remove: ips, paths, hostnames, countries, hidden_countries. | |
| confirm | No | Needed (true) only when add.hidden_countries is set: hiding past data changes every report. | |
| idempotency_key | No | A fresh UUID for this create. Send the same value when you retry the same call: the first result comes back and nothing is created twice. |