get_keyword_data
Retrieve detailed keyword performance data from Bing Webmaster Tools to analyze search queries for a specific website.
Instructions
Get detailed data for a specific keyword/query.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| site_url | Yes | ||
| query | Yes |
Implementation Reference
- mcp_server_bwt/main.py:416-432 (handler)The main handler function for the 'get_keyword_data' tool. It takes site_url and query parameters, makes an API request to 'GetKeyword', and returns the processed data with type field ensured.site_url: Annotated[str, "The URL of the site"], query: Annotated[str, "The keyword/query to analyze"], ) -> Dict[str, Any]: """ Get detailed data for a specific keyword/query. Args: site_url: The URL of the site query: The keyword/query to analyze Returns: Keyword performance data """ async with api: data = await api._make_request(f"GetKeyword?siteUrl={site_url}&query={query}") return api._ensure_type_field(data, "KeywordData")
- mcp_server_bwt/main.py:412-415 (registration)The MCP tool registration decorator that registers the get_keyword_data handler with the specified name and description. The input schema is inferred from the handler function signature.name="get_keyword_data", description="Get detailed data for a specific keyword/query.", ) async def get_keyword_data(