list_courses
Live course catalogue for a bookings_live school (course ids, weeks, prices). Use returned course ids inside save_trip configuration.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"school_id": "<school_id>"
},
"name": "list_courses"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| locale | No | Response language and site context. One of en, nl, da, sv. | |
| currency | No | ISO 4217 currency for prices in this call. Usually EUR. | EUR |
| school_id | Yes | Craft CMS school entry id from search_language_schools hits (field school_id). Not the CRM UUID. | |
| startDate | No | Course start calendar date (YYYY-MM-DD). Typically a Monday from list_starting_dates. | |
| country_code | No | Visitor country ISO 3166-1 alpha-2 (e.g. NL). Affects fee display where applicable. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| school | No | School metadata from the booking API. | |
| success | Yes | ||
| currency | No | ||
| start_date | No | Effective start date used for pricing (YYYY-MM-DD). | |
| course_types | No | Course types with nested courses[] (course ids, weeks, week prices). | |
| pricing_rule | No | ||
| location_discount | No | ||
| busy_school_months | No | ||
| has_location_discounts | No |