Tool reference · 15 tools

Reports and numbers

Ready-made reports, what each number means, report costs, daily and weekly summaries, membership and registration numbers. Totals only, never a customer's personal details.

Ask it in plain words

  • "How did we do last week?"
  • "Show me sales by service for October."
  • "What does net sales mean in the reports?"

get_membership_numbers

Membership numbers and growth Reads

How many members the gym has, monthly income from memberships, members by plan, and how many joined and left each month. Totals only: no names.

ParameterTypeDescription
monthsintegerHow many months of history, 1 to 24 (default 6)
Call shape
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "get_membership_numbers",
    "arguments": {}
  }
}

get_registration_numbers

Competition registration numbers Reads

For each upcoming competition: how many athletes have paid, by division, and how many spots are left. Totals only: no names.

Takes no parameters.

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

list_reports

Reports Reads

The gym's reports (Sales, Sales by Service, Autopay Detail, Birthday Guest Lists, Mailing Lists): what each shows, whether it can be filtered by location, its choices, and its page in the back office (where it can be downloaded or printed).

Takes no parameters.

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

list_metrics

What the report numbers mean Reads

Every number in the gym's reports with its plain-words definition, its unit (money, count, pct, minutes), which way is better (up or down), and what it can be split by: sales, refunds, net, discounts, card fees, failed payments, classes held, spots, check-ins, fill rate, attendance rate, no-shows, class revenue, revenue, coaches, other costs, profit, margin, cost per kid. Money numbers only for owners. Use it to explain a number or before answering how the gym is doing.

Takes no parameters.

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

get_report_numbers

Report numbers for any dates, split your way Reads

Build your own report: any of the gym's report numbers (sales, refunds, net, discounts, card fees, failed payments, classes held, spots, booked, check-ins, fill rate, attendance, no-shows, class revenue, revenue, coaches, other costs, profit, margin, cost per kid...) for any dates, as totals or split by day, week, month, location or type, ready for a table or a chart. Read from the totals the gym's reports keep for each day, so it is quick even for years of data. Numbers only, never people. Money numbers only for owners. Use list_metrics for what each number means.

ParameterTypeDescription
metricsarray of stringNumber ids from list_metrics, such as sales.net, classes.checkins, profit.margin (default: all you can see)
periodstringtoday, yesterday, week, lastweek, month, lastmonth, 30, 90, quarter, year or lastyear (default this month)
fromstringFirst day YYYY-MM-DD (with to, instead of period; three years at most)
tostringLast day YYYY-MM-DD
bystring: day | week | month | location | typeSplit the numbers by day, week, month, location or type (class, party, camp, competition, membership...); leave out for totals
locationstringA location key from list_reports (default all)
Call shape
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "get_report_numbers",
    "arguments": {}
  }
}

get_report_summary

A report's numbers Reads

A report's headline numbers for a period and location: for Sales the sales, refunds, net, payments and average sale; for Sales by Service each service's net sales (up to 25); for Autopay Detail the families on autopay, monthly total and card problems; for Birthday Guest Lists the parties, guests, waivers and who can get the free trial offer; for Mailing Lists the list sizes. Numbers only: open the report's page for the rows.

ParameterTypeDescription
report requiredstringThe key from list_reports, such as sales, services, autopay, guests or lists
periodstringtoday, yesterday, week, lastweek, month, lastmonth, 30, 90, quarter, year, lastyear or next30 (default this month)
fromstringFirst day YYYY-MM-DD (with to, instead of period)
tostringLast day YYYY-MM-DD
locationstringA location key from list_reports (default all)
choicestringThe report's own choice, such as by=type for Sales by Service or list=partyguests for Mailing Lists (name=value)
Call shape
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "get_report_summary",
    "arguments": {
      "report": "<report>"
    }
  }
}

get_weather_outlook

Weather and business outlook Reads

How the gym's local weather changes its business, for planning: over the last 12 months, how rainy, snowy, hot, cold and mild days changed check-ins (or sales or website visits when the gym doesn't check people in) against a usual day of the same weekday, and the next 7 days' National Weather Service forecast (US locations) with what to expect each day (busier, quieter or a usual day, and the expected number). Past weather is from the nearest NOAA station, about a week behind. Use it for questions like "Will the rain this weekend hurt us?", "Do hot days slow us down?", or planning staff and open gym around the weather. Owners and managers.

ParameterTypeDescription
locationstringA location key from list_reports' locations (leave out for all of yours)
Call shape
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "get_weather_outlook",
    "arguments": {}
  }
}

get_report_details

Details of a class, party or product Reads

Everything the reports know about one class, party, camp, competition, product, membership or service, as the report pop-ups show it: for a class its tuition, spots, how many are enrolled, the last 90 days' classes run, visits, fill rate, revenue, coach and other costs, profit and margin, the next two weeks' classes and a month by month table; for a party the day, time, guests coming, waivers signed, coach, total, paid, balance and its cost and profit; for a product its price, stock and what sold by month; for a service what sold by month. Money only for owners. Names of enrolled students and guests stay in the back office.

ParameterTypeDescription
type requiredstring: class | party | product | camp | competition | membership | serviceWhat it is
namestringIts name, for a class, product, camp or competition (as in a report or get_classes)
idstringIts id: a party's or membership's id (from list_parties or the back office), or for a service kind|name as in Sales by Service
Call shape
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "get_report_details",
    "arguments": {
      "type": "class"
    }
  }
}

list_report_views

My saved reports and views Reads

The saved views of reports (a report's dates, location, columns, filters and sort under a name) and the person's own reports made with Save as a new report (My reports), with the ones an owner shared with managers. Each has its spec (what it shows, in words) and its page.

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_views",
    "arguments": {}
  }
}

save_report_view

Save a report view or a new report Changesdry_run

Saves a report the way the owner wants to see it, under a name: as a saved view of the report (Saved views on that report) or as a new report under My reports (Save as a new report), with the dates, location, columns and their order, filters and sort. Only for the person asking; owners can share it with managers. Use list_reports for the report keys and get_report_summary to check the numbers first.

ParameterTypeDescription
report requiredstringThe report it is based on (a key from list_reports)
name requiredstringIts name, for example "Party packages last month"
kindstring: view | copyview: a saved view of that report; copy: a new report under My reports (default view)
periodstringtoday, week, month, lastmonth, 30, 90, quarter, year, lastyear or next30
fromstringOr a start day (YYYY-MM-DD)
tostringAnd an end day
locationstringA location key from list_reports, or leave out for all
choicestringThe report's own choice as name=value, for example by=type
columnsarray of stringThe columns to show, in order (column keys; leave out for the report's own)
filtersarray of objectFilters on columns: contains (text), in (one of the values), gte/lte (a number, dollars for money), after/before (a day)
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 (one for every op but in)
sortstringThe column to sort by
dirstring: asc | descSort order: asc (smallest or oldest first) or desc (largest or newest first)
sharebooleanOwners only: share it with managers
dry_runbooleanSay what would be saved without saving
Call shape
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "save_report_view",
    "arguments": {
      "report": "<report>",
      "name": "<name>",
      "dry_run": true
    }
  }
}

delete_report_view

Delete a saved report view Changesconfirm

Deletes one of the person's own saved views or My reports (never someone else's). Needs confirm: true; it can't be undone.

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

get_weekly_summary

The weekly summary Reads

How the gym's week went, as in the Monday email: the week told in a few sentences; what needs the owner (failed payments, waivers running out); sales by kind against the week before and the 30 days before; members joined and left; trials booked, came and joined; check-ins and how full classes are; bookings of classes, parties, camps and competitions; website visitors, calls, directions and forms; new contacts and Google reviews; what's coming up. Counts and totals only. Managers get it without the money.

ParameterTypeDescription
weekstringAny day (YYYY-MM-DD) in the week to summarize; default the last whole week (Monday to Sunday)
Call shape
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "get_weekly_summary",
    "arguments": {}
  }
}

get_daily_summary

Yesterday's numbers Reads

How one day went at the gym, as in the morning email: the day told in a few sentences; what needs the owner; sales by kind against the same weekday last week and money so far this month against the same days last month; check-ins; new bookings of classes, parties, camps and competitions; members joined and left; trials booked and how many expected came; website visitors, calls and forms; and what's on today (trials expected, parties, competitions). Counts and totals only. Managers get it without the money.

ParameterTypeDescription
daystringThe day to summarize (YYYY-MM-DD); default yesterday
Call shape
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "get_daily_summary",
    "arguments": {}
  }
}

get_report_costs

Report costs Reads

The costs the Cost and Profit report uses besides coach pay: fallback coach rate, payroll taxes %, space cost per hour, party supplies per guest and per party, cost per camper, cost per athlete, league fee per athlete and card fees %. Read the profit numbers with get_report_summary report=profit.

Takes no parameters.

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

set_report_costs

Change report costs Changesdry_run

Set the costs the Cost and Profit report uses (owners). Give only the ones to change, in dollars or percent. Coach pay itself comes from each person's pay rate in Staff time & pay.

ParameterTypeDescription
ratenumberCoach Pay When No Rate Is Set (dollars per hour). Used for a coach with no pay rate under Staff time & pay.
burdenPctnumberPayroll Taxes and Benefits (percent). Added on top of pay, for example 10%. Leave at 0 to count wages only.
roomnumberSpace Cost per Hour (dollars per hour). Rent, utilities and insurance for a month, divided by the hours you are open in a month.
partyGuestnumberParty Supplies per Guest (dollars). Wristbands, pizza, drinks: what one more guest costs.
partyFlatnumberOther Cost per Party (dollars). Cake, decorations, cleaning: the same for every party.
campernumberCost per Camper (dollars). Snacks, a T-shirt, supplies for each child booked.
athletenumberCost per Competition Athlete (dollars). Medals, wristbands, judges' supplies for each athlete.
leaguenumberLeague Fee per Athlete (dollars). What you pay the league (for example WNL) for each athlete.
cardPctnumberCard Fees (percent). The share of each sale your card processor keeps. About 3% for Stripe.
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_report_costs",
    "arguments": {
      "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