Skip to content

fluent-booking/get-available-slots

Bookable times for an event type, keyed by date in the requested timezone. Pass start_time instead of a range to check one specific slot. Uses the same engine as the public booking page.

Ability

  • Kind: Tool
  • Toolset: core
  • Edition: Core
  • Mode: read-only
  • Permission callback: PermissionGate::readGate()
  • Handler: SlotTools::getSlots()
  • Source: fluent-booking/app/Modules/MCP/Tools/SlotTools.php:28

Input schema

ParameterTypeRequiredDescription
event_idintegerYesThe event type to check.
fromstringNoFirst date to check, Y-m-d. Defaults to today.
tostringNoLast date to check, Y-m-d. Defaults to 14 days out; 62 days maximum.
start_timestringNoCheck one slot instead of a range: Y-m-d H:i:s in the given timezone.
timezonestringNoIANA timezone the times are returned in. Defaults to the site timezone.
durationintegerNoMinutes, for events that offer several durations. Defaults to the event default.
host_idintegerNoRestrict to one host on a team event.

Example call

json
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "fluent-booking/get-available-slots",
    "arguments": {
      "event_id": 1
    }
  }
}