Book an area
book_areaBook an area (a court, pitch or room) for the signed-in person. Take the area’s id and one free time’s start and end - a find_availability offer, or a get_club freeTimes entry - unchanged, and only after the person has agreed to that club, area, time and price. It books exactly as 1club.me does: a membership of theirs that covers it is used, otherwise it is paid at the club. The answer gives the booking’s status and how it is covered, as created. A club that requires paying online when booking cannot be booked this way: the error says so.
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": {
"areaId": "<areaId>",
"start": "<start>",
"end": "<end>"
},
"name": "book_area"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| end | Yes | The free time’s `end`. | |
| start | Yes | The free time’s `start`. | |
| areaId | Yes | The offer’s `area.id`, or the free time’s `areaId`. |