remove_site
Remove a website from Bing Webmaster Tools to stop monitoring and managing its search performance data.
Instructions
Remove a site from Bing Webmaster Tools
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| site_url | Yes |
Implementation Reference
- mcp_server_bwt/main.py:180-195 (handler)The handler function for the 'remove_site' tool. It takes a site_url parameter and uses the api context manager to make a POST request to the 'RemoveSite' endpoint, returning a success message.@mcp.tool(name="remove_site", description="Remove a site from Bing Webmaster Tools") async def remove_site( site_url: Annotated[str, "The URL of the site to remove"] ) -> Dict[str, str]: """ Remove a site from Bing Webmaster Tools. Args: site_url: The URL of the site to remove Returns: Success message """ async with api: await api._make_request("RemoveSite", "POST", {"siteUrl": site_url}) return {"message": f"Site {site_url} removed successfully"}
- mcp_server_bwt/main.py:180-180 (registration)The @mcp.tool decorator registers the remove_site function as an MCP tool with the specified name and description.@mcp.tool(name="remove_site", description="Remove a site from Bing Webmaster Tools")
- mcp_server_bwt/main.py:181-183 (schema)The function signature defines the input schema (site_url: str) and output type (Dict[str, str]) for the tool.async def remove_site( site_url: Annotated[str, "The URL of the site to remove"] ) -> Dict[str, str]: