Skip to main content
Glama
isiahw1

mcp-server-bing-webmaster

remove_page_preview_block

Remove page preview blocks from Bing Webmaster Tools to control how your site appears in search results. Specify site and block URLs to manage search appearance.

Instructions

Remove a page preview block.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
site_urlYes
block_urlYes

Implementation Reference

  • The handler function implementing the 'remove_page_preview_block' tool. It is registered via the @mcp.tool decorator and handles the logic by calling the Bing Webmaster API's RemovePagePreviewBlock endpoint with the provided site_url and block_url parameters.
    @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"}

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