Skip to main content
Glama
isiahw1

mcp-server-bing-webmaster

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
NameRequiredDescriptionDefault
site_urlYes

Implementation Reference

  • 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")
  • 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.", )

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/isiahw1/mcp-server-bing-webmaster'

If you have feedback or need assistance with the MCP directory API, please join our Discord server