get_country_region_settings
Retrieve country and region targeting configurations for a website from Bing Webmaster Tools to manage geographic audience reach.
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:1023-1039 (handler)The asynchronous handler function that implements the core logic of the 'get_country_region_settings' tool. It makes an API request to retrieve country/region settings for the given site URL and ensures the response is properly typed.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:1019-1022 (registration)The MCP decorator that registers the 'get_country_region_settings' function as a tool, specifying its name and description.name="get_country_region_settings", description="Get country/region targeting settings. Note: May require special permissions.", ) async def get_country_region_settings(
- mcp_server_bwt/main.py:1023-1025 (schema)Type annotations defining the input parameter (site_url as annotated string) and output type (List of Dict[str, Any]) for input/output schema validation.site_url: Annotated[str, "The URL of the site"] ) -> List[Dict[str, Any]]: """