Skip to main content
Glama
isiahw1

mcp-server-bing-webmaster

get_query_page_detail_stats

Analyze performance metrics for specific search queries and web pages to optimize SEO strategies and track user engagement.

Instructions

Get detailed statistics for a specific query and page combination.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
site_urlYes
queryYes
pageYes

Implementation Reference

  • Implements the tool by calling the Bing Webmaster API endpoint GetQueryPageDetailStats with site_url, query, and page parameters, then ensuring the response has the expected type field.
    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")
  • Registers the tool using the @mcp.tool decorator with the specified name and description.
    @mcp.tool(
        name="get_query_page_detail_stats",
        description="Get detailed statistics for a specific query and page combination.",
    )

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