Skip to main content
Glama
isiahw1

mcp-server-bing-webmaster

get_page_stats

Retrieve traffic statistics for top-performing pages from Bing Webmaster Tools to analyze site performance and identify high-traffic content.

Instructions

Get traffic statistics for top pages.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
site_urlYes

Implementation Reference

  • The handler function for the 'get_page_stats' tool. It takes a site_url parameter, makes an API request to Bing Webmaster Tools for page statistics, ensures type fields for MCP compatibility, and returns the list of page stats.
    @mcp.tool(name="get_page_stats", description="Get traffic statistics for top pages.") async def get_page_stats( site_url: Annotated[str, "The URL of the site"] ) -> List[Dict[str, Any]]: """ Get traffic statistics for top pages. Args: site_url: The URL of the site Returns: List of page statistics """ async with api: stats = await api._make_request(f"GetPageStats?siteUrl={site_url}") return api._ensure_type_field(stats, "PageStats")
  • The @mcp.tool decorator registers the get_page_stats function as an MCP tool with the specified name and description.
    @mcp.tool(name="get_page_stats", description="Get traffic statistics for top pages.")

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