Tool reference · 19 tools

Camps and birthday parties

Camps by the week or day, private camp requests, party packages, rooms and start times, add-ons, party look and choices, and tips.

Ask it in plain words

  • "Add a winter break camp December 22 to January 2, full and half days."
  • "Raise the Ninja Party package to $350."
  • "Who are the guests at Saturday's 2 PM party?"

Worked examples: Change party packages.

list_text_campaigns

Text messages sent and scheduled Reads

The gym's last 20 text messages to groups: the words, who they went to, when, and how many were sent, waiting for quiet hours to end, skipped (STOP, or already texted that day) and failed. No phone numbers.

Takes no parameters.

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

list_camps

Camps Reads

Every camp (summer, school break, after-school program, private): its dates, number of camp days, Morning / Afternoon / Full Day sessions with times and room, prices in dollars (weekFull, weekHalf, dayFull, dayHalf, flex5Full, flex10Full, flex5Half, flex10Half), whether families can book it, camper-days booked, its public booking page and back office page.

ParameterTypeDescription
include_pastbooleantrue = camps that have ended too
Call shape
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "list_camps",
    "arguments": {}
  }
}

get_camp_day

A camp day's numbers Reads

For one day: each camp running, how many campers are booked, checked in now, picked up and not here yet, each session's bookings and room left, and the roster's back office page. Numbers only, no children's names.

ParameterTypeDescription
daystringYYYY-MM-DD (default today)
camp_idstringThe id from list_camps (default every camp running that day)
Call shape
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "get_camp_day",
    "arguments": {}
  }
}

list_private_camp_requests

Private camp requests Reads

Private camp requests waiting for an answer: which camp, how many campers, how many days, the estimate in dollars. Names and contact details are on the back office page Camps > Private Requests.

Takes no parameters.

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

add_camp

Set up a camp Changes

Sets up a new camp as a draft (families can't book it yet): dates, days, days off, sessions with times and room, prices and flex passes, and an optional private camp price. The owner checks it on the camp's back office page and opens it for booking there.

ParameterTypeDescription
name requiredstringThe name families see
kindstring: summer | break | afterschool | privatesummer, school break, after school or private (a group books the whole camp)
start requiredstringFirst day, YYYY-MM-DD
end requiredstringLast day, YYYY-MM-DD
weekdaysarray of integerCamp days of the week, 0 = Sunday (default Monday to Friday)
days_offarray of stringHolidays with no camp, YYYY-MM-DD
agesstringThe ages it is for, as families see it, e.g. 6-12
aboutstringA short description for the camp's page
locationstringA location key, for a business with several
sessionsobjectam = Morning, pm = Afternoon, full = Full Day
sessions.amobjectMorning session: { on, start, end, room } with times as HH:MM, 24-hour
sessions.pmobjectAfternoon session: { on, start, end, room } with times as HH:MM, 24-hour
sessions.fullobjectFull-day session: { on, start, end, room } with times as HH:MM, 24-hour
pricesobjectDollars; leave one out to not sell it
prices.weekFullnumberPrice of a full week of full days, in dollars
prices.weekHalfnumberPrice of a full week of half days, in dollars
prices.dayFullnumberPrice of one full day, in dollars
prices.dayHalfnumberPrice of one half day, in dollars
prices.flex5FullnumberPrice of a flex pass for any 5 full days, in dollars
prices.flex10FullnumberPrice of a flex pass for any 10 full days, in dollars
prices.flex5HalfnumberPrice of a flex pass for any 5 half days, in dollars
prices.flex10HalfnumberPrice of a flex pass for any 10 half days, in dollars
private_day_pricenumberDollars a day for a private camp group (turns on private camp requests)
private_group_sizeintegerHow many campers a private camp price includes
Call shape
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "add_camp",
    "arguments": {
      "name": "<name>",
      "start": "<start>",
      "end": "<end>"
    }
  }
}

list_parties

Upcoming birthday parties Reads

Every birthday party in a date range (booked online or added by staff), optionally only one room, start time, package or coach, or only those with a balance due, waivers missing or allergies: date and time, package and add-ons, room and coach, how many kids are expected and coming, waivers signed and still needed, kids with allergies, who can't come, the balance due, and the party's back office page.

ParameterTypeDescription
fromstringFirst day, YYYY-MM-DD (default today)
tostringLast day, YYYY-MM-DD (default 60 days on)
roomstringOnly this party room (exact name, e.g. Party Room B)
start_timestringOnly parties starting at this time, HH:MM 24-hour (e.g. 17:00)
packagestringOnly this package (exact name)
coachstringOnly this coach's parties
balance_duebooleanOnly parties with a balance still due
waivers_missingbooleanOnly parties with a child whose waiver isn't signed
allergiesbooleanOnly parties with a child who has allergies
Call shape
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "list_parties",
    "arguments": {}
  }
}

get_party_guests

A party's guest list Reads

One party's guest list for running the party: how many children are coming, whose waivers are signed, how many have allergies or notes on file and who has checked in; plus how many can't come. In the back office's own assistant it also names each child and family with their allergies and notes; an outside AI app gets the numbers only, and the names are on the party's page.

ParameterTypeDescription
party_id requiredstringThe id from list_parties
Call shape
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "get_party_guests",
    "arguments": {
      "party_id": "<party_id>"
    }
  }
}

get_party_addons

A party's food and extras Reads

One party's food and extras: what's chosen (with quantities and prices), the gym's list of add-ons that can be added (each, per guest or one price), the day the family can no longer change them online, and the party's total and balance.

ParameterTypeDescription
party_id requiredstringThe id from list_parties
Call shape
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "get_party_addons",
    "arguments": {
      "party_id": "<party_id>"
    }
  }
}

set_party_addons

Change a party's food and extras Changesdry_run

Change a party's food and extras (owners and managers): send the whole new list. The party's total and balance change by the difference; the gym's own staff are not emailed. Use get_party_addons first for the keys.

ParameterTypeDescription
party_id requiredstringThe id from list_parties
addons requiredarray of objectThe whole new list: anything left out is taken off
addons[].key requiredstringThe add-on's key from get_party_addons (or its name)
addons[].quantity requiredintegerHow many for an each item (pizzas); 1 to add a per-guest or one-price item; 0 to take it off
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_party_addons",
    "arguments": {
      "party_id": "<party_id>",
      "addons": [],
      "dry_run": true
    }
  }
}

set_party_look

Change a party invitation's theme and color Changesdry_run

Change how a birthday party's invitation looks (owners and managers): a theme and a color. The invitation, the RSVP page, the paper invitations and the party emails follow it. Every color keeps the text easy to read. The family can also change it on their own party page.

ParameterTypeDescription
party_id requiredstringThe id from list_parties
theme requiredstring: champion | unicorn | rainbow | neon | dino | space | ocean | sports | hero | jungle | clock | compete | spring | summer | spooky | winterchampion = Party Time (the usual confetti), unicorn = Unicorn Sparkle, rainbow, neon = Neon Glow, dino, space, ocean, sports = Sports Star, hero = Superhero, jungle, clock = Race the Clock (gray page, thick frame, the child's name on a yellow ribbon; best in the gym's own colors), compete = Selected to Compete (white page, black frame, obstacle athletes and a stars-and-stripes Ninja Party shield); seasonal: spring = Spring Bloom, summer = Summer Splash, spooky = Spooky Fun, winter = Winter Wonderland
colorstring: gym | pink | purple | red | orange | green | teal | blue | navyOptional: gym = the gym's own colors; leave out for the theme's own color
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_party_look",
    "arguments": {
      "party_id": "<party_id>",
      "theme": "champion",
      "dry_run": true
    }
  }
}

change_party

Move a party, or mark it confirmed or arrived Changesdry_run

Move a birthday party to another day, time or room, or mark it confirmed or arrived (owners and managers). A move is checked like on the party's page: it stops when the date has passed, another party is in that room then, every party room is taken, or the gym is closed that day, and says why. A party paid online keeps its booking in step. This never emails the family: to tell them, the owner opens the party in the back office (Parties, then Edit or move the party) and saves with the email box ticked.

ParameterTypeDescription
party_id requiredstringThe id from list_parties
daystringNew day, YYYY-MM-DD (leave out to keep it)
startstringNew start time, 24-hour HH:MM
endstringNew end time, 24-hour HH:MM
roomstringThe party room's name
confirmedbooleantrue = mark confirmed (staff talked to the family), false = undo
arrivedbooleantrue = the family is here, false = undo
move_anywaybooleanMove even when the room or every room is taken then (only when the owner says so)
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": "change_party",
    "arguments": {
      "party_id": "<party_id>",
      "dry_run": true
    }
  }
}

set_party_choices

Party allergies and pizza ordering Changesdry_run

See or change two party choices (owners and managers): whether the RSVP asks about allergies, and whether families order pizza from the gym on their party page with a suggested order size. Call with no changes to see the current choices.

ParameterTypeDescription
ask_allergiesbooleantrue = guests are asked about allergies when they RSVP and staff see them; false = names only, no allergies anywhere
pizza_orderingbooleantrue = the party host can order pizza from the gym on their party page, with a suggested number of pizzas and an email with tips (needs a pizza priced each in Food and Extras: add_ons of update_party_booking)
slices_per_childinteger1 to 6 (default 2)
slices_per_pizzainteger4 to 16 (default 8)
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_party_choices",
    "arguments": {
      "dry_run": true
    }
  }
}

get_tips_by_person

Tips by person Reads

Tips from parties and the register in a period: the total, each person's share (for payroll), and each tip (day, what it was for, how it was paid, who gets it). Owners only.

ParameterTypeDescription
fromstringFirst day, YYYY-MM-DD (default the first of this month)
tostringLast day, YYYY-MM-DD (default today)
Call shape
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "get_tips_by_person",
    "arguments": {}
  }
}

get_party_booking

Birthday party booking Reads

How families book birthday parties online: whether online booking is on, the start times, how many parties at once, days' notice, each package's price, guests included and notice, add-on prices, the extra guest price, most guests, deposit and booking terms.

Takes no parameters.

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

update_party_booking

Change party prices, times and booking Changesdry_runconfirm

Change birthday party prices, guests included, add-on prices, start times, days' notice, deposit, whether the balance is charged automatically before the party (and how many days before), or booking terms, the Good to know list on the Parties page, show or hide the Party planning, handled section on the Parties page, or switch online booking on or off (owners and managers). Send only what changes. Switching online booking off needs the owner's yes and confirm: true.

ParameterTypeDescription
online_bookingbooleantrue = families book and pay online; false = the parties page keeps the request form
start_timesarray of objectReplaces every start time. One item per party time, e.g. Saturday 12 PM to 2 PM
start_times[].day requiredstringThe day of the week, e.g. Saturday
start_times[].start requiredstringe.g. 12 PM
start_times[].endstringe.g. 2 PM
party_roomsarray of stringThe party rooms by name (up to 10), e.g. Party Room A: each is a column on Bookings > Parties, and with rooms the parties at the same time is their number. An empty list removes the names
parties_at_the_same_timeinteger1 to 10 (rooms or coordinators)
days_noticeintegerThe earliest a family can book, in days from today, 0 to 60
packagesarray of objectOnly the packages that change; the others stay
packages[].package requiredstringThe package's name
packages[].pricenumberThe package's price in dollars
packages[].guests_includedintegerHow many children the package includes
packages[].days_noticeintegerOnly when this package needs more notice
add_onsarray of objectFood and extras to add, change or remove (others stay). Up to 3 new ones at a time
add_ons[].add_on requiredstringIts name, e.g. Pizza
add_ons[].pricenumberDollars
add_ons[].pricedstring: one price | each | per guesteach = the family picks how many (pizzas); per guest = times the party's headcount (goodie bags)
add_ons[].categorystringe.g. Food, Drinks, Extras
add_ons[].removebooleantrue takes this add-on away
families_can_change_add_ons_until_days_beforeintegerFamilies change food and extras on their party page until this many days before (0 to 30, default 3)
extra_guest_pricenumberDollars per extra guest
most_guestsintegerMost guests at one party, 1 to 200
depositnumberDollars paid online as a deposit; 0 = pay the full price online
charge_balance_automaticallybooleanWith a deposit: true = the rest is charged to the family's card before the party (they agree when paying and get an email first); false = the rest is paid at the gym
balance_days_beforeintegerHow many days before the party the balance is charged, 1 to 14 (default 3)
booking_termsstringShown under the pay button, e.g. Deposits are refundable up to 7 days before the party (up to 400 characters)
good_to_knowarray of stringReplaces the Good to know list on the Parties page, one short line each (up to 10): rules, what is paid when, what to bring
party_planning_sectionbooleantrue = the Parties page shows "Party planning, handled" (what families get with every party: the invitation, RSVPs with the waiver, their party page, reminders); false = hide it
party_videobooleantrue = that section plays the 25-second party video (a guest says yes, signs the waiver and appears on the guest list; filmed in a sample gym); false = hide the video. Never shown for a gym with an outside waiver link
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": "update_party_booking",
    "arguments": {
      "dry_run": true
    }
  }
}

update_location_party_booking

Change one location's party times, rooms and packages Changesdry_runconfirm

Change one location's birthday party booking (owners): online booking on or off, start times, named party rooms, parties at the same time, days' notice, most guests, and its packages (price, guests included, deposit, extra guest price; add or remove), its party rooms with their own picture, description and times (rooms), and the “Good to know before you book” list on its party page with headings, words and links (party_info), its own add-ons with a picture and description (add_ons). The balance charge and the cancel rule stay as set for all locations (update_party_booking), as do food and extras for a location without its own add-ons. Send only what changes.

ParameterTypeDescription
location requiredstringThe location's name (or key)
online_bookingbooleantrue = families book and pay online at this location
start_timesarray of objectReplaces every start time at this location
start_times[].day requiredstringThe day of the week, e.g. Saturday
start_times[].start requiredstringe.g. 12 PM
start_times[].endstringe.g. 1:50 PM
party_roomsarray of stringThe location's party rooms by name (up to 10); with rooms, the parties at the same time is their number. An empty list removes the names
parties_at_the_same_timeinteger1 to 10, when the rooms aren't named
days_noticeinteger0 to 60
most_guestsinteger1 to 200
packagesarray of objectOnly the packages that change or are new; the others stay. Up to 2 new ones at a time
packages[].package requiredstringIts name (a new name adds a package)
packages[].pricenumberDollars
packages[].guests_includedintegerHow many children the package includes
packages[].depositnumberDollars paid online, 0 = the full price
packages[].extra_guest_pricenumberDollars per extra guest
packages[].removebooleantrue takes this package away
roomsarray of objectParty rooms with their own picture, words and times: families pick a day, then a room and one of its free times. Only the rooms that change or are new; one new room at a time. With such rooms, start_times and party_rooms are not used
rooms[].room requiredstringIts name (a new name adds a room)
rooms[].descriptionstringWhat families read about the room, up to 300 characters
rooms[].timesarray of objectReplaces this room's weekly times
rooms[].picturestringA photo from the gym's library: its photo_id (list_photos, import_photo_from_url), or "" for none
rooms[].removebooleantrue takes this party room away
add_onsarray of objectThis location's own add-ons (shirts, decorating...), each with a picture and words. Only the ones that change or are new; up to 2 new at a time
add_ons[].add_on requiredstringIts name (a new name adds one)
add_ons[].pricenumberDollars
add_ons[].pricedstring: flat | item | guestflat = one price, item = each (asks how many), guest = per guest
add_ons[].descriptionstringWhat families read about it, up to 500 characters
add_ons[].picturestringA photo_id from the gym's library, or "" for none
add_ons[].one_per_guestbooleantrue = when families book, suggest one of this add-on for each guest, with a button that adds them (only for add-ons priced item; nothing is added by itself)
add_ons[].removebooleantrue takes this add-on away
party_infoarray of objectReplaces the whole “Good to know before you book” list on this location's party page (up to 12 parts). [] removes it
party_info[].heading requiredstringe.g. Party Guests
party_info[].text requiredstringIts words, up to 3,000 characters; a line starting with - is a list item
party_info[].linksarray of objectLinks under the words (up to 6), each { label, url }
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": "update_location_party_booking",
    "arguments": {
      "location": "<location>",
      "dry_run": true
    }
  }
}

update_camp

Change a camp's details Changesdry_run

Change an existing camp (owners and managers), as Edit Camp does in Schedule > Camps: name, dates, camp days, days off, ages, description, location, each session's times and room, prices and flex passes, and the private camp price. Only what the owner mentions changes. Families booked already keep their days; a new price is for new bookings. Use dry_run first and show the changes. To open or close booking use set_camp_status.

ParameterTypeDescription
camp requiredstringThe camp's name or its id from list_camps
namestringThe name families see
kindstring: summer | break | afterschool | privatesummer, school break, after school or private (a group books the whole camp)
startstringFirst day, YYYY-MM-DD
endstringLast day, YYYY-MM-DD
weekdaysarray of integerCamp days of the week, 0 = Sunday
days_offarray of stringThe whole list of holidays with no camp, YYYY-MM-DD
agesstringThe ages it is for, as families see it, e.g. 6-12
aboutstringA short description for the camp's page
locationstringA location key or name, for a business with several
sessionsobjectam = Morning, pm = Afternoon, full = Full Day; only what changes
sessions.amobjectMorning session: { on, start, end, room } with times as HH:MM, 24-hour
sessions.pmobjectAfternoon session: { on, start, end, room } with times as HH:MM, 24-hour
sessions.fullobjectFull-day session: { on, start, end, room } with times as HH:MM, 24-hour
pricesobjectDollars; null = stop selling that one; only what changes
prices.weekFullnumber,nullPrice of a full week of full days, in dollars
prices.weekHalfnumber,nullPrice of a full week of half days, in dollars
prices.dayFullnumber,nullPrice of one full day, in dollars
prices.dayHalfnumber,nullPrice of one half day, in dollars
prices.flex5Fullnumber,nullPrice of a flex pass for any 5 full days, in dollars
prices.flex10Fullnumber,nullPrice of a flex pass for any 10 full days, in dollars
prices.flex5Halfnumber,nullPrice of a flex pass for any 5 half days, in dollars
prices.flex10Halfnumber,nullPrice of a flex pass for any 10 half days, in dollars
private_campbooleanOffer private camp requests
private_day_pricenumberA private camp's price for a full day, in dollars
private_half_day_pricenumber,nullA private camp's price for a half day, in dollars
private_group_sizeintegerHow many campers a private camp price includes
private_extra_camper_pricenumber,nullThe price for each camper over the group size, in dollars
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_camp",
    "arguments": {
      "camp": "<camp>",
      "dry_run": true
    }
  }
}

set_camp_status

Open or close a camp for booking Changesdry_runconfirm

Open a camp for booking on the website, close booking, or put it back to draft (owners and managers), as the camp's page in Schedule > Camps does. Closing or putting an open camp back to draft stops new bookings and needs confirm: true after the owner says yes. Nobody is emailed.

ParameterTypeDescription
camp requiredstringThe camp's name or its id from list_camps
status requiredstring: open | closed | draftopen = families can book on the website; closed = no new bookings (campers booked keep their days); draft = hidden from the website while it's set up
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": "set_camp_status",
    "arguments": {
      "camp": "<camp>",
      "status": "open",
      "dry_run": true
    }
  }
}

set_camp_request_status

Mark a private camp request Changesdry_run

Mark a private camp request booked or declined (or back to new) after the gym has talked with the group (owners and managers), as Schedule > Camps > Private requests does. It only changes the mark: nobody is emailed, nothing is booked or charged.

ParameterTypeDescription
request_id requiredstringThe id from list_private_camp_requests
status requiredstring: new | booked | declinedbooked, declined, or new to clear the mark
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_camp_request_status",
    "arguments": {
      "request_id": "<request_id>",
      "status": "new",
      "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