get_query_page_detail_stats
Analyze detailed performance metrics for specific search queries and web pages using Bing Webmaster Tools data.
Instructions
Get detailed statistics for a specific query and page combination.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| site_url | Yes | ||
| query | Yes | ||
| page | Yes |
Implementation Reference
- mcp_server_bwt/main.py:596-599 (registration)Registration of the 'get_query_page_detail_stats' tool using the @mcp.tool decorator.@mcp.tool( name="get_query_page_detail_stats", description="Get detailed statistics for a specific query and page combination.", )
- mcp_server_bwt/main.py:600-620 (handler)The handler function implementing the tool logic: takes site_url, query, page; calls Bing API endpoint GetQueryPageDetailStats; adds __type to response for MCP compatibility.async def get_query_page_detail_stats( site_url: Annotated[str, "The URL of the site"], query: Annotated[str, "The search query"], page: Annotated[str, "The specific page URL"], ) -> Dict[str, Any]: """ Get detailed statistics for a specific query and page combination. Args: site_url: The URL of the site query: The search query page: The specific page URL Returns: Detailed statistics for the query-page combination """ async with api: stats = await api._make_request( f"GetQueryPageDetailStats?siteUrl={site_url}&query={query}&page={page}" ) return api._ensure_type_field(stats, "DetailedQueryStats")