Tool reference · 4 tools

History and undo

Every change through the connector is kept in History with who made it and through which app. Compare with a date or put an earlier version back.

Ask it in plain words

  • "What changed on the website this week?"
  • "How has the weekly schedule changed since September 1?"
  • "Undo the last change to the coaches."

Worked examples: Undo a change.

list_changes

History of changes Reads

The most recent changes to the website's content: when, who (and through which app), which part, and a short summary. Each has a change_id for get_change and restore_change.

ParameterTypeDescription
areastringOnly this part, e.g. Weekly schedule, Coaches (optional)
limitintegerHow many, up to 50 (default 15)
Call shape
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "list_changes",
    "arguments": {}
  }
}

get_change

What exactly changed Reads

The full before-and-after of one change, line by line.

ParameterTypeDescription
change_id requiredstringThe change's id, from list_changes
Call shape
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "get_change",
    "arguments": {
      "change_id": "<change_id>"
    }
  }
}

compare_with_date

Compare a part of the site with an earlier date Reads

What is different in one part of the site between a past date and now, e.g. how the weekly schedule has changed since September 1.

ParameterTypeDescription
part requiredstringe.g. Weekly schedule, Coaches, Opening hours
date requiredstringYYYY-MM-DD
Call shape
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "compare_with_date",
    "arguments": {
      "part": "<part>",
      "date": "<date>"
    }
  }
}

restore_change

Put an earlier version back Changesconfirm

Undo: put one part of the site back to how it was just before a change. Owners only. Show the owner get_change first, ask them to confirm, then send confirm: true. A restore is itself a change, so it can be undone the same way.

ParameterTypeDescription
change_id requiredstringThe change to undo, from list_changes
confirmbooleanMust be true, after the owner has said yes
Call shape
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "restore_change",
    "arguments": {
      "change_id": "<change_id>",
      "confirm": 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