remove_page_preview_block
Remove page preview blocks from Bing Webmaster Tools to manage how your site appears in search results.
Instructions
Remove a page preview block.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| site_url | Yes | ||
| block_url | Yes |
Implementation Reference
- mcp_server_bwt/main.py:1177-1198 (handler)The handler function decorated with @mcp.tool registers and implements the remove_page_preview_block tool. It sends a POST request to the Bing Webmaster API's RemovePagePreviewBlock endpoint to remove the specified page preview block.@mcp.tool(name="remove_page_preview_block", description="Remove a page preview block.") async def remove_page_preview_block( site_url: Annotated[str, "The URL of the site"], block_url: Annotated[str, "URL pattern to unblock"], ) -> Dict[str, str]: """ Remove a page preview block. Args: site_url: The URL of the site block_url: URL pattern to unblock Returns: Success message """ async with api: await api._make_request( "RemovePagePreviewBlock", "POST", {"siteUrl": site_url, "blockUrl": block_url}, ) return {"message": f"Page preview block for {block_url} removed successfully"}
- mcp_server_bwt/main.py:1177-1177 (registration)The @mcp.tool decorator registers the remove_page_preview_block tool with the MCP server, defining its name and description.@mcp.tool(name="remove_page_preview_block", description="Remove a page preview block.")
- mcp_server_bwt/main.py:1179-1181 (schema)Type annotations with descriptions define the input schema for the tool parameters.site_url: Annotated[str, "The URL of the site"], block_url: Annotated[str, "URL pattern to unblock"], ) -> Dict[str, str]: