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
| Name | Required | Description | Default |
|---|---|---|---|
| site_url | Yes | ||
| link | Yes | ||
| page | No |
Implementation Reference
- mcp_server_bwt/main.py:477-498 (handler)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")