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
| Name | Required | Description | Default |
|---|---|---|---|
| horse_name | Yes | ||
| year_from | No |
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' ) - src/jvlink_mcp_server/server.py:600-616 (handler)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() }