list_accommodations
Accommodation groups for a school. Use group ids in save_trip configuration (accommodationGroupId).
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_accommodations"
}
}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 | ||
| success | Yes | ||
| currency | No | ||
| start_date | No | ||
| location_discount | No | ||
| busy_school_months | No | ||
| accommodation_groups | No | Flat list of accommodation groups (id for get_accommodation_details / configuration). | |
| has_location_discounts | No | ||
| accommodation_categories | No | Same groups nested by category for display. | |
| allows_double_room_individual_bookings | No |