HappierleadsDocs
MCP server

set_country_blacklist

Sets the countries whose visitors are never identified on this website.

Set blocked countries · Deletes or overwrites data

Sets the countries whose visitors are never identified on this website. The list you send replaces the current one: get_country_blacklist first and send the full list; an empty list blocks nothing. Codes are two letters (DE, FR, US).

ConnectionAccount URL, team member URL or OAuth

Parameters

ParameterTypeRequiredDescription
websiteIdstringYesWebsite ID from list_websites.
countryCodesstring[]YesThe full list of two-letter country codes to block.

Tool definition

What your assistant receives from tools/list:

{
  "name": "set_country_blacklist",
  "title": "Set blocked countries",
  "annotations": {
    "title": "Set blocked countries",
    "readOnlyHint": false,
    "destructiveHint": true,
    "idempotentHint": true,
    "openWorldHint": false
  },
  "inputSchema": {
    "type": "object",
    "properties": {
      "websiteId": {
        "type": "string",
        "description": "Website ID from list_websites."
      },
      "countryCodes": {
        "type": "array",
        "items": {
          "type": "string"
        },
        "description": "The full list of two-letter country codes to block."
      }
    },
    "required": [
      "websiteId",
      "countryCodes"
    ]
  }
}

On this page