get_site_moves
Retrieve site migration history from Bing Webmaster Tools to track URL changes and verify redirects for SEO management.
Instructions
Get history of site moves/migrations.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| site_url | Yes |
Implementation Reference
- mcp_server_bwt/main.py:1476-1491 (handler)The main asynchronous handler function for the 'get_site_moves' MCP tool. It registers the tool via decorator, defines input schema via Annotated type hint, and implements the logic by calling the Bing Webmaster API endpoint 'GetSiteMoves' and processing the response.@mcp.tool(name="get_site_moves", description="Get history of site moves/migrations.") async def get_site_moves( site_url: Annotated[str, "The URL of the site"] ) -> List[Dict[str, Any]]: """ Get history of site moves/migrations. Args: site_url: The URL of the site Returns: List of site moves """ async with api: moves = await api._make_request(f"GetSiteMoves?siteUrl={site_url}") return api._ensure_type_field(moves, "SiteMove")