Tool reference · 35 tools

Schedule, classes, coaches and events

The weekly schedule, bookable classes and tuition, closures and one-day changes, private lessons, drop-in rates, coaches and special events.

Ask it in plain words

  • "Add Teen Ninja on Tuesdays 5 to 6 PM for ages 12 to 17."
  • "We're closed November 26 for Thanksgiving."
  • "Add Coach Maya to the coaches page."

Worked examples: Add a weekly class, Close for a holiday.

get_schedule

Weekly schedule Reads

The weekly schedule as visitors see it at /schedule: every entry with its id (needed to change or remove it), day, times, type and coach, plus upcoming closures and one-day changes.

ParameterTypeDescription
daystringOnly this day (optional)
Call shape
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "get_schedule",
    "arguments": {}
  }
}

add_schedule_entry

Add a class or session to the weekly schedule Changesdry_run

Add one entry to the weekly schedule. Ask the owner for the day, the times and what it is before calling. Entries repeat every week; for a single date use add_schedule_change or add_closure.

ParameterTypeDescription
day requiredstringDay of the week, e.g. Saturday
startstringStart time, e.g. 4:00 PM. Leave both times out for things offered by booking.
endstringEnd time, e.g. 6:00 PM
name requiredstringWhat it is, e.g. Open Gym (up to 60 characters)
typestring: open | class | team | homeschool | toddler | party | otherDecides the color on the schedule
notestringShort note such as an age range, e.g. Ages 6–8
coachstringWho coaches it; separate several names with commas
locationstringWhich location, by name (only when the gym has more than one)
dry_runbooleantrue = only show what would change, save nothing. Use it first for anything the owner hasn't seen yet.
Call shape
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "add_schedule_entry",
    "arguments": {
      "day": "<day>",
      "name": "<name>",
      "dry_run": true
    }
  }
}

update_schedule_entry

Change a schedule entry Changesdry_run

Change one existing entry: its day, times, name, type, note or coach. Send only what changes. Get the id from get_schedule first.

ParameterTypeDescription
id requiredstringThe entry's id from get_schedule
daystringDay of the week, e.g. Saturday
startstringStart time, e.g. 4:00 PM. Leave both times out for things offered by booking.
endstringEnd time, e.g. 6:00 PM
namestringWhat it is, e.g. Open Gym (up to 60 characters)
typestring: open | class | team | homeschool | toddler | party | otherDecides the color on the schedule
notestringShort note such as an age range, e.g. Ages 6–8
coachstringWho coaches it; separate several names with commas
locationstringWhich location, by name (only when the gym has more than one)
dry_runbooleantrue = only show what would change, save nothing. Use it first for anything the owner hasn't seen yet.
Call shape
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "update_schedule_entry",
    "arguments": {
      "id": "<id>",
      "dry_run": true
    }
  }
}

remove_schedule_entry

Remove a schedule entry Changesdry_run

Take one entry off the weekly schedule. Confirm with the owner which one first. It can be put back from History.

ParameterTypeDescription
id requiredstringThe entry's id from get_schedule
dry_runbooleantrue = only show what would change, save nothing. Use it first for anything the owner hasn't seen yet.
Call shape
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "remove_schedule_entry",
    "arguments": {
      "id": "<id>",
      "dry_run": true
    }
  }
}

set_schedule_note

Note above the schedule Changesdry_run

Set or clear the short note shown above the weekly schedule, e.g. "New schedule begins August 3".

ParameterTypeDescription
note requiredstringUp to 120 characters; empty to remove it
dry_runbooleantrue = only show what would change, save nothing. Use it first for anything the owner hasn't seen yet.
Call shape
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "set_schedule_note",
    "arguments": {
      "note": "<note>",
      "dry_run": true
    }
  }
}

set_schedule_days

Days shown on the public schedule Changesdry_run

Choose which days the public weekly schedule shows, e.g. hide Sunday for a gym that runs Monday to Saturday. Entries on a hidden day stay saved, they just don't show. At least one day stays shown.

ParameterTypeDescription
hidden_days requiredarray of stringDays to leave off the public weekly schedule, e.g. ["Sunday"]; an empty list shows all seven
dry_runbooleantrue = only show what would change, save nothing. Use it first for anything the owner hasn't seen yet.
Call shape
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "set_schedule_days",
    "arguments": {
      "hidden_days": [],
      "dry_run": true
    }
  }
}

add_closure

Add a day (or days) the gym is closed Changesdry_run

Tell visitors the gym is closed on a date or a run of dates. It shows under the schedule and on the home page during the two weeks before, and disappears by itself afterwards.

ParameterTypeDescription
date requiredstringFirst day closed, YYYY-MM-DD
last_daystringLast day closed, YYYY-MM-DD (leave out for one day)
reasonstringShown to visitors, e.g. Thanksgiving (up to 80 characters)
locationstringWith two or more locations: the location it is for (leave out for every location)
dry_runbooleantrue = only show what would change, save nothing. Use it first for anything the owner hasn't seen yet.
Call shape
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "add_closure",
    "arguments": {
      "date": "<date>",
      "dry_run": true
    }
  }
}

add_schedule_change

Add a one-day change to the schedule Changesdry_run

Tell visitors that one particular day runs differently from the weekly schedule. For a closed day use add_closure.

ParameterTypeDescription
date requiredstringThe day, YYYY-MM-DD
what_is_different requiredstringShown to visitors, e.g. Open gym 4–6 PM only (up to 80 characters)
locationstringWith two or more locations: the location it is for (leave out for every location)
dry_runbooleantrue = only show what would change, save nothing. Use it first for anything the owner hasn't seen yet.
Call shape
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "add_schedule_change",
    "arguments": {
      "date": "<date>",
      "what_is_different": "<what_is_different>",
      "dry_run": true
    }
  }
}

remove_closure_or_change

Remove a closure or one-day change Changesdry_run

Remove the closure and/or one-day change listed for a date.

ParameterTypeDescription
date requiredstringThe (first) date of the closure or change, YYYY-MM-DD
locationstringWith two or more locations: the location it is for (leave out for every location)
dry_runbooleantrue = only show what would change, save nothing. Use it first for anything the owner hasn't seen yet.
Call shape
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "remove_closure_or_change",
    "arguments": {
      "date": "<date>",
      "dry_run": true
    }
  }
}

get_coaches

Coaches Reads

Everyone on the Coaches page, in order: name, role, bio, highlights, link and whether they have a photo.

Takes no parameters.

Call shape
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "get_coaches",
    "arguments": {}
  }
}

add_coach

Add a coach Changesdry_run

Add a coach to the Coaches page. Only use facts the owner gives you; never invent a bio or achievements. Add their photo afterwards with request_photo_upload.

ParameterTypeDescription
name requiredstringThe coach's name as it shows on the Coaches page
ninja_namestringOptional nickname shown under the name, e.g. The Hype Guy (up to 60 characters)
rolestringe.g. Coach, Head Coach, Owner & Coach
biostringIn the gym's own words (up to 4000 characters; a blank line starts a new paragraph; a long bio folds under Read more)
highlightsarray of stringUp to 6 short highlights, e.g. "5 seasons on American Ninja Warrior"
dry_runbooleantrue = only show what would change, save nothing. Use it first for anything the owner hasn't seen yet.
Call shape
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "add_coach",
    "arguments": {
      "name": "<name>",
      "dry_run": true
    }
  }
}

update_coach

Update a coach Changesdry_run

Change a coach's name, ninja name (nickname), role, bio, highlights, link, place in the order, or headshot framing and zoom. Send only what changes. Only use facts the owner gives you.

ParameterTypeDescription
coach requiredstringThe coach's current name
new_namestringThe coach's new name
ninja_namestringNickname shown under the name, e.g. The Hype Guy; empty to remove it
rolestringTheir role, e.g. Head Coach
biostringA short bio in the owner's words. Never invent achievements.
highlightsarray of stringReplaces the whole list (up to 6)
link_labelstringe.g. Instagram
link_urlstringhttps address; empty to remove the link
positioninteger1 = first (the featured coach)
headshot_framingstringWhere the round headshot centers on its photo, as "x% y%" ("50% 30%": the middle, a little above center). Use when the owner says the face is cut off or off-center.
headshot_zoomnumberZoom the round headshot in on that spot, 1 (none) to 3, when the face looks small
dry_runbooleantrue = only show what would change, save nothing. Use it first for anything the owner hasn't seen yet.
Call shape
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "update_coach",
    "arguments": {
      "coach": "<coach>",
      "dry_run": true
    }
  }
}

remove_coach

Remove a coach Changesdry_runconfirm

Take a coach off the Coaches page. Ask the owner to confirm first, then send confirm: true. It can be put back from History.

ParameterTypeDescription
coach requiredstringThe coach's id or exact name, from get_coaches
confirmbooleanMust be true, after the owner has said yes
dry_runbooleantrue = only show what would change, save nothing. Use it first for anything the owner hasn't seen yet.
Call shape
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "remove_coach",
    "arguments": {
      "coach": "<coach>",
      "dry_run": true
    }
  }
}

get_special_events

Special events Reads

Every special event (camps, Parents' Night Out, clinics, holiday camps): title, date, time, ages, price, description, picture, and online sign-up, plus the flyers that can be used as pictures. Dated events leave the site by themselves the day after they end.

Takes no parameters.

Call shape
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "get_special_events",
    "arguments": {}
  }
}

add_special_event

Add a special event Changesdry_run

Add a camp, Parents' Night Out, clinic or other special event to the Special events page and the Coming up row on the schedule. Ask the owner for the date, time, ages and price; never guess them. With online_options families sign up and pay on the website. If the owner has a flyer, add the event first, then call request_photo_upload (or upload_photo) with purpose event_flyer and the event's title.

ParameterTypeDescription
title requiredstringe.g. Black Friday Ninja Camp (up to 100 characters)
datestringYYYY-MM-DD. Leave out for something offered on request
last_daystringYYYY-MM-DD, only for events over several days
whenstringOnly without a date, e.g. Whenever Cobb schools go digital
timestringe.g. 9 AM–5 PM
agesstringe.g. Ages 6–12 (online sign-up takes these ages; 3 to 18 when empty)
pricestringAs shown to families, e.g. $85 per child
descriptionstringA few sentences in the gym's own words (up to 600 characters)
detailsarray of stringBullet points, e.g. Bring a packed lunch, a snack and a water bottle (up to 12)
picturestringA flyer's name (get_special_events lists them) or a photo_id from list_photos; empty for an automatic picture. For a new flyer, add the event first, then upload it with purpose event_flyer
online_optionsarray of objectTurns on sign-up and card payment on the website (up to 6 options; needs Stripe connected). An empty list turns it off
online_options[].label requiredstringe.g. Full day, 9 AM–5 PM
online_options[].price requirednumberDollars, e.g. 85
online_daysarray of stringThe days families can sign up for, YYYY-MM-DD (a dated event's own date is used when left out)
spots_per_dayintegerMost kids per day; 0 = no limit
extra_questionobjectAn optional question at sign-up with 2 to 12 choices
extra_question.question requiredstringThe question families answer when they sign up, e.g. "T-shirt size"
extra_question.choices requiredarray of stringThe answers to pick from; leave empty for a typed answer
signup_linkstringOnly when families sign up somewhere else: a full https:// address
button_labelstringWords on that sign-up button, e.g. Book now
locationstringWhich location it is at, by name (only for gyms with several locations); empty = every location
dry_runbooleantrue = only show what would change, save nothing. Use it first for anything the owner hasn't seen yet.
Call shape
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "add_special_event",
    "arguments": {
      "title": "<title>",
      "dry_run": true
    }
  }
}

update_special_event

Change a special event Changesdry_run

Change a special event: send only what changes (title, date, time, ages, price, description, details, picture, online sign-up options and days). For example, add a newly announced camp day with online_days.

ParameterTypeDescription
event requiredstringThe event's current title
titlestringe.g. Black Friday Ninja Camp (up to 100 characters)
datestringYYYY-MM-DD. Leave out for something offered on request
last_daystringYYYY-MM-DD, only for events over several days
whenstringOnly without a date, e.g. Whenever Cobb schools go digital
timestringe.g. 9 AM–5 PM
agesstringe.g. Ages 6–12 (online sign-up takes these ages; 3 to 18 when empty)
pricestringAs shown to families, e.g. $85 per child
descriptionstringA few sentences in the gym's own words (up to 600 characters)
detailsarray of stringBullet points, e.g. Bring a packed lunch, a snack and a water bottle (up to 12)
picturestringA flyer's name (get_special_events lists them) or a photo_id from list_photos; empty for an automatic picture. For a new flyer, add the event first, then upload it with purpose event_flyer
online_optionsarray of objectTurns on sign-up and card payment on the website (up to 6 options; needs Stripe connected). An empty list turns it off
online_options[].label requiredstringe.g. Full day, 9 AM–5 PM
online_options[].price requirednumberDollars, e.g. 85
online_daysarray of stringThe days families can sign up for, YYYY-MM-DD (a dated event's own date is used when left out)
spots_per_dayintegerMost kids per day; 0 = no limit
extra_questionobjectAn optional question at sign-up with 2 to 12 choices
extra_question.question requiredstringThe question families answer when they sign up, e.g. "T-shirt size"
extra_question.choices requiredarray of stringThe answers to pick from; leave empty for a typed answer
signup_linkstringOnly when families sign up somewhere else: a full https:// address
button_labelstringWords on that sign-up button, e.g. Book now
locationstringWhich location it is at, by name (only for gyms with several locations); empty = every location
dry_runbooleantrue = only show what would change, save nothing. Use it first for anything the owner hasn't seen yet.
Call shape
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "update_special_event",
    "arguments": {
      "event": "<event>",
      "dry_run": true
    }
  }
}

remove_special_event

Remove a special event Changesdry_runconfirm

Take a special event off the website. Past dated events already hide by themselves. Ask the owner to confirm first, then send confirm: true. Families who already signed up stay in the back office; it can be put back from History.

ParameterTypeDescription
event requiredstringThe event's title
confirmbooleanMust be true, after the owner has said yes
dry_runbooleantrue = only show what would change, save nothing. Use it first for anything the owner hasn't seen yet.
Call shape
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "remove_special_event",
    "arguments": {
      "event": "<event>",
      "dry_run": true
    }
  }
}

list_report_schedules

Scheduled report emails Reads

The reports sent by email on a schedule: the person's own (owners see every one at the gym), each with what it sends, how often and when (in the gym's time zone), who gets it, whether it is paused, the next and last send and how the last one went.

ParameterTypeDescription
reportstringOptional: only this report's (a key from list_reports)
Call shape
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "list_report_schedules",
    "arguments": {}
  }
}

schedule_report_email

Email a report on a schedule Changesdry_run

Sets up a report to be emailed on its own: every day, every week on a day, every month on a day, or after each pay period, at a time of day in the gym's time zone, to the person asking and any of the gym's other owners and managers (managers never get money reports). Each email has the report's numbers, the first 25 rows, the whole table as a spreadsheet file, a link to the report and a one-click Stop link. Sends a saved view exactly as saved (view_id), or the report with the dates, columns, filters and sort given. Nothing is sent before the website is live. Use dry_run first and confirm who gets it with the owner.

ParameterTypeDescription
reportstringThe report to send (a key from list_reports); leave out when view_id is given
view_idstringOr a saved view or My report to send as saved (an id from list_report_views)
namestringThe email's name, for example Monday sales (default: the report's or view's name)
how_often requiredstring: day | week | month | payperiodday: every day; week: every week on day_of_week; month: every month on day_of_month; payperiod: the day after each pay period ends, for that pay period
day_of_weekstringFor week: Monday to Sunday (default Monday)
day_of_monthstringFor month: 1 to 28, or last (default 1)
timestringThe time of day in the gym's time zone, 24-hour HH:MM (default 07:00; rounded to 15 minutes)
send_toarray of stringEmail addresses of the gym's owners and managers who get it (default: only the person asking; managers never get money reports)
periodstringWithout a saved view: the dates each email covers, such as yesterday, lastweek, lastmonth, week, month or 30 (default: the report's own)
locationstringWithout a saved view: a location key from list_reports, or leave out for all
choicestringWithout a saved view: the report's own choice as name=value, for example by=type
columnsarray of stringWithout a saved view: the columns, in order (column keys)
filtersarray of objectWithout a saved view: filters on columns, as in save_report_view
filters[].field requiredstringThe column to filter, by its key in the report
filters[].op requiredstring: contains | in | gte | lte | after | beforeHow to compare: contains, in, gte (at least), lte (at most), after, before
filters[].values requiredarray of stringThe value or values to compare with
sortstringWithout a saved view: the column to sort by
dirstring: asc | descSort order: asc (smallest or oldest first) or desc (largest or newest first)
dry_runbooleanSay what would be scheduled without saving it
Call shape
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "schedule_report_email",
    "arguments": {
      "how_often": "day",
      "dry_run": true
    }
  }
}

change_report_schedule

Change, pause or test a scheduled report email Changes

Changes a scheduled report email: its name, how often, day, time or who gets it, pauses or resumes it (the person who set it up, or an owner for anyone's), or sends one now to the person asking to check it.

ParameterTypeDescription
id requiredstringThe id from list_report_schedules
namestringA new name
how_oftenstring: day | week | month | payperiodHow often, as in schedule_report_email
day_of_weekstringFor week: Monday to Sunday
day_of_monthstringFor month: 1 to 28, or last
timestringThe time of day in the gym's time zone, HH:MM
send_toarray of stringEveryone who should get it from now on (owners and managers of the gym)
pausedbooleantrue to pause it, false to start it again
send_testbooleanSend one now, only to the person asking
Call shape
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "change_report_schedule",
    "arguments": {
      "id": "<id>"
    }
  }
}

delete_report_schedule

Delete a scheduled report email Changesconfirm

Deletes a scheduled report email (the person's own; owners may delete anyone's). Nothing more is sent. Needs confirm: true; it can't be undone (pausing with change_report_schedule can).

ParameterTypeDescription
id requiredstringThe id from list_report_schedules
confirmbooleantrue to delete (it can't be undone)
Call shape
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "delete_report_schedule",
    "arguments": {
      "id": "<id>",
      "confirm": true
    }
  }
}

get_classes

Classes families can book Reads

Every bookable class (Schedule > Classes & enrollment): name, type, days and times, ages, tuition and how it is charged, capacity and spots left, location, description, free trials, whether it is on the website, and where it came from. Also the gym's class types and locations. Numbers only, never who is enrolled.

ParameterTypeDescription
include_hiddenbooleantrue = also list hidden classes
Call shape
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "get_classes",
    "arguments": {}
  }
}

add_class

Add a class Changesdry_run

Add a bookable class (owners only): its days and times go on the weekly schedule and families can book it on the Book a class page. Ask the owner for the days and times, ages, tuition and capacity; never guess a price or a time. Use dry_run first to show them what will be added.

ParameterTypeDescription
name requiredstringe.g. Ninja Basics (up to 80 characters)
days_and_times requiredarray of stringEach weekly meeting as words, e.g. ["Monday 4:30 PM - 5:30 PM", "Wednesday 4:30 PM - 5:30 PM"] or ["Mon & Wed 4:30-5:30 PM"]. Replaces all of the class's times
ages_fromintegerYoungest age, 0 to 99
ages_tointegerOldest age, 0 to 99; leave out for no upper age
tuitionnumberDollars, charged as 'charged' says
chargedstring: month | class | sessionmonth = monthly tuition (families enroll and are billed each month), class = a drop-in price per class, session = one price for a whole session
capacityintegerMost athletes in the class, 1 to 500; 0 = no limit. Spots left = capacity minus everyone enrolled
typestringThe schedule type (its color): Class, Open gym, Competition team, Homeschool PE, Toddlers & minis or Other (get_classes lists the gym's types)
locationstringWhich location, when the gym has several
descriptionstringWhat athletes do and who it is for, shown on the class's booking page (up to 1,500 characters)
free_trialsbooleantrue = families can book a free trial class
on_websitebooleanfalse = hidden from the Book a class page and the weekly schedule (kept, not deleted)
dry_runbooleantrue = only show what would change, save nothing. Use it first for anything the owner hasn't seen yet.
Call shape
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "add_class",
    "arguments": {
      "name": "<name>",
      "days_and_times": [],
      "dry_run": true
    }
  }
}

update_class

Change a class Changesdry_run

Change any detail of a bookable class (owners only): name, days and times, ages, tuition, how it is charged, capacity, type, location, description, free trials, or hide/show it. Send only what changes; everything else stays. Enrolled families keep their tuition. A class that came from iClassPro is replaced by the next iClassPro download.

ParameterTypeDescription
class requiredstringThe class's current name
new_namestringThe class's new name
days_and_timesarray of stringEach weekly meeting as words, e.g. ["Monday 4:30 PM - 5:30 PM", "Wednesday 4:30 PM - 5:30 PM"] or ["Mon & Wed 4:30-5:30 PM"]. Replaces all of the class's times
ages_fromintegerYoungest age, 0 to 99
ages_tointegerOldest age, 0 to 99; leave out for no upper age
tuitionnumberDollars, charged as 'charged' says
chargedstring: month | class | sessionmonth = monthly tuition (families enroll and are billed each month), class = a drop-in price per class, session = one price for a whole session
capacityintegerMost athletes in the class, 1 to 500; 0 = no limit. Spots left = capacity minus everyone enrolled
typestringThe schedule type (its color): Class, Open gym, Competition team, Homeschool PE, Toddlers & minis or Other (get_classes lists the gym's types)
locationstringWhich location, when the gym has several
descriptionstringWhat athletes do and who it is for, shown on the class's booking page (up to 1,500 characters)
free_trialsbooleantrue = families can book a free trial class
on_websitebooleanfalse = hidden from the Book a class page and the weekly schedule (kept, not deleted)
dry_runbooleantrue = only show what would change, save nothing. Use it first for anything the owner hasn't seen yet.
Call shape
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "update_class",
    "arguments": {
      "class": "<class>",
      "dry_run": true
    }
  }
}

remove_class

Remove a class Changesdry_runconfirm

Remove a class from the website and the weekly schedule (owners only). A class families have booked is hidden instead of deleted, so their enrollments and history stay. Needs the owner's yes and confirm: true.

ParameterTypeDescription
class requiredstringThe class's id or exact name, from get_classes
confirmbooleanMust be true, after the owner has said yes
dry_runbooleantrue = only show what would change, save nothing. Use it first for anything the owner hasn't seen yet.
Call shape
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "remove_class",
    "arguments": {
      "class": "<class>",
      "dry_run": true
    }
  }
}

get_tuition_rules

Tuition rules Reads

The rules for monthly class tuition (Settings > Classes and enrollment): one billing day with a prorated first month, the registration fee and how often it is charged, and the sibling discounts.

Takes no parameters.

Call shape
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "get_tuition_rules",
    "arguments": {}
  }
}

update_tuition_rules

Change the tuition rules Changesdry_run

Change the monthly tuition rules (owners only): billing day and proration, registration fee, sibling discounts. Send only what changes. Changes apply to new enrollments.

ParameterTypeDescription
bill_everyone_on_one_daybooleantrue = every monthly class is billed on the billing day, and the first month is prorated by the classes left before it
billing_dayinteger1 to 28
registration_feenumberDollars; 0 for none
registration_fee_chargedstring: yearly | onceyearly = every 12 months per family; once = once per family, ever
second_child_discount_percentinteger0 to 50
third_and_later_children_discount_percentinteger0 to 50
dry_runbooleantrue = only show what would change, save nothing. Use it first for anything the owner hasn't seen yet.
Call shape
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "update_tuition_rules",
    "arguments": {
      "dry_run": true
    }
  }
}

set_schedule_entry_description

Describe a schedule entry Changesdry_run

Set the short description visitors see when they tap or hover an entry on the weekly schedule (Schedule > Schedule > What each entry is). Owners and managers.

ParameterTypeDescription
entry requiredstringThe entry's name as it shows on the schedule, e.g. Open Gym (get_schedule lists them)
descriptionstringWhat visitors see when they tap or hover the entry, up to 400 characters; empty or left out = use the default (the matching class's text, or a general line for its type)
dry_runbooleantrue = only show what would change, save nothing. Use it first for anything the owner hasn't seen yet.
Call shape
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "set_schedule_entry_description",
    "arguments": {
      "entry": "<entry>",
      "dry_run": true
    }
  }
}

get_private_lessons

Private lessons Reads

The private lessons the gym sells (Schedule > Private lessons): each lesson type with its coach, length, price in dollars, how families book it (pick an open time, pay first and set the time later, or either), whether it's on sale and how many open times it has; and how many lessons are waiting for a time, coming up and waiting to be marked done. No families' names.

Takes no parameters.

Call shape
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "get_private_lessons",
    "arguments": {}
  }
}

add_private_lesson_type

Add or change a private lesson type Changesdry_run

Add a private lesson type (owners and managers) or change one (give its id): the coach, length, price and how families book it. With how = times or either, add its open times next with add_private_lesson_times.

ParameterTypeDescription
title requiredstringWhat families see, e.g. Private Lesson or Competition Prep
coachstringA coach's name from the Coaches page, or leave out for any coach
minutesintegerLength, 10 to 240
pricenumberDollars
howstring: times | arrange | eithertimes = families pick one of the gym's open times; arrange = families pay first and the gym calls to set the time; either = both
aboutstringOptional: who it's for and what to expect
on_salebooleanfalse = saved but not on the website
idstringTo change one: its id from get_private_lessons
dry_runbooleantrue = only show what would change, save nothing. Use it first for anything the owner hasn't seen yet.
Call shape
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "add_private_lesson_type",
    "arguments": {
      "title": "<title>",
      "dry_run": true
    }
  }
}

add_private_lesson_times

Add open private lesson times Changesdry_run

Publish open times families can pick for a private lesson type (owners, managers, or the coach it belongs to). A time already there is skipped.

ParameterTypeDescription
lesson_type_id requiredstringThe id from get_private_lessons
first_date requiredstringYYYY-MM-DD, today or later
start_times requiredarray of stringStart times that day, e.g. ["16:00", "4:30 pm"]
weeksintegerRepeat on the same weekday for this many weeks, 1 to 12 (default 1)
dry_runbooleantrue = only show what would change, save nothing. Use it first for anything the owner hasn't seen yet.
Call shape
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "add_private_lesson_times",
    "arguments": {
      "lesson_type_id": "<lesson_type_id>",
      "first_date": "<first_date>",
      "start_times": [],
      "dry_run": true
    }
  }
}

get_dropin_rates

Drop-in prices Reads

What one visit costs without a membership: for each location (or the gym), the open gym price for each kind of visitor (standard, college, age 5 and under, spectators) and any class with its own drop-in price. Also says whether families can pay for a drop-in online.

Takes no parameters.

Call shape
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "get_dropin_rates",
    "arguments": {}
  }
}

set_dropin_rates

Change drop-in prices Changesdry_run

Set what a drop-in costs at one location (owners): the open gym price for each kind of visitor and any class with its own drop-in price. Families then pick the gym, who is coming and the day on the drop-in page and pay online. Send only the list that changes; the other stays.

ParameterTypeDescription
locationstringThe location's name or key. Leave out for a gym with one location
open_gymarray of objectReplaces this location's open gym prices; the first is the usual price. An empty list removes them
open_gym[].who requiredstringThe kind of visitor, e.g. Standard, College student, Age 5 and under, Spectators
open_gym[].price requirednumberDollars for one visit; 0 = free (shown, not sold)
open_gym[].notestringOptional, e.g. Show your student ID
classesarray of objectReplaces the classes with their own drop-in price at this location. An empty list removes them
classes[].class requiredstringThe class as named on the schedule
classes[].price requirednumberDollars for one class
classes[].shown_asstringOptional: the name families see
dry_runbooleantrue = only show what would change, save nothing. Use it first for anything the owner hasn't seen yet.
Call shape
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "set_dropin_rates",
    "arguments": {
      "dry_run": true
    }
  }
}

remove_private_lesson_type

Remove a private lesson type Changesdry_runconfirm

Remove a private lesson type from Schedule > Private lessons and the website (owners and managers); its open times go too. Lessons families already bought stay on the list. To only hide it for a while, use add_private_lesson_type with its id and on_sale: false instead. Needs confirm: true after the owner says yes.

ParameterTypeDescription
lesson_type_id requiredstringThe id from get_private_lessons
dry_runbooleantrue = only show what would change, save nothing. Use it first for anything the owner hasn't seen yet.
confirmbooleanMust be true, after the owner has said yes
Call shape
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "remove_private_lesson_type",
    "arguments": {
      "lesson_type_id": "<lesson_type_id>",
      "dry_run": true
    }
  }
}

remove_private_lesson_time

Remove an open private lesson time Changesdry_runconfirm

Take one open time off a private lesson type (owners, managers or the lesson's own coach), so families can't pick it. A time a family has booked can't be removed here. Needs confirm: true after the owner says yes.

ParameterTypeDescription
lesson_type_id requiredstringThe id from get_private_lessons
date requiredstringYYYY-MM-DD
start_time requiredstringe.g. 16:00 or 4:30 PM
dry_runbooleantrue = only show what would change, save nothing. Use it first for anything the owner hasn't seen yet.
confirmbooleanMust be true, after the owner has said yes
Call shape
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "remove_private_lesson_time",
    "arguments": {
      "lesson_type_id": "<lesson_type_id>",
      "date": "<date>",
      "start_time": "<start_time>",
      "dry_run": true
    }
  }
}

All 318 tools

Ask NinjaHQ

Answers from our Help Center and website

Ask anything about NinjaHQ, or try:

AI answers from NinjaHQ's own pages and can make mistakes. Your questions are sent to Anthropic, the AI company, to answer; NinjaHQ doesn't keep them. Privacy