get_functional_keywords
Retrieve functional keyword mappings to improve search precision and discover relevant MCP servers for development projects.
Instructions
Show available functional keyword mappings for better search results.
Returns: Formatted list of functional keywords
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- mcp_recommender/server.py:244-270 (handler)The handler function for the 'get_functional_keywords' tool. It retrieves and formats the functional keywords from the recommender instance for display.@mcp.tool() def get_functional_keywords() -> str: """ Show available functional keyword mappings for better search results. Returns: Formatted list of functional keywords """ try: if not recommender.functional_keywords: return "### No functional keywords available\nThe keyword mapping database is not loaded." result = "### Functional Keywords Mapping:\n\n" result += "Use these terms in your queries for better results:\n\n" for function, keywords in recommender.functional_keywords.items(): result += f"**{function.title()}:**\n" result += f" - Keywords: {', '.join(keywords[:8])}" # Show first 8 keywords if len(keywords) > 8: result += f" (and {len(keywords) - 8} more)" result += "\n\n" return result except Exception as e: return f"### Error\nAn error occurred while retrieving keywords: {str(e)}"