Skip to main content
Glama
zizzfizzix

Bing Webmaster Tools MCP Server

by zizzfizzix

get_url_links

Retrieve inbound link details for a specific URL using Bing Webmaster Tools API. Specify the site URL, target link, and page number to gather linked data for analysis or SEO optimization.

Instructions

Retrieve inbound links for a specific URL.

Args: site_url: The URL of the site link: The specific URL to get inbound links for page: The page number of results to retrieve

Returns: LinkDetails: Details about inbound links

Raises: BingWebmasterError: If link details cannot be retrieved

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
linkYes
pageNo
selfYes
site_urlYes

Implementation Reference

  • Core MCP tool handler implementation: wraps the service method, decorates with @mcp.tool(), copies signature/docstring, and executes the underlying async service method.
    @mcp.tool() @wraps(original_method) 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) # Copy signature and docstring wrapper.__signature__ = new_sig # type: ignore wrapper.__doc__ = original_method.__doc__ return wrapper
  • Registration of Link Analysis tools, including get_url_links, via wrap_service_method which applies @mcp.tool().
    # Link Analysis Tools get_link_counts = wrap_service_method(mcp, service, "links", "get_link_counts") # noqa: F841 get_url_links = wrap_service_method(mcp, service, "links", "get_url_links") # noqa: F841 get_deep_link = wrap_service_method(mcp, service, "links", "get_deep_link") # noqa: F841 get_deep_link_blocks = wrap_service_method( # noqa: F841 mcp, service, "links", "get_deep_link_blocks" ) add_deep_link_block = wrap_service_method( # noqa: F841 mcp, service, "links", "add_deep_link_block" ) remove_deep_link_block = wrap_service_method( # noqa: F841 mcp, service, "links", "remove_deep_link_block" ) update_deep_link = wrap_service_method(mcp, service, "links", "update_deep_link") # noqa: F841 get_deep_link_algo_urls = wrap_service_method( # noqa: F841 mcp, service, "links", "get_deep_link_algo_urls" ) get_connected_pages = wrap_service_method( # noqa: F841 mcp, service, "links", "get_connected_pages" ) add_connected_page = wrap_service_method( # noqa: F841 mcp, service, "links", "add_connected_page" )
  • Invokes the function to register all Bing Webmaster MCP tools, including get_url_links.
    add_bing_webmaster_tools(mcp, bing_service)
  • Initializes the 'links' service instance (LinkAnalysisService) used by the get_url_links tool.
    self.links = link_analysis.LinkAnalysisService(self.client)
  • Maps 'links' service attribute to its class for dynamic method retrieval in wrapper.
    "links": link_analysis.LinkAnalysisService,

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