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