Skip to main content
Glama
isiahw1

mcp-server-bing-webmaster

add_connected_page

Submit pages linking to your website to Bing Webmaster Tools for indexing and backlink tracking.

Instructions

Add a page that has a link to your website.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
site_urlYes
connected_urlYes

Implementation Reference

  • The main handler function for the 'add_connected_page' MCP tool. It is registered via the @mcp.tool decorator and implements the logic by calling the Bing Webmaster API's AddConnectedPage endpoint with the provided site_url and connected_url.
    @mcp.tool(
        name="add_connected_page", description="Add a page that has a link to your website."
    )
    async def add_connected_page(
        site_url: Annotated[str, "The URL of your site"],
        connected_url: Annotated[str, "The URL of the page linking to your site"],
    ) -> Dict[str, str]:
        """
        Add a page that has a link to your website.
    
        Args:
            site_url: The URL of your site
            connected_url: The URL of the page linking to your site
    
        Returns:
            Success message
        """
        async with api:
            await api._make_request(
                "AddConnectedPage",
                "POST",
                {"siteUrl": site_url, "connectedPageUrl": connected_url},
            )
            return {"message": f"Connected page {connected_url} added successfully"}
  • The @mcp.tool decorator registers the 'add_connected_page' tool with the MCP server, specifying its name and description.
    @mcp.tool(
        name="add_connected_page", description="Add a page that has a link to your website."
    )

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