Skip to main content
Glama
isiahw1

mcp-server-bing-webmaster

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
NameRequiredDescriptionDefault
site_urlYes
user_emailYes

Implementation Reference

  • 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.")
  • 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}"}

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/isiahw1/mcp-server-bing-webmaster'

If you have feedback or need assistance with the MCP directory API, please join our Discord server