BailaYa MCP by usefulapi
v1.9.1Read 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.
| Parameter | Type | Description |
|---|---|---|
limit | integer | Rows per page (the API default applies if omitted). |
offset | integer | Rows 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}.
| Parameter | Type | Description |
|---|---|---|
id * | string | The 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.
| Parameter | Type | Description |
|---|---|---|
limit | integer | Rows per page (the API default applies if omitted). |
offset | integer | Rows 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}.
| Parameter | Type | Description |
|---|---|---|
id * | string | The 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.
| Parameter | Type | Description |
|---|---|---|
limit | integer | Rows per page (the API default applies if omitted). |
offset | integer | Rows 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}.
| Parameter | Type | Description |
|---|---|---|
id * | string | The 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.
| Parameter | Type | Description |
|---|---|---|
limit | integer | Rows per page (the API default applies if omitted). |
offset | integer | Rows to skip, for paging. Stop when a page is shorter than limit. |
role | string | Only 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}.
| Parameter | Type | Description |
|---|---|---|
id * | string | The 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.
| Parameter | Type | Description |
|---|---|---|
limit | integer | Rows per page (the API default applies if omitted). |
offset | integer | Rows 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}.
| Parameter | Type | Description |
|---|---|---|
id * | string | The 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.
| Parameter | Type | Description |
|---|---|---|
is_active | boolean | true = active packages only; false = inactive only. |
limit | integer | Rows per page (the API default applies if omitted). |
offset | integer | Rows 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}.
| Parameter | Type | Description |
|---|---|---|
id * | string | The 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.
| Parameter | Type | Description |
|---|---|---|
limit | integer | Rows per page (the API default applies if omitted). |
offset | integer | Rows 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}.
| Parameter | Type | Description |
|---|---|---|
id * | string | The 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}.
| Parameter | Type | Description |
|---|---|---|
id * | string | The 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.
| Parameter | Type | Description |
|---|---|---|
limit | integer | Rows per page (the API default applies if omitted). |
offset | integer | Rows 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.
| Parameter | Type | Description |
|---|---|---|
date * | string | Studio-local calendar date, yyyy-mm-dd. |
discipline * | string | Discipline name (free text, e.g. 'Salsa'). |
end_time * | string | Time as HH:MM, 24-hour. |
level * | string | Level name (free text, e.g. 'Beginner'). |
name * | string | |
start_time * | string | Time as HH:MM, 24-hour. |
team_member_id * | string | The instructor's team member id. Must belong to the studio. |
allow_packages | boolean | |
allowed_package_ids | array | |
capacity | ||
description | string | |
is_virtual | boolean | |
location | string | null | Location id. |
price | ||
require_package | boolean | |
room_id | string | null | |
studio_type_id | string | null | Dance 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}.
| Parameter | Type | Description |
|---|---|---|
id * | string | The id from the matching list tool. |
allow_packages | boolean | |
allowed_package_ids | array | |
capacity | integer | |
description | string | |
discipline | string | |
end_time | string | Time as HH:MM, 24-hour. |
level | string | |
location | string | null | |
name | string | |
price | ||
require_package | boolean | |
room_id | string | null | |
start_time | string | Time as HH:MM, 24-hour. |
team_member_id | string |
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}.
| Parameter | Type | Description |
|---|---|---|
id * | string | The id from the matching list tool. |
apply_to_series | boolean | true = 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.
| Parameter | Type | Description |
|---|---|---|
date * | string | Studio-local calendar date, yyyy-mm-dd. |
discipline * | string | Discipline name (free text). |
end_time * | string | Time as HH:MM, 24-hour. |
level * | string | Level name (free text). |
name * | string | |
start_time * | string | Time as HH:MM, 24-hour. |
team_member_id * | string | The host's team member id. Must belong to the studio. |
allow_packages | boolean | |
allowed_package_ids | array | |
capacity | ||
description | string | |
is_virtual | boolean | |
location | string | null | Location id. |
price | ||
require_package | boolean | |
room_id | string | null | |
studio_type_id | string | null | Dance 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}.
| Parameter | Type | Description |
|---|---|---|
id * | string | The id from the matching list tool. |
allow_packages | boolean | |
allowed_package_ids | array | |
capacity | integer | |
description | string | |
discipline | string | |
end_time | string | Time as HH:MM, 24-hour. |
level | string | |
location | string | null | |
name | string | |
price | ||
require_package | boolean | |
room_id | string | null | |
start_time | string | Time as HH:MM, 24-hour. |
team_member_id | string |
bailaya_create_student Create a student
Add ONE student record to the studio. Personal data. Needs scope students:write. BailaYa API: POST /v1/students.
| Parameter | Type | Description |
|---|---|---|
email * | string | |
lastname * | string | |
level * | string | Level name (free text). |
name * | string | |
phone | string | null | |
status | string | Student 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}.
| Parameter | Type | Description |
|---|---|---|
id * | string | The id from the matching list tool. |
email | string | |
lastname | string | |
level | string | |
name | string | |
phone | string | null | |
status | string |