get_deep_link_blocks
Retrieve blocked deep links for a website from Bing Webmaster Tools to identify and manage URL restrictions affecting search visibility.
Instructions
Get list of blocked deep links.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| site_url | Yes |
Implementation Reference
- mcp_server_bwt/main.py:752-768 (handler)The handler function for the 'get_deep_link_blocks' tool. It is decorated with @mcp.tool which also serves as registration. Takes site_url, makes an API request to retrieve blocked deep links, and returns the processed list.@mcp.tool(name="get_deep_link_blocks", description="Get list of blocked deep links.") async def get_deep_link_blocks( site_url: Annotated[str, "The URL of the site"] ) -> List[Dict[str, Any]]: """ Get list of blocked deep links. Args: site_url: The URL of the site Returns: List of blocked deep links """ async with api: blocks = await api._make_request(f"GetDeepLinkBlocks?siteUrl={site_url}") return api._ensure_type_field(blocks, "DeepLinkBlock")
- mcp_server_bwt/main.py:752-752 (registration)The @mcp.tool decorator registers the 'get_deep_link_blocks' tool with the MCP server, specifying its name and description.@mcp.tool(name="get_deep_link_blocks", description="Get list of blocked deep links.")
- mcp_server_bwt/main.py:753-755 (schema)Input schema defined by function parameter with Annotated type hint providing description. Output schema is List[Dict[str, Any]].async def get_deep_link_blocks( site_url: Annotated[str, "The URL of the site"] ) -> List[Dict[str, Any]]: