Skip to main content
Glama
miyamamoto

JVLink MCP Server

by miyamamoto

nar_horse_history

Retrieve past race records for horses in Japanese NAR regional horse racing. View performance history and race results for specific horses.

Instructions

NAR地方競馬の馬の過去レース戦績を取得

地方競馬で出走した馬の戦績を一覧できます。

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
horse_nameYes
year_fromNo

Implementation Reference

  • Implementation of nar_horse_history via delegation to _horse_history_impl with source='nar'.
    def get_nar_horse_history(
        db_connection,
        horse_name: str,
        year_from: Optional[str] = None
    ) -> pd.DataFrame:
        """NAR地方競馬の馬の戦績を取得(JRA版に委譲)"""
        return _horse_history_impl(
            db_connection, horse_name=horse_name, year_from=year_from, source='nar'
        )
  • MCP tool registration for 'nar_horse_history' which calls _get_nar_horse_history.
    @mcp.tool(name="nar_horse_history")
    def get_nar_horse_race_history(
        horse_name: str,
        year_from: Optional[str] = None
    ) -> dict:
        """NAR地方競馬の馬の過去レース戦績を取得
    
        地方競馬で出走した馬の戦績を一覧できます。
        """
        with DatabaseConnection() as db:
            df = _get_nar_horse_history(db, horse_name=horse_name, year_from=year_from)
            return {
                "horse_name": horse_name,
                "total_races": len(df),
                "data": df.to_dict(orient="records"),
                "columns": df.columns.tolist()
            }

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