CourtReserve MCP by usefulapi

v1.14.1
io.usefulapi/courtreserve Checked 2 days ago Published 23 hours ago

Read club members, court availability, reservations, events, attendance and revenue reports.

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

courtreserve_list_members List members

List the club's members (name, email, phone, membership type and status, start/end/next payment dates, family id). Filter by member id, family, exact email, phone or the created (at most 30 days) / created-or-updated (at most 31 days) time. Paged: pass next_page back as page. PIN codes and SSO links are not returned. Needs the Member role (Read). GET /api/v1/member/get.

ParameterTypeDescription
created_fromstringOnly members created at or after this club-local date-time (with created_to: at most 30 days apart).
created_or_updated_fromstringOnly members created or changed at or after this club-local date-time (with the end: at most 31 days apart).
created_or_updated_tostringOnly members created or changed at or before this club-local date-time.
created_tostringOnly members created at or before this club-local date-time.
emailstringExact email address (no partial matches).
family_idintegerOnly the members of this family (organizationMemberFamilyId).
include_custom_fieldsbooleanAdd the club's user-defined fields.
include_marketing_consentbooleanAdd current email/text opt-in and the consent history.
include_ratingsbooleanAdd skill ratings (DUPR, UTR and so on).
organization_member_idintegerOnly this member id.
pageintegerPage number, from 1 (default 1). Pass the previous reply's next_page.
page_sizeintegerMembers per page, 1-200 (default 50).
phone_numberstringPhone number.

courtreserve_get_member_reservations Get a member's reservations

A member's upcoming (or dated) court bookings and event registrations: type, start/end, courts, event name and players. For a family member the reply covers the whole family. Give the member id or your own external id. Needs the Member role (Read). GET /api/v1/member/reservations.

ParameterTypeDescription
end_datestringOnly reservations ending on or before this club-local date/time (default: open-ended).
external_idstringThe member's id in your own system (the member's External Id).
limitintegerMost rows to return (default 100, max 500). The reply says when rows were left out.
organization_member_idintegerCourtReserve member id (courtreserve_list_members). One of this or external_id is required.
start_datestringOnly reservations ending on or after this club-local date/time (default: now).

courtreserve_list_families List families

List family accounts (family id, name, number, members and membership). Needs the Family role (Read). GET /api/v1/family/get.

ParameterTypeDescription
family_idintegerOnly this family (organizationMemberFamilyId).
limitintegerMost rows to return (default 100, max 500). The reply says when rows were left out.

courtreserve_list_membership_types List membership types

The club's membership types (id, name, price, billing and status). Use the ids to filter the membership report. Needs the MembershipType role (Read). GET /api/v1/membershiptype/get.

ParameterTypeDescription
limitintegerMost rows to return (default 100, max 500). The reply says when rows were left out.
membership_type_idintegerOnly this membership type id.

courtreserve_membership_report Membership report

The Membership report: one row per member or family membership with status, billing cadence, start/end, next payment and cancellation history. Filter by type, assignment (family or individual) and the start, end, next-payment or cancellation dates. Paged. Needs the Membership Report role (Read). GET /api/v1/membershipreport/list.

ParameterTypeDescription
assignment_typestringOnly family or only individual memberships (default both).
canceled_fromstringCanceled on or after.
canceled_tostringCanceled on or before.
end_fromstringMembership ends on or after.
end_tostringMembership ends on or before.
membership_type_idsarrayOnly these membership type ids (courtreserve_list_membership_types).
next_payment_fromstringNext payment on or after.
next_payment_tostringNext payment on or before.
pageintegerPage number, from 1 (default 1). Pass the previous reply's next_page.
page_sizeintegerRows per page, 1-500 (default 100).
start_fromstringMembership started on or after.
start_tostringMembership started on or before.

courtreserve_list_courts List courts

The club's courts: id, label, court type and order. Use the ids in court utilization and court blocks. Needs the Reservation role (Read). GET /api/v1/reservation/courts.

ParameterTypeDescription
limitintegerMost rows to return (default 100, max 500). The reply says when rows were left out.

courtreserve_list_reservation_types List reservation types

The club's reservation types (court booking, lesson, court block and so on) with ids. Needs the Reservation role (Read). GET /api/v1/reservation/reservationtypes.

ParameterTypeDescription
limitintegerMost rows to return (default 100, max 500). The reply says when rows were left out.

courtreserve_get_court_availability Get court availability

Court availability: each court's operating hours and the time slots already booked, for one date or a date range of at most 31 days (time zone of the club in the reply). Needs the Reservation role (Read). GET /api/v1/reservation/availability.

ParameterTypeDescription
court_type_idintegerOnly courts of this type (see the court type in courtreserve_list_courts).
datestringOne date, yyyy-MM-dd. Use this OR from_date + to_date.
from_datestringFirst date of a range, yyyy-MM-dd.
to_datestringLast date of the range, yyyy-MM-dd (at most 31 days after from_date).

courtreserve_list_reservations List active reservations

Active court reservations for a reservation period (the dates played) or a created/updated period, at most 31 days each: type, courts, start/end, players with contact details and what they owe/paid. Give at least one period. PIN codes are not returned. Needs the ReservationReport role (Read). GET /api/v1/reservationreport/listactive.

ParameterTypeDescription
created_or_updated_fromstringReservations created or changed on or after.
created_or_updated_tostringReservations created or changed on or before.
include_custom_fieldsbooleanAdd user-defined fields.
include_ratingsbooleanAdd player ratings.
limitintegerMost rows to return (default 100, max 500). The reply says when rows were left out.
reservations_fromstringReservations starting on or after.
reservations_tostringReservations starting on or before.

courtreserve_list_cancelled_reservations List cancelled reservations

Cancelled court reservations by the date they were cancelled or by the reservation period, at most 31 days each. Give at least one period. Needs the ReservationReport role (Read). GET /api/v1/reservationreport/listcancelled.

ParameterTypeDescription
cancelled_fromstringCancelled on or after.
cancelled_tostringCancelled on or before.
limitintegerMost rows to return (default 100, max 500). The reply says when rows were left out.
reservations_fromstringReservations starting on or after.
reservations_tostringReservations starting on or before.

courtreserve_whos_here Who is here

Who is booked in a time window (for example today): member reservations and event registrations with the member, court and time, optionally including or only cancelled ones. The window can be at most 31 days. Needs the ReservationReport role (Read). GET /api/v1/reservationreport/whoisheretoday.

ParameterTypeDescription
end *stringEnd of the window, club-local yyyy-MM-ddTHH:mm:ss.
start *stringStart of the window, club-local yyyy-MM-ddTHH:mm:ss.
cancelled_onlybooleanOnly cancelled reservations (wins over include_cancelled).
include_cancelledbooleanAlso return cancelled reservations.
limitintegerMost rows to return (default 100, max 500). The reply says when rows were left out.

courtreserve_court_utilization Court utilization

Court utilization report (booked vs available time per time slot) for a period of at most 7 days, optionally for chosen courts, court types, event types, event tags or reservation types. Needs the ReservationReport role (Read). GET /api/v1/reservationreport/courtutilization.

ParameterTypeDescription
end_date *stringLast day of the period (at most 7 days after the first).
start_date *stringFirst day of the period.
court_idsarrayOnly these court ids (courtreserve_list_courts).
court_type_idsarrayOnly these court type ids.
event_tag_idsarrayOnly these event tag ids.
event_type_idsarrayOnly these event category ids (courtreserve_list_event_categories).
reservation_type_idsarrayOnly these reservation type ids (courtreserve_list_reservation_types).

courtreserve_list_event_categories List event categories

Event categories (clinics, round robins, tournaments, open play...) with ids. Needs the EventCalendar role (Read). GET /api/v1/eventcalendar/categories.

ParameterTypeDescription
category_idintegerOnly this category id.
is_publicbooleanOnly public (true) or only non-public (false) categories; omit for all.
limitintegerMost rows to return (default 100, max 500). The reply says when rows were left out.

courtreserve_list_events List events

Events on the club calendar between two dates: name, category, start/end, courts, instructors, capacity, registered and waitlist counts, price and rating limits. SSO links are not returned. Needs the EventCalendar role (Read). GET /api/v1/eventcalendar/eventlist.

ParameterTypeDescription
category_idintegerOnly this event category (courtreserve_list_event_categories).
end_datestringEvents up to this club-local date/time.
include_price_infobooleanAdd prices (default true).
include_rating_restrictionsbooleanAdd rating restrictions.
include_tagsbooleanAdd event tags.
limitintegerMost rows to return (default 25, max 500). The reply says when rows were left out; narrow the date range to page further.
start_datestringEvents from this club-local date/time.
statusstringEvent status (default Active).

courtreserve_list_event_registrations List event registrations

Active registrations for events, clinics and lessons with the member, event and what was paid. Give an event period or a registration period, at most 31 days each. Needs the EventRegistrationReport role (Read). GET /api/v1/eventregistrationreport/listactive.

ParameterTypeDescription
event_fromstringEvents on or after.
event_tostringEvents on or before.
include_courtsbooleanAdd court information.
include_partner_infobooleanAdd partner(s) for team events.
limitintegerMost rows to return (default 100, max 500). The reply says when rows were left out.
registered_fromstringRegistered on or after.
registered_tostringRegistered on or before.

courtreserve_list_event_waitlist List event waitlist

People on event waitlists. Give an event period or a registration period, at most 31 days each. Needs the EventRegistrationReport role (Read). GET /api/v1/eventregistrationreport/listwaitlist.

ParameterTypeDescription
event_fromstringEvents on or after.
event_tostringEvents on or before.
include_courtsbooleanAdd court information.
include_partner_infobooleanAdd partner(s) for team events.
limitintegerMost rows to return (default 100, max 500). The reply says when rows were left out.
registered_fromstringRegistered on or after.
registered_tostringRegistered on or before.

courtreserve_list_cancelled_event_registrations List cancelled event registrations

Cancelled event registrations by cancellation date or by event date, at most 31 days each. Give at least one period. Needs the EventRegistrationReport role (Read). GET /api/v1/eventregistrationreport/listcancelled.

ParameterTypeDescription
cancelled_fromstringCancelled on or after.
cancelled_tostringCancelled on or before.
event_fromstringEvents on or after.
event_tostringEvents on or before.
limitintegerMost rows to return (default 100, max 500). The reply says when rows were left out.

courtreserve_list_checkins List check-ins

Check-in report: who checked in to court bookings and events, by check-in period or reservation period (at most 31 days each). Give at least one period. Role: the key's access to attendance data. GET /api/v1/attendancereport/checkin.

ParameterTypeDescription
checkin_fromstringChecked in on or after.
checkin_tostringChecked in on or before.
include_court_bookingbooleanInclude court bookings (default true).
include_eventsbooleanInclude events (default true).
limitintegerMost rows to return (default 100, max 500). The reply says when rows were left out.
reservations_fromstringReservations starting on or after.
reservations_tostringReservations starting on or before.

courtreserve_list_transactions List transactions

Transactions (fees, membership fees, payments, refunds...) by transaction date or reservation date: id, type, date, subtotal, tax, total, unpaid amount, payment type, category and the member's name, email and phone. Filter by type, paid/unpaid and payment type. Give at least one period. Needs the Transactions role (Read). GET /api/v1/transactions/list.

ParameterTypeDescription
include_promo_infobooleanAdd the promo codes each fee used.
limitintegerMost rows to return (default 100, max 500). The reply says when rows were left out.
only_paidbooleanOnly paid transactions.
only_unpaidbooleanOnly unpaid transactions.
payment_typesstringComma-separated payment types, for example 'Cash,Credit Card,Balance'.
reservation_fromstringReservations starting on or after.
reservation_tostringReservations starting on or before.
transaction_fromstringTransactions on or after.
transaction_tostringTransactions on or before.
transaction_typesstringComma-separated transaction types, for example 'Fee,Membership Fee,Payment' (the vendor's own names).

courtreserve_sales_summary Sales summary

Detailed sales summary for a payment period of at most 31 days: paid fees plus refunds by category and payment type. Needs the Transactions role (Read). GET /api/v1/transactions/salessummarydetailed.

ParameterTypeDescription
payment_from *stringFirst day of the payment period.
payment_to *stringLast day of the payment period (at most 31 days after the first).
include_promo_infobooleanAdd the promo codes each fee used.

courtreserve_list_promo_codes List promo codes

The club's promo codes: code, name, type, value, dates, limits and what they apply to. Needs the PromoCodes role (Read). GET /api/v1/promocode/get.

ParameterTypeDescription
limitintegerMost rows to return (default 100, max 500). The reply says when rows were left out.
promo_code_idintegerOnly this promo code id.

courtreserve_list_leagues List leagues

The club's leagues, with their sessions (id and name) when include_sessions is true (default). Paged. Needs the League role (Read). GET /api/v1/league/get.

ParameterTypeDescription
include_sessionsbooleanAdd each league's sessions (default true).
league_idintegerOnly this league id.
pageintegerPage number, from 1 (default 1). Pass the previous reply's next_page.
page_sizeintegerLeagues per page, 1-200 (default 100).

courtreserve_list_league_sessions List league sessions

League sessions, for one league or one session, optionally with their game days and registered players. Paged. Needs the League role (Read). GET /api/v1/league/sessions.

ParameterTypeDescription
include_game_daysbooleanAdd each session's game days.
include_playersbooleanAdd each session's registered players (use with one session).
league_idintegerOnly this league's sessions.
pageintegerPage number, from 1 (default 1). Pass the previous reply's next_page.
page_sizeintegerSessions per page, 1-200 (default 100).
session_idintegerOnly this session.