get_site_moves
Retrieve site migration history from Bing Webmaster Tools to track URL changes and verify successful moves.
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 handler function for the 'get_site_moves' tool, registered via @mcp.tool decorator. It makes an API request to retrieve site moves history and ensures type field.@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")
- mcp_server_bwt/main.py:1476-1476 (registration)Registration of the 'get_site_moves' tool using the @mcp.tool decorator.@mcp.tool(name="get_site_moves", description="Get history of site moves/migrations.")
- mcp_server_bwt/main.py:1477-1479 (schema)Input schema via Annotated type hint for site_url and output type List[Dict[str, Any]].async def get_site_moves( site_url: Annotated[str, "The URL of the site"] ) -> List[Dict[str, Any]]: