Skip to main content
Glama
isiahw1

mcp-server-bing-webmaster

get_crawl_stats

Retrieve crawl statistics for a specific website from Bing Webmaster Tools to monitor search engine indexing performance.

Instructions

Retrieve crawl statistics for a specific site.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
site_urlYes

Implementation Reference

  • The @mcp.tool decorator registers the get_crawl_stats tool with MCP, providing name and description. The function signature below defines the input/output schema.
    @mcp.tool( name="get_crawl_stats", description="Retrieve crawl statistics for a specific site." )
  • The function signature provides the input schema (site_url: Annotated[str, ...]) and output type (List[Dict[str, Any]]), used by MCP for tool schema validation.
    async def get_crawl_stats( site_url: Annotated[str, "The URL of the site"] ) -> List[Dict[str, Any]]:
  • The main handler function that implements the tool logic: acquires an API context, makes a request to Bing's GetCrawlStats endpoint with the site_url, ensures the response has the correct type field, and returns the statistics.
    async def get_crawl_stats( site_url: Annotated[str, "The URL of the site"] ) -> List[Dict[str, Any]]: """ Retrieve crawl statistics for a specific site. Args: site_url: The URL of the site Returns: List of daily crawl statistics """ async with api: stats = await api._make_request(f"GetCrawlStats?siteUrl={site_url}") return api._ensure_type_field(stats, "CrawlStats")

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