Skip to main content
Glama
isiahw1

mcp-server-bing-webmaster

get_site_roles

Retrieve a list of users who have access to a website in Bing Webmaster Tools to manage permissions and access control.

Instructions

Get list of users with access to the site.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
site_urlYes

Implementation Reference

  • Registration of the 'get_site_roles' tool using the @mcp.tool decorator.
    @mcp.tool( name="get_site_roles", description="Get list of users with access to the site." )
  • The handler function for 'get_site_roles' that makes an API request to retrieve site roles and processes the response.
    async def get_site_roles( site_url: Annotated[str, "The URL of the site"] ) -> List[Dict[str, Any]]: """ Get list of users with access to the site. Args: site_url: The URL of the site Returns: List of users and their roles """ async with api: roles = await api._make_request(f"GetSiteRoles?siteUrl={site_url}") return api._ensure_type_field(roles, "SiteRoles")

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