get_page_query_stats
Retrieve search query statistics for a specific webpage from Bing Webmaster Tools to analyze performance and optimize content.
Instructions
Get query statistics for a specific page.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| site_url | Yes | ||
| page | Yes |
Implementation Reference
- mcp_server_bwt/main.py:1424-1445 (handler)The @mcp.tool decorator registers the handler function which implements the tool logic by making an API request to retrieve page query statistics.@mcp.tool( name="get_page_query_stats", description="Get query statistics for a specific page." ) async def get_page_query_stats( site_url: Annotated[str, "The URL of the site"], page: Annotated[str, "The specific page URL"], ) -> List[Dict[str, Any]]: """ Get query statistics for a specific page. Args: site_url: The URL of the site page: The specific page URL Returns: List of query statistics for the page """ async with api: stats = await api._make_request( f"GetPageQueryStats?siteUrl={site_url}&page={page}" ) return api._ensure_type_field(stats, "PageQueryStats")
- mcp_server_bwt/main.py:1428-1430 (schema)Input schema defined via Annotated types in function parameters, specifying site_url and page as strings with descriptions. Output is List[Dict[str, Any]].site_url: Annotated[str, "The URL of the site"], page: Annotated[str, "The specific page URL"], ) -> List[Dict[str, Any]]: