get_country_region_settings
Retrieve country and region targeting settings for a website from Bing Webmaster Tools to manage geographic audience preferences.
Instructions
Get country/region targeting settings. Note: May require special permissions.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| site_url | Yes |
Implementation Reference
- mcp_server_bwt/main.py:1022-1039 (handler)The async handler function that executes the tool logic: fetches country/region settings from Bing Webmaster API using _make_request and ensures MCP type compatibility.async def get_country_region_settings( site_url: Annotated[str, "The URL of the site"] ) -> List[Dict[str, Any]]: """ Get country/region targeting settings. Args: site_url: The URL of the site Returns: List of country/region settings """ async with api: settings = await api._make_request( f"GetCountryRegionSettings?siteUrl={site_url}" ) return api._ensure_type_field(settings, "CountryRegionSettings")
- mcp_server_bwt/main.py:1018-1021 (registration)The @mcp.tool decorator registration for the get_country_region_settings tool with name and description.@mcp.tool( name="get_country_region_settings", description="Get country/region targeting settings. Note: May require special permissions.", )