Skip to main content
Glama
isiahw1

mcp-server-bing-webmaster

get_related_keywords

Find related keywords for a specific query using Bing Webmaster Tools data to improve SEO content strategy.

Instructions

Get keywords related to a specific query.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
site_urlYes
queryYes

Implementation Reference

  • Registration of the 'get_related_keywords' tool using the @mcp.tool decorator with name and description.
    @mcp.tool( name="get_related_keywords", description="Get keywords related to a specific query." )
  • The main handler function for the 'get_related_keywords' tool. It takes site_url and query parameters, makes an API request to the 'GetRelatedKeywords' endpoint, and returns the processed list of related keywords.
    async def get_related_keywords( site_url: Annotated[str, "The URL of the site"], query: Annotated[str, "The base keyword/query"], ) -> List[Dict[str, Any]]: """ Get keywords related to a specific query. Args: site_url: The URL of the site query: The base keyword/query Returns: List of related keywords """ async with api: keywords = await api._make_request( f"GetRelatedKeywords?siteUrl={site_url}&query={query}" ) return api._ensure_type_field(keywords, "RelatedKeyword")

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