search_features
Search for horse racing data features using keywords like 'popularity', 'distance', or 'jockey' to analyze race results and performance metrics.
Instructions
キーワードで特徴量を検索
Args:
keyword: 検索キーワード(例: "人気", "距離", "騎手")
Returns:
該当する特徴量のリストInput Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| keyword | Yes |
Implementation Reference
- src/jvlink_mcp_server/server.py:307-325 (handler)The `search_features` function is implemented as an MCP tool in `src/jvlink_mcp_server/server.py`. It searches for features within the globally loaded `FEATURE_IMPORTANCE_DATA` by matching a given keyword against feature names and descriptions.
def search_features(keyword: str) -> dict: """キーワードで特徴量を検索 Args: keyword: 検索キーワード(例: "人気", "距離", "騎手") Returns: 該当する特徴量のリスト """ matching_features = [ f for f in FEATURE_IMPORTANCE_DATA["important_features"] if keyword.lower() in f["name"].lower() or keyword.lower() in f["description"].lower() ] return { "keyword": keyword, "features": matching_features, "count": len(matching_features) }