add_site
Add a website to Bing Webmaster Tools for monitoring and management. Submit your site URL to track performance and receive insights from Bing's search engine.
Instructions
Add a new site to Bing Webmaster Tools
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| site_url | Yes |
Implementation Reference
- mcp_server_bwt/main.py:144-159 (handler)The handler function for the 'add_site' tool, decorated with @mcp.tool for registration. It takes a site_url parameter, makes a POST request to the Bing Webmaster Tools 'AddSite' endpoint using the api helper, and returns a success message.@mcp.tool(name="add_site", description="Add a new site to Bing Webmaster Tools") async def add_site( site_url: Annotated[str, "The URL of the site to add"] ) -> Dict[str, str]: """ Add a new site to Bing Webmaster Tools. Args: site_url: The URL of the site to add Returns: Success message """ async with api: await api._make_request("AddSite", "POST", {"siteUrl": site_url}) return {"message": f"Site {site_url} added successfully"}
- mcp_server_bwt/main.py:144-144 (registration)The @mcp.tool decorator registers the 'add_site' function as an MCP tool with the specified name and description.@mcp.tool(name="add_site", description="Add a new site to Bing Webmaster Tools")
- mcp_server_bwt/main.py:145-147 (schema)Input schema defined by type hints: site_url as str (annotated), return type Dict[str, str].async def add_site( site_url: Annotated[str, "The URL of the site to add"] ) -> Dict[str, str]: