The Racing API · Capability

The Racing API — Trainers

The Racing API — Trainers. 7 operations. Lead operation: The Racing API Trainer Search. Self-contained Naftiko capability covering one The Racing Api business surface.

Run with Naftiko The Racing ApiTrainers

What You Can Do

GET
Trainersearchv1trainerssearchget — The Racing API Trainer Search
/v1/v1/trainers/search
GET
Trainercourseanalysisv1trainerstraineridanalysiscoursesget — The Racing API Trainer Course Analysis
/v1/v1/trainers/{trainer-id}/analysis/courses
GET
Trainerdistanceanalysisv1trainerstraineridanalysisdistancesget — The Racing API Trainer Distance Analysis
/v1/v1/trainers/{trainer-id}/analysis/distances
GET
Trainerhorseageanalysisv1trainerstraineridanalysishorseageget — The Racing API Trainer Horse Age Analysis
/v1/v1/trainers/{trainer-id}/analysis/horse-age
GET
Trainerjockeyanalysisv1trainerstraineridanalysisjockeysget — The Racing API Trainer Jockey Analysis
/v1/v1/trainers/{trainer-id}/analysis/jockeys
GET
Trainerowneranalysisv1trainerstraineridanalysisownersget — The Racing API Trainer Owner Analysis
/v1/v1/trainers/{trainer-id}/analysis/owners
GET
Trainerresultsv1trainerstraineridresultsget — The Racing API Trainer Results
/v1/v1/trainers/{trainer-id}/results

MCP Tools

racing-api-trainer-search

The Racing API Trainer Search

read-only idempotent
racing-api-trainer-course-analysis

The Racing API Trainer Course Analysis

read-only idempotent
racing-api-trainer-distance-analysis

The Racing API Trainer Distance Analysis

read-only idempotent
racing-api-trainer-horse-age

The Racing API Trainer Horse Age Analysis

read-only idempotent
racing-api-trainer-jockey-analysis

The Racing API Trainer Jockey Analysis

read-only idempotent
racing-api-trainer-owner-analysis

The Racing API Trainer Owner Analysis

read-only idempotent
racing-api-trainer-results

The Racing API Trainer Results

read-only idempotent

Capability Spec

the-racing-trainers.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: The Racing API — Trainers
  description: 'The Racing API — Trainers. 7 operations. Lead operation: The Racing API Trainer Search. Self-contained Naftiko
    capability covering one The Racing Api business surface.'
  tags:
  - The Racing Api
  - Trainers
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    THE_RACING_API_API_KEY: THE_RACING_API_API_KEY
capability:
  consumes:
  - type: http
    namespace: the-racing-trainers
    baseUri: https://api.theracingapi.com
    description: The Racing API — Trainers business capability. Self-contained, no shared references.
    resources:
    - name: v1-trainers-search
      path: /v1/trainers/search
      operations:
      - name: trainersearchv1trainerssearchget
        method: GET
        description: The Racing API Trainer Search
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: name
          in: query
          type: string
          required: true
    - name: v1-trainers-trainer_id-analysis-courses
      path: /v1/trainers/{trainer_id}/analysis/courses
      operations:
      - name: trainercourseanalysisv1trainerstraineridanalysiscoursesget
        method: GET
        description: The Racing API Trainer Course Analysis
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: trainer_id
          in: path
          type: string
          required: true
        - name: start_date
          in: query
          type: string
          description: <p>Query from date with format YYYY-MM-DD, e.g. <code>2020-01-01</code></p>
        - name: end_date
          in: query
          type: string
          description: <p>Query to date with format YYYY-MM-DD, e.g. <code>2020-01-01</code></p>
        - name: region
          in: query
          type: string
          description: <p>Query by region codes. Get the full list <a href='https://api.theracingapi.com/documentation#tag/Courses/operation/list_regions_v1_courses_regions_get'>here<
        - name: course
          in: query
          type: string
          description: Query by course ids. Get the full list <a href='https://api.theracingapi.com/documentation#tag/Courses/operation/list_courses_v1_courses_get'>here</a>.
        - name: type
          in: query
          type: string
          description: '<p>Query by race type</p><p>Options: <code>chase</code>, <code>flat</code>, <code>hurdle</code>, <code>nh_flat</code></p>'
        - name: going
          in: query
          type: string
          description: '<p>Query by going</p><p>Options: <code>fast</code>, <code>firm</code>, <code>good</code>, <code>good_to_firm</code>,
            <code>good_to_soft</code>, <code>good_to_yi'
        - name: race_class
          in: query
          type: string
          description: '<p>Query by class</p><p>Options: <code>class_1</code>, <code>class_2</code>, <code>class_3</code>,
            <code>class_4</code>, <code>class_5</code>, <code>class_6</co'
        - name: min_distance_y
          in: query
          type: string
          description: <p>Query by minimum race distance (yards)</p>
        - name: max_distance_y
          in: query
          type: string
          description: <p>Query by maximum race distance (yards)</p>
        - name: age_band
          in: query
          type: string
          description: '<p>Query by age band</p><p>Options: <code>10yo+</code>, <code>2-3yo</code>, <code>2yo</code>, <code>2yo+</code>,
            <code>3-4yo</code>, <code>3-5yo</code>, <code>3'
        - name: sex_restriction
          in: query
          type: string
          description: '<p>Query by sex restriction</p><p>Options: <code>c&f</code>, <code>c&g</code>, <code>f</code>, <code>f&m</code>,
            <code>m</code>, <code>m&g</code></p>'
    - name: v1-trainers-trainer_id-analysis-distances
      path: /v1/trainers/{trainer_id}/analysis/distances
      operations:
      - name: trainerdistanceanalysisv1trainerstraineridanalysisdistancesget
        method: GET
        description: The Racing API Trainer Distance Analysis
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: trainer_id
          in: path
          type: string
          required: true
        - name: start_date
          in: query
          type: string
          description: <p>Query from date with format YYYY-MM-DD, e.g. <code>2020-01-01</code></p>
        - name: end_date
          in: query
          type: string
          description: <p>Query to date with format YYYY-MM-DD, e.g. <code>2020-01-01</code></p>
        - name: region
          in: query
          type: string
          description: <p>Query by region codes. Get the full list <a href='https://api.theracingapi.com/documentation#tag/Courses/operation/list_regions_v1_courses_regions_get'>here<
        - name: course
          in: query
          type: string
          description: Query by course ids. Get the full list <a href='https://api.theracingapi.com/documentation#tag/Courses/operation/list_courses_v1_courses_get'>here</a>.
        - name: type
          in: query
          type: string
          description: '<p>Query by race type</p><p>Options: <code>chase</code>, <code>flat</code>, <code>hurdle</code>, <code>nh_flat</code></p>'
        - name: going
          in: query
          type: string
          description: '<p>Query by going</p><p>Options: <code>fast</code>, <code>firm</code>, <code>good</code>, <code>good_to_firm</code>,
            <code>good_to_soft</code>, <code>good_to_yi'
        - name: race_class
          in: query
          type: string
          description: '<p>Query by class</p><p>Options: <code>class_1</code>, <code>class_2</code>, <code>class_3</code>,
            <code>class_4</code>, <code>class_5</code>, <code>class_6</co'
        - name: min_distance_y
          in: query
          type: string
          description: <p>Query by minimum race distance (yards)</p>
        - name: max_distance_y
          in: query
          type: string
          description: <p>Query by maximum race distance (yards)</p>
        - name: age_band
          in: query
          type: string
          description: '<p>Query by age band</p><p>Options: <code>10yo+</code>, <code>2-3yo</code>, <code>2yo</code>, <code>2yo+</code>,
            <code>3-4yo</code>, <code>3-5yo</code>, <code>3'
        - name: sex_restriction
          in: query
          type: string
          description: '<p>Query by sex restriction</p><p>Options: <code>c&f</code>, <code>c&g</code>, <code>f</code>, <code>f&m</code>,
            <code>m</code>, <code>m&g</code></p>'
    - name: v1-trainers-trainer_id-analysis-horse-age
      path: /v1/trainers/{trainer_id}/analysis/horse-age
      operations:
      - name: trainerhorseageanalysisv1trainerstraineridanalysishorseageget
        method: GET
        description: The Racing API Trainer Horse Age Analysis
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: trainer_id
          in: path
          type: string
          required: true
        - name: start_date
          in: query
          type: string
          description: <p>Query from date with format YYYY-MM-DD, e.g. <code>2020-01-01</code></p>
        - name: end_date
          in: query
          type: string
          description: <p>Query to date with format YYYY-MM-DD, e.g. <code>2020-01-01</code></p>
        - name: region
          in: query
          type: string
          description: <p>Query by region codes. Get the full list <a href='https://api.theracingapi.com/documentation#tag/Courses/operation/list_regions_v1_courses_regions_get'>here<
        - name: course
          in: query
          type: string
          description: Query by course ids. Get the full list <a href='https://api.theracingapi.com/documentation#tag/Courses/operation/list_courses_v1_courses_get'>here</a>.
        - name: type
          in: query
          type: string
          description: '<p>Query by race type</p><p>Options: <code>chase</code>, <code>flat</code>, <code>hurdle</code>, <code>nh_flat</code></p>'
        - name: going
          in: query
          type: string
          description: '<p>Query by going</p><p>Options: <code>fast</code>, <code>firm</code>, <code>good</code>, <code>good_to_firm</code>,
            <code>good_to_soft</code>, <code>good_to_yi'
        - name: race_class
          in: query
          type: string
          description: '<p>Query by class</p><p>Options: <code>class_1</code>, <code>class_2</code>, <code>class_3</code>,
            <code>class_4</code>, <code>class_5</code>, <code>class_6</co'
        - name: min_distance_y
          in: query
          type: string
          description: <p>Query by minimum race distance (yards)</p>
        - name: max_distance_y
          in: query
          type: string
          description: <p>Query by maximum race distance (yards)</p>
        - name: age_band
          in: query
          type: string
          description: '<p>Query by age band</p><p>Options: <code>10yo+</code>, <code>2-3yo</code>, <code>2yo</code>, <code>2yo+</code>,
            <code>3-4yo</code>, <code>3-5yo</code>, <code>3'
        - name: sex_restriction
          in: query
          type: string
          description: '<p>Query by sex restriction</p><p>Options: <code>c&f</code>, <code>c&g</code>, <code>f</code>, <code>f&m</code>,
            <code>m</code>, <code>m&g</code></p>'
    - name: v1-trainers-trainer_id-analysis-jockeys
      path: /v1/trainers/{trainer_id}/analysis/jockeys
      operations:
      - name: trainerjockeyanalysisv1trainerstraineridanalysisjockeysget
        method: GET
        description: The Racing API Trainer Jockey Analysis
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: trainer_id
          in: path
          type: string
          required: true
        - name: start_date
          in: query
          type: string
          description: <p>Query from date with format YYYY-MM-DD, e.g. <code>2020-01-01</code></p>
        - name: end_date
          in: query
          type: string
          description: <p>Query to date with format YYYY-MM-DD, e.g. <code>2020-01-01</code></p>
        - name: region
          in: query
          type: string
          description: <p>Query by region codes. Get the full list <a href='https://api.theracingapi.com/documentation#tag/Courses/operation/list_regions_v1_courses_regions_get'>here<
        - name: course
          in: query
          type: string
          description: Query by course ids. Get the full list <a href='https://api.theracingapi.com/documentation#tag/Courses/operation/list_courses_v1_courses_get'>here</a>.
        - name: type
          in: query
          type: string
          description: '<p>Query by race type</p><p>Options: <code>chase</code>, <code>flat</code>, <code>hurdle</code>, <code>nh_flat</code></p>'
        - name: going
          in: query
          type: string
          description: '<p>Query by going</p><p>Options: <code>fast</code>, <code>firm</code>, <code>good</code>, <code>good_to_firm</code>,
            <code>good_to_soft</code>, <code>good_to_yi'
        - name: race_class
          in: query
          type: string
          description: '<p>Query by class</p><p>Options: <code>class_1</code>, <code>class_2</code>, <code>class_3</code>,
            <code>class_4</code>, <code>class_5</code>, <code>class_6</co'
        - name: min_distance_y
          in: query
          type: string
          description: <p>Query by minimum race distance (yards)</p>
        - name: max_distance_y
          in: query
          type: string
          description: <p>Query by maximum race distance (yards)</p>
        - name: age_band
          in: query
          type: string
          description: '<p>Query by age band</p><p>Options: <code>10yo+</code>, <code>2-3yo</code>, <code>2yo</code>, <code>2yo+</code>,
            <code>3-4yo</code>, <code>3-5yo</code>, <code>3'
        - name: sex_restriction
          in: query
          type: string
          description: '<p>Query by sex restriction</p><p>Options: <code>c&f</code>, <code>c&g</code>, <code>f</code>, <code>f&m</code>,
            <code>m</code>, <code>m&g</code></p>'
    - name: v1-trainers-trainer_id-analysis-owners
      path: /v1/trainers/{trainer_id}/analysis/owners
      operations:
      - name: trainerowneranalysisv1trainerstraineridanalysisownersget
        method: GET
        description: The Racing API Trainer Owner Analysis
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: trainer_id
          in: path
          type: string
          required: true
        - name: start_date
          in: query
          type: string
          description: <p>Query from date with format YYYY-MM-DD, e.g. <code>2020-01-01</code></p>
        - name: end_date
          in: query
          type: string
          description: <p>Query to date with format YYYY-MM-DD, e.g. <code>2020-01-01</code></p>
        - name: region
          in: query
          type: string
          description: <p>Query by region codes. Get the full list <a href='https://api.theracingapi.com/documentation#tag/Courses/operation/list_regions_v1_courses_regions_get'>here<
        - name: course
          in: query
          type: string
          description: Query by course ids. Get the full list <a href='https://api.theracingapi.com/documentation#tag/Courses/operation/list_courses_v1_courses_get'>here</a>.
        - name: type
          in: query
          type: string
          description: '<p>Query by race type</p><p>Options: <code>chase</code>, <code>flat</code>, <code>hurdle</code>, <code>nh_flat</code></p>'
        - name: going
          in: query
          type: string
          description: '<p>Query by going</p><p>Options: <code>fast</code>, <code>firm</code>, <code>good</code>, <code>good_to_firm</code>,
            <code>good_to_soft</code>, <code>good_to_yi'
        - name: race_class
          in: query
          type: string
          description: '<p>Query by class</p><p>Options: <code>class_1</code>, <code>class_2</code>, <code>class_3</code>,
            <code>class_4</code>, <code>class_5</code>, <code>class_6</co'
        - name: min_distance_y
          in: query
          type: string
          description: <p>Query by minimum race distance (yards)</p>
        - name: max_distance_y
          in: query
          type: string
          description: <p>Query by maximum race distance (yards)</p>
        - name: age_band
          in: query
          type: string
          description: '<p>Query by age band</p><p>Options: <code>10yo+</code>, <code>2-3yo</code>, <code>2yo</code>, <code>2yo+</code>,
            <code>3-4yo</code>, <code>3-5yo</code>, <code>3'
        - name: sex_restriction
          in: query
          type: string
          description: '<p>Query by sex restriction</p><p>Options: <code>c&f</code>, <code>c&g</code>, <code>f</code>, <code>f&m</code>,
            <code>m</code>, <code>m&g</code></p>'
    - name: v1-trainers-trainer_id-results
      path: /v1/trainers/{trainer_id}/results
      operations:
      - name: trainerresultsv1trainerstraineridresultsget
        method: GET
        description: The Racing API Trainer Results
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: trainer_id
          in: path
          type: string
          required: true
        - name: start_date
          in: query
          type: string
          description: <p>Query from date with format YYYY-MM-DD, e.g. <code>2020-01-01</code></p><p><b>Default:</b> 365 days
            ago. Can query back to 1988-01-01.</p>
        - name: end_date
          in: query
          type: string
          description: <p>Query to date with format YYYY-MM-DD, e.g. <code>2020-01-01</code></p><p><b>Default:</b> Today's
            date. Maximum range between start and end date is 365 days.<
        - name: region
          in: query
          type: string
          description: <p>Query by region codes. Get the full list <a href='https://api.theracingapi.com/documentation#tag/Courses/operation/list_regions_v1_courses_regions_get'>here<
        - name: course
          in: query
          type: string
          description: Query by course ids. Get the full list <a href='https://api.theracingapi.com/documentation#tag/Courses/operation/list_courses_v1_courses_get'>here</a>.
        - name: type
          in: query
          type: string
          description: '<p>Query by race type</p><p>Options: <code>chase</code>, <code>flat</code>, <code>hurdle</code>, <code>nh_flat</code></p>'
        - name: going
          in: query
          type: string
          description: '<p>Query by going</p><p>Options: <code>fast</code>, <code>firm</code>, <code>good</code>, <code>good_to_firm</code>,
            <code>good_to_soft</code>, <code>good_to_yi'
        - name: race_class
          in: query
          type: string
          description: '<p>Query by class</p><p>Options: <code>class_1</code>, <code>class_2</code>, <code>class_3</code>,
            <code>class_4</code>, <code>class_5</code>, <code>class_6</co'
        - name: min_distance_y
          in: query
          type: string
          description: <p>Query by minimum race distance (yards)</p>
        - name: max_distance_y
          in: query
          type: string
          description: <p>Query by maximum race distance (yards)</p>
        - name: age_band
          in: query
          type: string
          description: '<p>Query by age band</p><p>Options: <code>10yo+</code>, <code>2-3yo</code>, <code>2yo</code>, <code>2yo+</code>,
            <code>3-4yo</code>, <code>3-5yo</code>, <code>3'
        - name: sex_restriction
          in: query
          type: string
          description: '<p>Query by sex restriction</p><p>Options: <code>c&f</code>, <code>c&g</code>, <code>f</code>, <code>f&m</code>,
            <code>m</code>, <code>m&g</code></p>'
        - name: limit
          in: query
          type: string
        - name: skip
          in: query
          type: string
    authentication:
      type: basic
      username: '{{env.THE_RACING_API_USER}}'
      password: '{{env.THE_RACING_API_PASS}}'
  exposes:
  - type: rest
    namespace: the-racing-trainers-rest
    port: 8080
    description: REST adapter for The Racing API — Trainers. One Spectral-compliant resource per consumed operation, prefixed
      with /v1.
    resources:
    - path: /v1/v1/trainers/search
      name: v1-trainers-search
      description: REST surface for v1-trainers-search.
      operations:
      - method: GET
        name: trainersearchv1trainerssearchget
        description: The Racing API Trainer Search
        call: the-racing-trainers.trainersearchv1trainerssearchget
        with:
          name: rest.name
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/v1/trainers/{trainer-id}/analysis/courses
      name: v1-trainers-trainer-id-analysis-courses
      description: REST surface for v1-trainers-trainer_id-analysis-courses.
      operations:
      - method: GET
        name: trainercourseanalysisv1trainerstraineridanalysiscoursesget
        description: The Racing API Trainer Course Analysis
        call: the-racing-trainers.trainercourseanalysisv1trainerstraineridanalysiscoursesget
        with:
          trainer_id: rest.trainer_id
          start_date: rest.start_date
          end_date: rest.end_date
          region: rest.region
          course: rest.course
          type: rest.type
          going: rest.going
          race_class: rest.race_class
          min_distance_y: rest.min_distance_y
          max_distance_y: rest.max_distance_y
          age_band: rest.age_band
          sex_restriction: rest.sex_restriction
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/v1/trainers/{trainer-id}/analysis/distances
      name: v1-trainers-trainer-id-analysis-distances
      description: REST surface for v1-trainers-trainer_id-analysis-distances.
      operations:
      - method: GET
        name: trainerdistanceanalysisv1trainerstraineridanalysisdistancesget
        description: The Racing API Trainer Distance Analysis
        call: the-racing-trainers.trainerdistanceanalysisv1trainerstraineridanalysisdistancesget
        with:
          trainer_id: rest.trainer_id
          start_date: rest.start_date
          end_date: rest.end_date
          region: rest.region
          course: rest.course
          type: rest.type
          going: rest.going
          race_class: rest.race_class
          min_distance_y: rest.min_distance_y
          max_distance_y: rest.max_distance_y
          age_band: rest.age_band
          sex_restriction: rest.sex_restriction
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/v1/trainers/{trainer-id}/analysis/horse-age
      name: v1-trainers-trainer-id-analysis-horse-age
      description: REST surface for v1-trainers-trainer_id-analysis-horse-age.
      operations:
      - method: GET
        name: trainerhorseageanalysisv1trainerstraineridanalysishorseageget
        description: The Racing API Trainer Horse Age Analysis
        call: the-racing-trainers.trainerhorseageanalysisv1trainerstraineridanalysishorseageget
        with:
          trainer_id: rest.trainer_id
          start_date: rest.start_date
          end_date: rest.end_date
          region: rest.region
          course: rest.course
          type: rest.type
          going: rest.going
          race_class: rest.race_class
          min_distance_y: rest.min_distance_y
          max_distance_y: rest.max_distance_y
          age_band: rest.age_band
          sex_restriction: rest.sex_restriction
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/v1/trainers/{trainer-id}/analysis/jockeys
      name: v1-trainers-trainer-id-analysis-jockeys
      description: REST surface for v1-trainers-trainer_id-analysis-jockeys.
      operations:
      - method: GET
        name: trainerjockeyanalysisv1trainerstraineridanalysisjockeysget
        description: The Racing API Trainer Jockey Analysis
        call: the-racing-trainers.trainerjockeyanalysisv1trainerstraineridanalysisjockeysget
        with:
          trainer_id: rest.trainer_id
          start_date: rest.start_date
          end_date: rest.end_date
          region: rest.region
          course: rest.course
          type: rest.type
          going: rest.going
          race_class: rest.race_class
          min_distance_y: rest.min_distance_y
          max_distance_y: rest.max_distance_y
          age_band: rest.age_band
          sex_restriction: rest.sex_restriction
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/v1/trainers/{trainer-id}/analysis/owners
      name: v1-trainers-trainer-id-analysis-owners
      description: REST surface for v1-trainers-trainer_id-analysis-owners.
      operations:
      - method: GET
        name: trainerowneranalysisv1trainerstraineridanalysisownersget
        description: The Racing API Trainer Owner Analysis
        call: the-racing-trainers.trainerowneranalysisv1trainerstraineridanalysisownersget
        with:
          trainer_id: rest.trainer_id
          start_date: rest.start_date
          end_date: rest.end_date
          region: rest.region
          course: rest.course
          type: rest.type
          going: rest.going
          race_class: rest.race_class
          min_distance_y: rest.min_distance_y
          max_distance_y: rest.max_distance_y
          age_band: rest.age_band
          sex_restriction: rest.sex_restriction
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/v1/trainers/{trainer-id}/results
      name: v1-trainers-trainer-id-results
      description: REST surface for v1-trainers-trainer_id-results.
      operations:
      - method: GET
        name: trainerresultsv1trainerstraineridresultsget
        description: The Racing API Trainer Results
        call: the-racing-trainers.trainerresultsv1trainerstraineridresultsget
        with:
          trainer_id: rest.trainer_id
          start_date: rest.start_date
          end_date: rest.end_date
          region: rest.region
          course: rest.course
          type: rest.type
          going: rest.going
          race_class: rest.race_class
          min_distance_y: rest.min_distance_y
          max_distance_y: rest.max_distance_y
          age_band: rest.age_band
          sex_restriction: rest.sex_restriction
          limit: rest.limit
          skip: rest.skip
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: the-racing-trainers-mcp
    port: 9090
    transport: http
    description: MCP adapter for The Racing API — Trainers. One tool per consumed operation, routed inline through this capability's
      consumes block.
    tools:
    - name: racing-api-trainer-search
      description: The Racing API Trainer Search
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: the-racing-trainers.trainersearchv1trainerssearchget
      with:
        name: tools.name
      outputParameters:
      - type: object
        mapping: $.
    - name: racing-api-trainer-course-analysis
      description: The Racing API Trainer Course Analysis
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: the-racing-trainers.trainercourseanalysisv1trainerstraineridanalysiscoursesget
      with:
        trainer_id: tools.trainer_id
        start_date: tools.start_date
        end_date: tools.end_date
        region: tools.region
        course: tools.course
        type: tools.type
        going: tools.going
        race_class: tools.race_class
        min_distance_y: tools.min_distance_y
        max_distance_y: tools.max_distance_y
        age_band: tools.age_band
        sex_restriction: tools.sex_restriction
      outputParameters:
      - type: object
        mapping: $.
    - name: racing-api-trainer-distance-analysis
      description: The Racing API Trainer Distance Analysis
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: the-racing-trainers.trainerdistanceanalysisv1trainerstraineridanalysisdistancesget
      with:
        trainer_id: tools.trainer_id
        start_date: tools.start_date
        end_date: tools.end_date
        region: tools.region
        course: tools.course
        type: tools.type
        going: tools.going
        race_class: tools.race_class
        min_distance_y: tools.min_distance_y
        max_distance_y: tools.max_distance_y
        age_band: tools.age_band
        sex_restriction: tools.sex_restriction
      outputParameters:
      - type: object
        mapping: $.
    - name: racing-api-trainer-horse-age
      description: The Racing API Trainer Horse Age Analysis
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: the-racing-trainers.trainerhorseageanalysisv1trainerstraineridanalysishorseageget
      with:
        trainer_id: tools.trainer_id
        start_date: tools.start_date
        end_date: tools.end_date
        region: tools.region
        course: tools.course
        type: tools.type
        going: tools.going
        race_class: tools.race_class
        min_distance_y: tools.min_distance_y
        max_distance_y: tools.max_distance_y
        age_band: tools.age_band
        sex_restriction: tools.sex_restriction
      outputParameters:
      - type: object
        mapping: $.
    - name: racing-api-trainer-jockey-analysis
      description: The Racing API Trainer Jockey Analysis
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: the-racing-trainers.trainerjockeyanalysisv1trainerstraineridanalysisjockeysget
      with:
        trainer_id: tools.trainer_id
        start_date: tools.start_date
        end_date: tools.end_date
        region: tools.region
        course: tools.course
        type: tools.type
        going: tools.going
        race_class: tools.race_class
        min_distance_y: tools.min_distance_y
        max_distance_y: tools.max_distance_y
        age_band: tools.age_band
        sex_restriction: tools.sex_restriction
      outputParameters:
      - type: object
        mapping: $.
    - name: racing-api-trainer-owner-analysis
      description: The Racing API Trainer Owner Analysis
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: the-racing-trainers.trainerowneranalysisv1trainerstraineridanalysisownersget
      with:
        trainer_id: tools.trainer_id
        start_date: tools.start_date
        end_date: tools.end_date
        region: tools.region
        course: tools.course
        type: tools.type
        going: tools.going
        race_class: tools.race_class
        min_distance_y: tools.min_distance_y
        max_distance_y: tools.max_distance_y
        age_band: tools.age_band
        sex_restriction: tools.sex_restriction
      outputParameters:
      - type: object
        mapping: $.
    - name: racing-api-trainer-results
      description: The Racing API Trainer Results
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: the-racing-trainers.trainerresultsv1trainerstraineridresultsget
      with:
        trainer_id: tools.trainer_id
        start_date: tools.start_date
        end_date: tools.end_date
        region: tools.region
        course: tools.course
        type: tools.type
        going: tools.going
        race_class: tools.race_class
        min_distance_y: tools.min_distance_y
        max_distance_y: tools.max_distance_y
        age_band: tools.age_band
        sex_restriction: tools.sex_restriction
        limit: tools.limit
        skip: tools.skip
      outputParameters:
      - type: object
        mapping: $.