Get available slots is a WordPress ability from LatePoint — usable via Easy MCP AI, which connects Claude, ChatGPT, and any AI assistant to your site.

Install Free Plugin →

Get available slots

Read-only
LatePoint Booking & Events latepoint/get-available-slots

Get the available booking time slots for a service on a given date, optionally filtered by agent and location.

Requires the LatePoint plugin on WordPress 6.9+ (the WordPress Abilities API is only available from 6.9 onward). All abilities also require the site's 'latepoint_abilities_api' master toggle to be enabled; write abilities additionally require the 'latepoint_abilities_api_edit' setting, and destructive abilities additionally require the 'latepoint_abilities_api_delete' setting. Each ability further requires the current user to hold the matching LatePoint capability (e.g. 'booking__view', 'customer__edit'), and some abilities also verify the user is allowed to act on that specific record.

What it does

This ability looks up bookable time slots for a service on a specific date, with optional agent_id, location_id, and duration inputs to narrow the search. Rather than computing slots itself, the ability's execute() method runs the request through WordPress's 'latepoint_get_available_slots' filter and returns whatever slot list that filter produces (empty by default unless something in the site hooks into it). Each returned slot is expected to carry a start_time, end_time, and agent_id.

See it in action

You ask your AI assistant

"What available time slots are there for the massage service (ID 4) on 2026-07-15?"

Inputs

Name Type Required Description
service_id integer Yes Service ID.
date string Yes Date to check (Y-m-d).
agent_id integer No Agent ID to filter by.
location_id integer No Location ID to filter by.
duration integer No Override duration in minutes.

Returns

An object with a 'slots' array (each item potentially having start_time, end_time, and agent_id) as produced by the 'latepoint_get_available_slots' WordPress filter for the given arguments.

Permission

This ability declares an empty permission string and overrides check_permission() to unconditionally return true. It requires no LatePoint capability and, unlike every other ability in this directory, its permission check is not gated by the site's 'latepoint_abilities_api' master toggle either — that toggle is enforced inside the base class's check_permission(), which this ability bypasses entirely. Because it is read-only, it is always registered.

Newsletter

The AI + WordPress space moves fast. Keep up.

New tools, workflow ideas, and product updates — be the first to know what's next.

No spam, unsubscribe anytime.