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
| Name | Required | Description | Default |
|---|---|---|---|
| site_url | Yes |
Implementation Reference
- mcp_server_bwt/main.py:502-517 (handler)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")
- mcp_server_bwt/main.py:502-502 (registration)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.")
- mcp_server_bwt/main.py:503-505 (schema)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]]: