Tool reference · 10 tools

Flyers

Print-ready flyers made from the gym's camps, parties, classes and events: more than 20 designs, a QR code, free stock photos, a share link and an email draft from any flyer.

Ask it in plain words

  • "Make a flyer for winter camp with a QR code to the camps page."
  • "Copy the Halloween flyer for Parents' Night Out."
  • "Turn the camp flyer into an email draft."

Worked examples: Make a camp flyer and email it.

list_flyer_templates

Flyer templates Reads

Everything a flyer can be made from: occasions (seasonal ones like halloween, thanksgiving, wintercamp, valentine, summercamp; year-round ones like pno, openhouse, competition, tryouts, hiring; and the four that fill themselves from the gym's classes, parties and camps), designs, layouts, color palettes (brand = the gym's own), stickers, QR targets, and each slot's limit and comfortable length. Also what's coming up (soonest first) and the camps, events, party packages and classes a flyer can be tied to.

Takes no parameters.

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

list_flyers

Saved flyers Reads

The gym's saved flyers (newest change first), each with its id and the links to edit and print it.

Takes no parameters.

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

get_flyer

Read a flyer Reads

One saved flyer: its words, look, photo, what it's tied to, warnings (words that make the type small), and the links to edit it and to print it (the print link shows the flyer with a Print button).

ParameterTypeDescription
id requiredstringThe flyer's id (list_flyers)
Call shape
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "get_flyer",
    "arguments": {
      "id": "<id>"
    }
  }
}

create_flyer

Make a flyer Changes

Make and save a flyer from an occasion with ready words in the gym's logo, colors, phone and website, then change any words. Returns its id, warnings and the links to edit and print it. Nothing is printed, sent or posted.

ParameterTypeDescription
occasion requiredstringWhat it's for: a key from list_flyer_templates (halloween, wintercamp, pno, openhouse, everything, fieldtrip, ...)
namestringOptional: a name for the flyers list
designstringOptional design key (the occasion's own by default)
layoutstring: classic | photo | bold | splitHow the photo and words are arranged
palettestringOptional palette key; brand is the gym's own colors
paperstring: letter | a4Paper size: letter (US) or a4
halfbooleanTwo half-page flyers per sheet, to cut
colorbooleanfalse for ink saver (black and white)
slotsobjectThe words: headline, subhead, body, bullets (array), date, time, price, cta, offer, code (one of the gym's discount codes), to (a field trip's school), qr (home|classes|parties|camps|bound|page|none), qrPage, photo { src (from the gym's photo library: list_pictures), alt, fx, fy (what stays in view, 0-100) }. Leave date, time and price empty when tied to something: they fill in.
tie_toobjectOptional { kind: camp|event|party|class, id } from list_flyer_templates can_tie_to: its name, dates and price fill in
stickersarray of valuesOptional [{ key, at: tl|tr|bl|br, size: s|m|l }]
Call shape
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "create_flyer",
    "arguments": {
      "occasion": "<occasion>"
    }
  }
}

update_flyer

Change a flyer Changes

Change a saved flyer: only what's given changes, so "make it the Halloween design" is { design: "halloween", palette: "halloween" } and the words stay. Words over a slot's limit are refused with the limit.

ParameterTypeDescription
id requiredstringThe flyer's id (list_flyers)
namestringThe flyer's name in the flyer list (not printed)
designstringDesign key from list_flyer_templates
layoutstring: classic | photo | bold | splitHow the photo and words are arranged
palettestringPalette key from list_flyer_templates; brand is the gym's own colors
paperstring: letter | a4Paper size: letter (US) or a4
halfbooleanTwo half-page flyers per sheet, to cut
colorbooleanfalse for ink saver (black and white)
slotsobjectOnly the slots that change (as in create_flyer); a slot set to "" is emptied
tie_toobject,null{ kind, id } or null to untie
stickersarray of valuesThe stickers, replacing the current ones: [{ key, at: tl|tr|bl|br, size: s|m|l }]; [] removes them
Call shape
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "update_flyer",
    "arguments": {
      "id": "<id>"
    }
  }
}

search_stock_photos

Search free stock photos Reads

Search Pixabay's free photos for a flyer (only when the gym has stock photos on). Returns each photo's id, a description, the photographer and its size; use_stock_photo puts one on a flyer. Prefer photos without recognizable faces or brand logos: the people in stock photos haven't agreed to be in advertising. The gym's own photos (list_pictures) usually work better.

ParameterTypeDescription
query requiredstringWhat to look for, like "snowy park" or "birthday balloons" (80 characters at most)
pageintegerWhich page of results, from 1
Call shape
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "search_stock_photos",
    "arguments": {
      "query": "<query>"
    }
  }
}

use_stock_photo

Put a stock photo on a flyer Changes

Copy a Pixabay photo into the gym's photo library and put it on a flyer (its photographer is kept as the credit). Tell the owner to check what stays in view.

ParameterTypeDescription
id requiredstringThe flyer's id (list_flyers)
photo_id requiredstringThe stock photo's id from search_stock_photos
Call shape
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "use_stock_photo",
    "arguments": {
      "id": "<id>",
      "photo_id": "<photo_id>"
    }
  }
}

copy_flyer

Copy a flyer Changes

Make a copy of a saved flyer (to change it for another camp week or another school), and return the copy.

ParameterTypeDescription
id requiredstringThe flyer to copy, from list_flyers
Call shape
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "copy_flyer",
    "arguments": {
      "id": "<id>"
    }
  }
}

delete_flyer

Delete a flyer Changes

Delete a saved flyer for good (owners and managers). Ask the owner first.

ParameterTypeDescription
id requiredstringThe flyer to delete, from list_flyers
Call shape
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "delete_flyer",
    "arguments": {
      "id": "<id>"
    }
  }
}

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