Packs / scheduling-public
free-slots
List free booking slots from working hours, busy times, buffers and minimum notice in the right time zone
Install
logicpacks pack use scheduling-public/free-slotsget_pack scheduling-public/free-slotsThe second line is the MCP tool call for the LogicPacks connector (Claude Code, Codex, Claude.ai and others). The first run of a pack someone else wrote asks for your yes.
Keys it needs (names only)
None.
Playbooks included
- Spec:
spec/SPEC.md(goal, steps, edge cases, don’ts) - Routes:
stdlibcalcom - Checks: 1 in
outcome/checks.yaml - Code:
slots.py - Tools: python3, docker
Usage, last 8 weeks
New: no recorded use yet.
Purpose (from spec/SPEC.md)
Goal
List free booking slots from working hours, busy times, buffers and minimum notice in the right time zone.
Steps
- Fill
availability.json: time zone, days, working hours per weekday, slot length, buffer, minimum notice, busy intervals (UTC, from the calendar). python3 code/slots.py availability.jsonlists free slot starts in local time.- Check with the fixture:
python3 code/slots.py selftest ....
Edge cases
- DST zones: zoneinfo handles the shift; never add fixed offsets by hand.
- Busy times come from CalDAV/Google free-busy; refresh before offering slots.
Don'ts
- Don't offer slots inside the minimum notice window.
Check
lp pack check scheduling/free-slots runs outcome/checks.yaml.