Purpose
Use the calendly CLI for Calendly connector status and scheduling-data reads.
Tooling
Use the installed CLI directly from PATH.
Core commands:
calendly statuscalendly disconnectcalendly authorize-urlcalendly mecalendly list-events --user-uri <uri> [--status active] [--min-start-time <iso>] [--max-start-time <iso>] [--count 20] [--page-token <token>]calendly event-types --user-uri <uri> [--active true] [--count 20] [--page-token <token>]calendly request --method GET --path '/scheduled_events' --query 'user=<uri>' [--query 'status=active'] [--json-body '<json>']
Output contract:
- Every command returns JSON with a top-level
ok. - For
disconnect, parseactionandremoved. - For
status, parse the reported connection state and any returned auth URL or recovery details. - For
me, parse the current user URI and organization URI before listing user-scoped resources. - For
list-eventsandevent-types, parse the returned collection plus any pagination token for follow-up pages. Timed scheduled events addevent_starts_at/event_ends_atwith UTC and user-local forms, and read outputs add runtime-generatedretrieved_at.
Auth
calendly owns the Calendly connection workflow.
Auth contract:
- Run
calendly statusfirst. - If the user wants to disconnect, run
calendly disconnect. - If not connected, run
calendly authorize-url. Whenconnect_urlis present, replace<connect_url>with the returned URL and share exactly this Markdown link:[Connect Calendly](<connect_url>); do not paste the raw URL separately. - After auth, run
calendly meto verify.
Credential storage:
- Client application credentials and user token state are never read directly by this skill.
- The CLI accesses connection state exclusively through shared
hatch-tool-sdkconnector helpers; there is no agent-visible config file path. - The CLI resolves and refreshes service tokens automatically; never print access or refresh tokens.
Operating Rules
- Before any Calendly API call, require
calendly statusto show a connected state. - Use
calendly mefirst when you need the current user URI or organization URI. - Token refresh on expired-token errors is automatic. If API calls still fail after auto-refresh, re-check
calendly statusand re-link if needed. - Confirm before any destructive or user-visible mutation, including raw
requestcalls that could cancel events or delete subscriptions. - Prefer
event_starts_at.user_localandevent_ends_at.user_localin summaries.