Skip to main content
Glama
isiahw1

mcp-server-bing-webmaster

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

Implementation Reference

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

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