Skip to main content
Glama
isiahw1

mcp-server-bing-webmaster

get_url_links

Retrieve inbound links for a specific website URL to analyze backlink profiles and monitor referring domains using Bing Webmaster Tools data.

Instructions

Get inbound links for specific site URL.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
site_urlYes
linkYes
pageNo

Implementation Reference

  • The handler function for the 'get_url_links' tool, registered via @mcp.tool decorator. It calls the Bing Webmaster Tools API endpoint 'GetUrlLinks' to retrieve inbound links for a specific URL on the site, handling parameters site_url, link, and page, and ensures MCP-compatible typing.
    @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")

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