Skip to main content
Glama
isiahw1

mcp-server-bing-webmaster

get_active_page_preview_blocks

Retrieve active page preview blocks from Bing Webmaster Tools to monitor and manage how your site appears in search results.

Instructions

Get list of active page preview blocks.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
site_urlYes

Implementation Reference

  • The main handler function for the 'get_active_page_preview_blocks' tool, which fetches active page preview blocks via API request to Bing Webmaster Tools.
    @mcp.tool( name="get_active_page_preview_blocks", description="Get list of active page preview blocks.", ) async def get_active_page_preview_blocks( site_url: Annotated[str, "The URL of the site"] ) -> List[Dict[str, Any]]: """ Get list of active page preview blocks. Args: site_url: The URL of the site Returns: List of active page preview blocks """ async with api: blocks = await api._make_request( f"GetActivePagePreviewBlocks?siteUrl={site_url}" ) return api._ensure_type_field(blocks, "PagePreviewBlock")
  • Registration of the tool using the @mcp.tool decorator.
    @mcp.tool( name="get_active_page_preview_blocks", description="Get list of active page preview blocks.", )
  • Input schema defined by function parameters with Annotated types and output type hint.
    async def get_active_page_preview_blocks( 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