Skip to main content
Glama
miyamamoto

JVLink MCP Server

by miyamamoto

get_feature_by_category

Retrieves a list of features for a given category, such as past performance or pedigree, to enable targeted analysis of horse racing data.

Instructions

カテゴリ別に特徴量を取得

Args:
    category: カテゴリ名(過去成績、適性、人的要因、血統など)

Returns:
    該当カテゴリの特徴量リスト

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
categoryYes

Implementation Reference

  • The tool handler function for 'get_feature_by_category'. It takes a category string, filters the FEATURE_IMPORTANCE_DATA['important_features'] list by category, and returns matching features with count.
    @mcp.tool()
    def get_feature_by_category(category: str) -> dict:
        """カテゴリ別に特徴量を取得
    
        Args:
            category: カテゴリ名(過去成績、適性、人的要因、血統など)
    
        Returns:
            該当カテゴリの特徴量リスト
        """
        features = [
            f for f in FEATURE_IMPORTANCE_DATA["important_features"]
            if f["category"] == category
        ]
        return {
            "category": category,
            "features": features,
            "count": len(features)
        }
  • The tool is registered via the @mcp.tool() decorator on line 291, which uses FastMCP to register 'get_feature_by_category' as an MCP tool.
    @mcp.tool()
  • FEATURE_IMPORTANCE_DATA is loaded from data/feature_importance.json at module load time (or defaults to empty lists). This is the data source used by get_feature_by_category.
    # 特徴量知見データの読み込み
    _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 present, and the description only implies a read operation ('get') without confirming safety, auth requirements, or disclosing any behavioral traits. The agent must infer behavior from the tool name alone.

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

Conciseness5/5

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

The description is extremely concise, using a single line for purpose and structured parameter/return sections. No superfluous text—every word is necessary.

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 tool with one parameter and no output schema, the description covers the essential information. However, it lacks context about edge cases, limitations, or how the returned list is ordered, which could be important for practical use.

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

Parameters3/5

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

The schema has 0% description coverage, but the description lists example category values ('past performance, aptitude, human factors, pedigree') which adds meaningful context beyond the schema's generic string type. However, it does not enumerate all allowed values or specify format.

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

Purpose3/5

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

The description states the tool gets features by category, specifying a parameter and return type. However, it does not distinguish from sibling tools like 'get_important_features' or 'search_features', leaving ambiguity about when to use this specific tool.

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, nor any conditions or exclusions. The agent receives no help in choosing among feature-related tools.

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