Tool reference · 5 tools

Website widgets and screens

Booking widgets for a website the gym already has (classes, camps, parties, open gym, events, a sign-in button), and the back office's Today and Front desk screens.

Ask it in plain words

  • "Give me the code for a class schedule widget on our WordPress site."
  • "Show the day's parties first on the Front desk screen."

Worked examples: Put booking on a website you already have.

list_website_widgets

Website widgets Reads

The booking widgets this gym can put on its own website (class schedule, camps, birthday parties, open gym, after-school, special events, a Sign in to My account button), its locations, the website addresses allowed to show booking lists, and the direct sign-in link to My account.

Takes no parameters.

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

get_website_widget

A website widget's code Reads

The one line of code to paste into the gym's own website (Wix, Squarespace, WordPress) for a booking widget, and a link to preview it. Booking lists only show on the website addresses saved with set_widget_websites; buttons work anywhere.

ParameterTypeDescription
kind requiredstringclasses, camps, parties, opengym, afterschool, events or account
locationstringA location key from list_website_widgets (optional)
stylestring: list | buttonlist (a booking list with Book buttons) or button (one button)
labelstringThe button's words (optional, up to 40 characters)
Call shape
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "get_website_widget",
    "arguments": {
      "kind": "<kind>"
    }
  }
}

set_widget_websites

Websites that may show booking widgets Changesconfirm

Replace the list of the gym's own website addresses that may show booking lists (owners). Anything that isn't a website address is left out and reported.

ParameterTypeDescription
websites requiredstringThe gym's own website addresses, separated by commas or new lines, such as yourgym.com (up to 10; the www. version is added)
confirm requiredbooleanMust be true, after the owner has said yes
Call shape
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "set_widget_websites",
    "arguments": {
      "websites": "<websites>",
      "confirm": true
    }
  }
}

get_screen_widgets

Today and Front desk screens Reads

What the back office's Today screen and the Front desk screen show, in order, and every widget that could be added (id, title, what it shows, where it goes). Use before set_screen_widgets.

Takes no parameters.

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

set_screen_widgets

Change the Today or Front desk screen Changesdry_run

Sets which widgets the Today or Front desk screen shows and in what order (full width, left or right column). Owners and managers only. Read get_screen_widgets first and send the whole list. Ask before saving.

ParameterTypeDescription
screen requiredstring: today | desktoday = the back office's first screen; desk = the Front desk screen
widgetsarray of objectThe whole screen in order, top to bottom (ids from get_screen_widgets). Widgets left out are taken off.
widgets[].id requiredstringThe widget's id, from get_screen_widgets
widgets[].sizestring: full | left | rightfull width, or the left or right column
start_overbooleantrue = put the screen back the way it came (widgets is ignored)
dry_runbooleantrue = show the result without saving
Call shape
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "set_screen_widgets",
    "arguments": {
      "screen": "today",
      "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