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
| Name | Required | Description | Default |
|---|---|---|---|
| site_url | Yes | ||
| query | Yes |
Implementation Reference
- mcp_server_bwt/main.py:434-436 (registration)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." )
- mcp_server_bwt/main.py:437-456 (handler)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")