getResourceAvailability
Check whether a resource can be booked for a slot before creating a booking. Requires resourceId, startDate and endDate; seat-based resources such as hot desks also need quantity, and an office can be checked as a whole with entire. Pass recurrence as RRULE lines to check a repeating slot; it is unavailable as soon as any occurrence is. Returns available, and when false the reason with the code the booking would fail with. Get resourceId from getResources. Never invent UUIDs; only use values from prior tool responses.
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": {
"resourceId": "<resourceId>",
"endDate": "<endDate>",
"startDate": "<startDate>"
},
"name": "getResourceAvailability"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| entire | No | Set to true to check the entire resource instead of individual seats. Supported for office resources. | |
| endDate | Yes | The end of the slot to check, in ISO 8601. | |
| quantity | No | The number of seats to check. Required for seat-based resources such as hot desks, unless entire is true. | |
| startDate | Yes | The start of the slot to check, in ISO 8601. | |
| recurrence | No | RRULE lines describing a repeating slot, e.g. `RRULE:FREQ=WEEKLY;COUNT=10`. The DTSTART line is derived from startDate. The slot is unavailable as soon as any occurrence is. | |
| resourceId | Yes | The id of the resource. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| reason | No | The first rule the slot breaks. Present only when available is false. | |
| available | Yes | Whether the resource can be booked for the requested slot. |