Skip to main content
Glama
isiahw1

mcp-server-bing-webmaster

get_link_counts

Retrieve inbound link counts for any website to analyze backlink profiles and monitor SEO performance using Bing Webmaster Tools data.

Instructions

Get inbound link counts for a site.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
site_urlYes

Implementation Reference

  • Registration of the 'get_link_counts' tool using the @mcp.tool decorator, specifying the name and description.
    @mcp.tool(name="get_link_counts", description="Get inbound link counts for a site.")
  • The handler function that executes the tool logic: takes site_url, makes an API request to Bing Webmaster Tools for link counts, processes the response with type field, and returns it.
    async def get_link_counts( site_url: Annotated[str, "The URL of the site"] ) -> Dict[str, Any]: """ Get inbound link counts for a site. Args: site_url: The URL of the site Returns: Link count statistics """ async with api: counts = await api._make_request(f"GetLinkCounts?siteUrl={site_url}") return api._ensure_type_field(counts, "LinkCounts")

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