Skip to main content
Glama
miyamamoto

JVLink MCP Server

by miyamamoto

search_features

Search for Japanese horse racing features by keyword. Returns a list of relevant features like popularity, distance, or jockey.

Instructions

キーワードで特徴量を検索

Args:
    keyword: 検索キーワード(例: "人気", "距離", "騎手")

Returns:
    該当する特徴量のリスト

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
keywordYes

Implementation Reference

  • The 'search_features' tool function decorated with @mcp.tool(). It searches for features by keyword in FEATURE_IMPORTANCE_DATA, filtering by name or description (case-insensitive). Returns a dict with keyword, matching features, and count.
    @mcp.tool()
    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)
        }
  • The tool is registered via the @mcp.tool() decorator from the FastMCP instance (line 50: mcp = FastMCP('JVLink MCP Server')).
    @mcp.tool()
  • FEATURE_IMPORTANCE_DATA is the data source loaded from 'feature_importance.json' at module init, containing 'important_features', 'feature_combinations', and 'references' keys. Falls back to empty defaults if file not found.
    # 特徴量知見データの読み込み
    _feature_importance_path = DATA_DIR / "feature_importance.json"
    if _feature_importance_path.exists():
        with open(_feature_importance_path, "r", encoding="utf-8") as f:
            FEATURE_IMPORTANCE_DATA = json.load(f)
    else:
        import logging
        logging.getLogger(__name__).warning(
            f"feature_importance.json not found at {_feature_importance_path}"
        )
        FEATURE_IMPORTANCE_DATA = {
            "important_features": [],
            "feature_combinations": [],
            "references": []
        }
Behavior2/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

No annotations are provided, so the description carries full burden for behavioral disclosure. It mentions returning a list of features but omits details like search behavior (exact or fuzzy match), performance, or authentication requirements.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is very short but structured with Args and Returns sections in a Python docstring format. Every line provides useful information, though it could be slightly more verbose without losing conciseness.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a simple search tool, the description covers the basic purpose and parameter. However, it lacks details on the return structure (list of what?), search algorithm, and edge cases. Given no output schema, it would benefit from explaining the result format.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The schema has no description for the keyword parameter (0% coverage), but the description adds concrete examples ('人気', '距離', '騎手') that clarify expected usage. This adds significant meaning beyond the bare schema definition.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states it searches features by keyword, using a specific verb and resource. However, it does not explicitly distinguish itself from sibling tools like get_feature_by_category or get_important_features, which could cause confusion about when to use each.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

No guidance is provided on when to use this tool versus alternatives. The description does not include any context about use cases, prerequisites, or limitations, leaving the agent to infer usage from the tool name alone.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/miyamamoto/jvlink-mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server