remove_site_role
Remove user access to a specific site in Bing Webmaster Tools by specifying the site URL and user email.
Instructions
Remove a user's access to a site.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| site_url | Yes | ||
| user_email | Yes |
Implementation Reference
- mcp_server_bwt/main.py:1527-1527 (registration)Registration of the remove_site_role tool using the @mcp.tool decorator.@mcp.tool(name="remove_site_role", description="Remove a user's access to a site.")
- mcp_server_bwt/main.py:1528-1546 (handler)Handler function that executes the tool logic by making a POST request to RemoveSiteRole endpoint with siteUrl and userEmail.async def remove_site_role( site_url: Annotated[str, "The URL of the site"], user_email: Annotated[str, "Email of the user to remove"], ) -> Dict[str, str]: """ Remove a user's access to a site. Args: site_url: The URL of the site user_email: Email of the user to remove Returns: Success message """ async with api: await api._make_request( "RemoveSiteRole", "POST", {"siteUrl": site_url, "userEmail": user_email} ) return {"message": f"Access removed for {user_email}"}