Cby Cal.com
Get available slots
Returns the open start times of an event type between two dates, grouped by day.
Description
Pass `start` and `end`, and name the event type by `eventTypeId` or by `eventTypeSlug` plus `username` (`teamSlug` for a team event). Set `timeZone` to get the times in the prospect's zone; the default is UTC. Offer a few slots, then book the chosen one with `create_booking`. Send `cal-api-version: 2024-09-04`.
get-available-slots.md
Get available slots
Returns the open start times of an event type between two dates, grouped by day.
Pass start and end, and name the event type by eventTypeId or by
eventTypeSlug plus username (teamSlug for a team event). Set
timeZone to get the times in the prospect's zone; the default is UTC. Offer
a few slots, then book the chosen one with create_booking. Send
cal-api-version: 2024-09-04.
Set up
Use the first option your agent supports.
MCP (official, remote)
Add this server to your agent's MCP settings, then sign in when asked.
{ "mcpServers": { "cal-com": { "url": "https://mcp.cal.com/mcp" } } }
Call the MCP tool get_availability.
Server URL: https://mcp.cal.com/mcp
CLI (official)
Install the command, then confirm it runs.
npm install -g @calcom/cli
calcom --version
Run calcom slots available.
Set $CAL_API_KEY in your environment first (get a key: https://app.cal.com/settings/developer/api-keys).
API (official)
- Base URL: https://api.cal.com
- Endpoint:
GET /v2/slots - Auth: send the header
Authorization: Bearer $CAL_API_KEY - Get a key: https://app.cal.com/settings/developer/api-keys
- Docs: https://cal.com/docs/api-reference/v2/introduction
Before doing anything else, make one read-only call to confirm access.
Rules
- Ask the user before anything that sends messages, costs money, or changes data.
- Never print API keys.
Built from these files in the repository
The layout and the rules come from lib/catalog/render-markdown.ts, the set-up wording from lib/catalog/render-access.ts.