BailaYa MCP by usefulapi

v1.9.1
io.usefulapi/bailaya Checked 1 day ago Published 6 hours ago

Read schedules, students and packages; add or change classes, events and students in BailaYa.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

bailaya_list_classes List classes

List the studio's classes (scheduled occurrences) with date, time, instructor, room, capacity and price. Needs scope classes:read. BailaYa API: GET /v1/classes.

ParameterTypeDescription
limitintegerRows per page (the API default applies if omitted).
offsetintegerRows to skip, for paging. Stop when a page is shorter than limit.

bailaya_get_class Get a class

Get one class by id. Needs scope classes:read. BailaYa API: GET /v1/classes/{id}.

ParameterTypeDescription
id *stringThe id from the matching list tool.

bailaya_list_events List events

List the studio's events (workshops and special sessions) with date, time, instructor and capacity. Needs scope events:read. BailaYa API: GET /v1/events.

ParameterTypeDescription
limitintegerRows per page (the API default applies if omitted).
offsetintegerRows to skip, for paging. Stop when a page is shorter than limit.

bailaya_get_event Get an event

Get one event by id. Needs scope events:read. BailaYa API: GET /v1/events/{id}.

ParameterTypeDescription
id *stringThe id from the matching list tool.

bailaya_list_students List students

List the studio's students with name, email, phone, level and status. Personal data: use only when the studio owner asks. Needs scope students:read. BailaYa API: GET /v1/students.

ParameterTypeDescription
limitintegerRows per page (the API default applies if omitted).
offsetintegerRows to skip, for paging. Stop when a page is shorter than limit.

bailaya_get_student Get a student

Get one student by id. Personal data. Needs scope students:read. BailaYa API: GET /v1/students/{id}.

ParameterTypeDescription
id *stringThe id from the matching list tool.

bailaya_list_team_members List team members

List studio team members (staff, instructors, owners, admins), optionally filtered by role. Needs scope team:read. BailaYa API: GET /v1/team.

ParameterTypeDescription
limitintegerRows per page (the API default applies if omitted).
offsetintegerRows to skip, for paging. Stop when a page is shorter than limit.
rolestringOnly members with this role.

bailaya_get_team_member Get a team member

Get one team member by id. Needs scope team:read. BailaYa API: GET /v1/team/{id}.

ParameterTypeDescription
id *stringThe id from the matching list tool.

bailaya_list_instructors List instructors

List the studio's instructors. Needs scope instructors:read. BailaYa API: GET /v1/instructors.

ParameterTypeDescription
limitintegerRows per page (the API default applies if omitted).
offsetintegerRows to skip, for paging. Stop when a page is shorter than limit.

bailaya_get_instructor Get an instructor

Get one instructor by id. Needs scope instructors:read. BailaYa API: GET /v1/instructors/{id}.

ParameterTypeDescription
id *stringThe id from the matching list tool.

bailaya_list_packages List class packages

List class packages (pre-paid bundles of sessions) with price, sessions and validity. Set is_active to filter. Needs scope packages:read. BailaYa API: GET /v1/packages.

ParameterTypeDescription
is_activebooleantrue = active packages only; false = inactive only.
limitintegerRows per page (the API default applies if omitted).
offsetintegerRows to skip, for paging. Stop when a page is shorter than limit.

bailaya_get_package Get a class package

Get one class package by id. Needs scope packages:read. BailaYa API: GET /v1/packages/{id}.

ParameterTypeDescription
id *stringThe id from the matching list tool.

bailaya_list_rooms List rooms

List the studio's rooms with capacity and location. Needs scope rooms:read. BailaYa API: GET /v1/rooms.

ParameterTypeDescription
limitintegerRows per page (the API default applies if omitted).
offsetintegerRows to skip, for paging. Stop when a page is shorter than limit.

bailaya_get_room Get a room

Get one room by id. Needs scope rooms:read. BailaYa API: GET /v1/rooms/{id}.

ParameterTypeDescription
id *stringThe id from the matching list tool.

bailaya_list_locations List locations

List the studio's locations (primary first). The API is not paginated: every location is returned. Needs scope locations:read. BailaYa API: GET /v1/locations.

bailaya_get_location Get a location

Get one location by id. Needs scope locations:read. BailaYa API: GET /v1/locations/{id}.

ParameterTypeDescription
id *stringThe id from the matching list tool.

bailaya_list_dance_types List dance types

List the studio's dance types (studio types) used to tag classes. Includes types hidden from the website. Needs scope classes:read. BailaYa API: GET /v1/studio-types.

ParameterTypeDescription
limitintegerRows per page (the API default applies if omitted).
offsetintegerRows to skip, for paging. Stop when a page is shorter than limit.

bailaya_create_class Create a class

Create ONE class occurrence on a date. Visible on the studio's booking page. Needs scope classes:write. BailaYa API: POST /v1/classes.

ParameterTypeDescription
date *stringStudio-local calendar date, yyyy-mm-dd.
discipline *stringDiscipline name (free text, e.g. 'Salsa').
end_time *stringTime as HH:MM, 24-hour.
level *stringLevel name (free text, e.g. 'Beginner').
name *string
start_time *stringTime as HH:MM, 24-hour.
team_member_id *stringThe instructor's team member id. Must belong to the studio.
allow_packagesboolean
allowed_package_idsarray
capacity
descriptionstring
is_virtualboolean
locationstring | nullLocation id.
price
require_packageboolean
room_idstring | null
studio_type_idstring | nullDance type id (from bailaya_list_dance_types).
virtual_platform

bailaya_update_class Update a class

Change fields of one class (time, instructor, room, capacity, price). Only the fields you pass change. Needs scope classes:write. BailaYa API: PATCH /v1/classes/{id}.

ParameterTypeDescription
id *stringThe id from the matching list tool.
allow_packagesboolean
allowed_package_idsarray
capacityinteger
descriptionstring
disciplinestring
end_timestringTime as HH:MM, 24-hour.
levelstring
locationstring | null
namestring
price
require_packageboolean
room_idstring | null
start_timestringTime as HH:MM, 24-hour.
team_member_idstring

bailaya_delete_class Delete a class

Delete (cancel) one class. Set apply_to_series to true to delete every occurrence of a repeating series. Irreversible. Needs scope classes:delete. BailaYa API: DELETE /v1/classes/{id}.

ParameterTypeDescription
id *stringThe id from the matching list tool.
apply_to_seriesbooleantrue = delete the whole recurring series. Default false: this occurrence only.

bailaya_create_event Create an event

Create ONE event (workshop or special session) on a date. Visible on the studio's booking page. Needs scope events:write. BailaYa API: POST /v1/events.

ParameterTypeDescription
date *stringStudio-local calendar date, yyyy-mm-dd.
discipline *stringDiscipline name (free text).
end_time *stringTime as HH:MM, 24-hour.
level *stringLevel name (free text).
name *string
start_time *stringTime as HH:MM, 24-hour.
team_member_id *stringThe host's team member id. Must belong to the studio.
allow_packagesboolean
allowed_package_idsarray
capacity
descriptionstring
is_virtualboolean
locationstring | nullLocation id.
price
require_packageboolean
room_idstring | null
studio_type_idstring | nullDance type id (from bailaya_list_dance_types).
virtual_platform

bailaya_update_event Update an event

Change fields of one event (time, host, room, capacity, price). Only the fields you pass change. Needs scope events:write. BailaYa API: PATCH /v1/events/{id}.

ParameterTypeDescription
id *stringThe id from the matching list tool.
allow_packagesboolean
allowed_package_idsarray
capacityinteger
descriptionstring
disciplinestring
end_timestringTime as HH:MM, 24-hour.
levelstring
locationstring | null
namestring
price
require_packageboolean
room_idstring | null
start_timestringTime as HH:MM, 24-hour.
team_member_idstring

bailaya_create_student Create a student

Add ONE student record to the studio. Personal data. Needs scope students:write. BailaYa API: POST /v1/students.

ParameterTypeDescription
email *string
lastname *string
level *stringLevel name (free text).
name *string
phonestring | null
statusstringStudent status. The API default is 'pending'.

bailaya_update_student Update a student

Change fields of one student record (contact details, level, status). Only the fields you pass change. Personal data. Needs scope students:write. BailaYa API: PATCH /v1/students/{id}.

ParameterTypeDescription
id *stringThe id from the matching list tool.
emailstring
lastnamestring
levelstring
namestring
phonestring | null
statusstring