Skip to main content
Glama
isiahw1

mcp-server-bing-webmaster

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

Implementation Reference

  • 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")
  • 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(
  • 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]]:
        """

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