Skip to main content
Glama
isiahw1

mcp-server-bing-webmaster

get_blocked_urls

Retrieve blocked URLs from Bing Webmaster Tools to identify and resolve indexing issues for your website.

Instructions

Get list of blocked URLs for a site.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
site_urlYes

Implementation Reference

  • The handler function for the 'get_blocked_urls' tool, including the @mcp.tool decorator which also serves as registration. It fetches the list of blocked URLs for a site by calling the Bing API endpoint 'GetBlockedUrls' and processes the response.
    @mcp.tool(name="get_blocked_urls", description="Get list of blocked URLs for a site.") async def get_blocked_urls( site_url: Annotated[str, "The URL of the site"] ) -> List[Dict[str, Any]]: """ Get list of blocked URLs for a site. Args: site_url: The URL of the site Returns: List of blocked URLs """ async with api: urls = await api._make_request(f"GetBlockedUrls?siteUrl={site_url}") return api._ensure_type_field(urls, "BlockedUrl")
  • The @mcp.tool decorator registers the 'get_blocked_urls' tool with MCP, specifying its name and description. The function signature provides the input schema via type annotations.
    @mcp.tool(name="get_blocked_urls", description="Get list of blocked URLs for a site.")
  • Input schema: site_url (str). Output schema: List[Dict[str, Any]] (list of blocked URL dictionaries).
    async def get_blocked_urls( 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