submit_site_move
Notify Bing Webmaster Tools when migrating a website from one domain to another to maintain search visibility and rankings.
Instructions
Submit a site move/migration notification.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| old_site_url | Yes | ||
| new_site_url | Yes | ||
| move_type | No | Domain |
Implementation Reference
- mcp_server_bwt/main.py:1497-1523 (handler)The main handler function for the 'submit_site_move' tool. It takes old_site_url, new_site_url, and move_type as inputs and makes a POST request to the Bing Webmaster Tools API's SubmitSiteMove endpoint.async def submit_site_move( old_site_url: Annotated[str, "The old site URL"], new_site_url: Annotated[str, "The new site URL"], move_type: Annotated[str, "Type of move (e.g., 'Domain', 'Subdomain')"] = "Domain", ) -> Dict[str, str]: """ Submit a site move/migration notification. Args: old_site_url: The old site URL new_site_url: The new site URL move_type: Type of move (default: Domain) Returns: Success message """ async with api: await api._make_request( "SubmitSiteMove", "POST", { "oldSiteUrl": old_site_url, "newSiteUrl": new_site_url, "moveType": move_type, }, ) return {"message": f"Site move from {old_site_url} to {new_site_url} submitted"}
- mcp_server_bwt/main.py:1494-1496 (registration)Registration of the 'submit_site_move' tool using the @mcp.tool decorator, specifying the name and description.@mcp.tool( name="submit_site_move", description="Submit a site move/migration notification." )
- mcp_server_bwt/main.py:1497-1501 (schema)Input schema defined by Annotated type hints on the function parameters and return type annotation.async def submit_site_move( old_site_url: Annotated[str, "The old site URL"], new_site_url: Annotated[str, "The new site URL"], move_type: Annotated[str, "Type of move (e.g., 'Domain', 'Subdomain')"] = "Domain", ) -> Dict[str, str]: