get_related_keywords
Find keywords related to a search query for a website using Bing Webmaster Tools data to improve SEO and 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:437-456 (handler)The handler function that executes the get_related_keywords tool. It takes site_url and query parameters, calls the Bing Webmaster Tools API's GetRelatedKeywords endpoint, and returns a list of related keywords after ensuring type fields for MCP compatibility.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")
- mcp_server_bwt/main.py:434-436 (registration)Registers the get_related_keywords tool with the MCP server using the @mcp.tool decorator, providing the tool name and description.@mcp.tool( name="get_related_keywords", description="Get keywords related to a specific query." )