get_page_query_stats
Retrieve search query statistics for a specific webpage 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:1425-1427 (registration)Registration of the 'get_page_query_stats' tool using the @mcp.tool decorator, specifying name and description.name="get_page_query_stats", description="Get query statistics for a specific page." ) async def get_page_query_stats(
- mcp_server_bwt/main.py:1428-1446 (handler)The main handler function that executes the tool logic by making an API request to retrieve query statistics for a specific page and ensuring the response type.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")