remove_site_role
Remove user access to a Bing Webmaster Tools site by specifying the site URL and user email to revoke permissions.
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 for the 'remove_site_role' tool. It takes site_url and user_email, makes a POST request to 'RemoveSiteRole' endpoint via api._make_request, and returns a success message.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}"}