libcal_book
Books a confirmed UNC LibCal study room or computer slot after the user selects an option. Requires explicit date, start time, duration, and user confirmation.
Instructions
Book a specific UNC LibCal slot. BOOKING WORKFLOW (required):
For open-ended requests ("book a room", "max hours", "soonest available") → call libcal_suggest FIRST.
Present numbered options to the user. Explain the recommended option (usually same-day if available).
Only call libcal_book after the user picks an option (or gives explicit date+time).
Never auto-book a far-future date when sooner options exist. Requires user_confirmed=true. Categories: davis-cubes, davis-study-rooms, davis-computers
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": {
"date": "<date>",
"start_time": "<start_time>",
"duration_minutes": "<duration_minutes>",
"user_confirmed": "<user_confirmed>"
},
"name": "libcal_book"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| date | Yes | Booking date YYYY-MM-DD (from user choice or libcal_suggest option) | |
| category | No | Space category id (default: davis-cubes) | |
| space_id | No | LibCal item/space id (from libcal_suggest option if available) | |
| start_time | Yes | Start time HH:MM (from user choice or libcal_suggest option) | |
| user_confirmed | Yes | Must be true — confirms the user explicitly chose this slot | |
| add_to_calendar | No | Add to Apple Calendar after booking (default true) | |
| duration_minutes | Yes | Booking length in minutes |