horseracingapi.co.uk

MCP tools

Every MCP tool: what it does, its inputs, the endpoint it calls and the plan it needs.

The tools the MCP server offers. Each calls one endpoint with your key; pagination is handled for you.

ToolWhat it doesInputsCallsPlans
list_coursesEvery British and Northern Irish course, with where it is and which way round it runs.noneGET /v1/coursesEvery plan, free key included
course_detailsOne course in full: what is raced there and over which distances.course_idGET /v1/courses/{course_id}Every plan, free key included
todays_racecardsToday's UK cards, every meeting and race in the order they are due off.courseGET /v1/racecards/todayLive, Archive and Complete
racecards_for_dateThe full UK card for one day, with results where the races are settled.date courseGET /v1/racecards/{date}Every plan, free key included
results_for_dateEvery settled UK race on a day: finishing order, starting prices and the rest.dateGET /v1/results/{date}Every plan, free key included
race_detailsOne race: its conditions, the market and every runner.race_idGET /v1/races/{race_id}Every plan, free key included
race_marketA race's market: the book, every price and what moved.race_idGET /v1/races/{race_id}/marketLive, Archive and Complete
search_racesFind UK races by date, course, type, going, class and field size.date_from date_to course_id run_type class going surface handicap min_runners max_runners result_available limitGET /v1/races/searchLive, Archive and Complete
search_racingLook up a horse, trainer, jockey or course by name and get its id.q type limitGET /v1/searchLive, Archive and Complete
horse_formA horse's UK runs, newest first.horse_id limitGET /v1/horses/{horse_id}/formLive, Archive and Complete
trainer_statsA trainer's strike rate, A/E and level stakes, split any way.trainer_id by min_runsGET /v1/trainers/{trainer_id}/statsComplete
jockey_statsA jockey's strike rate, A/E and level stakes, split any way.jockey_id by min_runsGET /v1/jockeys/{jockey_id}/statsComplete
race_reportThe written account of one race, with a line for every runner.race_idGET /v1/reports/{race_id}Complete
days_upsetsThe day's UK shocks, each scored 0 to 100 with the reasons.dateGET /v1/upsetsEvery plan, free key included