remove_country_region_settings
Remove country or region targeting settings from a website in Bing Webmaster Tools to disable geographic content restrictions.
Instructions
Remove country/region targeting settings.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| site_url | Yes | ||
| country_code | Yes |
Implementation Reference
- mcp_server_bwt/main.py:1550-1553 (registration)Registration of the 'remove_country_region_settings' tool using the @mcp.tool decorator.@mcp.tool( name="remove_country_region_settings", description="Remove country/region targeting settings.", )
- mcp_server_bwt/main.py:1554-1574 (handler)The tool handler function that executes the logic: makes a POST request to the 'RemoveCountryRegionSettings' API endpoint with site URL and country code, and returns a success message.async def remove_country_region_settings( site_url: Annotated[str, "The URL of the site"], country_code: Annotated[str, "ISO country code to remove"], ) -> Dict[str, str]: """ Remove country/region targeting settings. Args: site_url: The URL of the site country_code: ISO country code to remove Returns: Success message """ async with api: await api._make_request( "RemoveCountryRegionSettings", "POST", {"siteUrl": site_url, "countryCode": country_code}, ) return {"message": f"Country settings for {country_code} removed successfully"}