Skip to main content
Glama
zizzfizzix

Bing Webmaster Tools MCP Server

by zizzfizzix

get_url_info

Retrieve detailed information about a specific URL from Bing Webmaster Tools to analyze indexing status, traffic data, and technical insights for webmaster optimization.

Instructions

Retrieve detailed information for a specific URL.

Args: site_url: The URL of the site url: The specific URL to get information for

Returns: UrlInfo: Detailed information about the URL

Raises: BingWebmasterError: If URL information cannot be retrieved

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
selfYes
site_urlYes
urlYes

Implementation Reference

  • The core handler logic executed when the get_url_info tool is called. It creates a service context, retrieves the 'content' service instance, gets the 'get_url_info' method, and awaits its execution with provided arguments.
    async def wrapper(*args: Any, **kwargs: Any) -> Any:
        # Filter out any 'self' arguments that might be passed by the MCP client
        kwargs = {k: v for k, v in kwargs.items() if k != "self"}
    
        async with service as s:
            service_obj = getattr(s, service_attr)
            # Get the method from the instance
            method = getattr(service_obj, method_name)
            # Call the method directly - it's already bound to the instance
            return await method(*args, **kwargs)
  • Specific registration of the 'get_url_info' tool by invoking wrap_service_method with the 'content' service and 'get_url_info' method name.
    get_url_info = wrap_service_method(mcp, service, "content", "get_url_info")  # noqa: F841
  • Calls the function that registers all Bing Webmaster tools, including 'get_url_info', to the MCP server instance.
    add_bing_webmaster_tools(mcp, bing_service)
  • SERVICE_CLASSES mapping used to retrieve the ContentManagementService class for inspecting the method signature and docstring to define the tool schema for get_url_info.
    SERVICE_CLASSES = {
        "sites": site_management.SiteManagementService,
        "submission": submission.SubmissionService,
        "traffic": traffic_analysis.TrafficAnalysisService,
        "crawling": crawling.CrawlingService,
        "keywords": keyword_analysis.KeywordAnalysisService,
        "links": link_analysis.LinkAnalysisService,
        "content": content_management.ContentManagementService,
        "blocking": content_blocking.ContentBlockingService,
        "regional": regional_settings.RegionalSettingsService,
        "urls": url_management.UrlManagementService,
    }
  • Initializes the 'content' service attribute on BingWebmasterService instance, providing the ContentManagementService object that contains the get_url_info implementation.
    self.content = content_management.ContentManagementService(self.client)

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/zizzfizzix/mcp-server-bwt'

If you have feedback or need assistance with the MCP directory API, please join our Discord server