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)Registers the MCP tool named 'remove_country_region_settings' with its description.@mcp.tool( name="remove_country_region_settings", description="Remove country/region targeting settings.", )
- mcp_server_bwt/main.py:1554-1575 (handler)The main handler function that executes the tool by calling the Bing Webmaster API's RemoveCountryRegionSettings endpoint.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"}