Skip to main content
Glama
isiahw1

mcp-server-bing-webmaster

get_url_traffic_info

Retrieve traffic data for specific URLs from Bing Webmaster Tools to analyze website performance and visitor metrics.

Instructions

Get traffic information for specific URLs.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
site_urlYes
urlsYes

Implementation Reference

  • Registration of the 'get_url_traffic_info' tool using the @mcp.tool decorator with name and description.
    name="get_url_traffic_info", description="Get traffic information for specific URLs.", ) async def get_url_traffic_info(
  • The handler function for 'get_url_traffic_info' that makes a POST request to the Bing Webmaster API's GetUrlTrafficInfo endpoint with site_url and urls, processes the response, and ensures type fields for MCP compatibility.
    async def get_url_traffic_info( site_url: Annotated[str, "The URL of the site"], urls: List[str] ) -> List[Dict[str, Any]]: """ Get traffic information for specific URLs. Args: site_url: The URL of the site urls: List of URLs to get traffic info for Returns: Traffic information for each URL """ async with api: traffic_info = await api._make_request( "GetUrlTrafficInfo", "POST", {"siteUrl": site_url, "urls": urls} ) return api._ensure_type_field(traffic_info, "UrlTrafficInfo")

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