Skip to main content
Glama
isiahw1

mcp-server-bing-webmaster

get_url_links

Retrieve inbound links for a website URL using Bing Webmaster Tools data to analyze backlink profiles and improve SEO strategies.

Instructions

Get inbound links for specific site URL.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
site_urlYes
linkYes
pageNo

Implementation Reference

  • Handler function for get_url_links tool. Registers the tool with @mcp.tool decorator, defines input parameters with descriptions, and implements logic by calling the Bing Webmaster API's GetUrlLinks endpoint to fetch inbound link details.
    @mcp.tool(name="get_url_links", description="Get inbound links for specific site URL.") async def get_url_links( site_url: Annotated[str, "The URL of the site"], link: Annotated[str, "Specific link to retrieve details for"], page: Annotated[int, "Page number of results"] = 0, ) -> Dict[str, Any]: """ Get inbound links for specific site URL. Args: site_url: The URL of the site link: Specific link to retrieve details for page: Page number of results (default: 0) Returns: LinkDetails object with inbound link information """ async with api: details = await api._make_request( f"GetUrlLinks?siteUrl={site_url}&link={link}&page={page}" ) return api._ensure_type_field(details, "LinkDetails")
  • Tool registration decorator specifying the name 'get_url_links' and its description.
    @mcp.tool(name="get_url_links", description="Get inbound links for specific site URL.")
  • Input schema defined via Annotated type hints with descriptions for MCP tool parameters.
    site_url: Annotated[str, "The URL of the site"], link: Annotated[str, "Specific link to retrieve details for"], page: Annotated[int, "Page number of results"] = 0, ) -> Dict[str, Any]:

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