{
  "notice": "bxzxxr MCP archive: a record of what public MCP servers declared when we listed them (we never call their tools). It is data, not a rating: nothing here says a server is safe, secure, verified or trustworthy, and a server can change after we looked. Secrets we detected are redacted; redacted tool lists are withheld and only their hash is shown.",
  "infrastructure": {
    "host": "mcp.zooza.app",
    "site": "zooza.app",
    "addresses": [
      {
        "address": "51.124.79.200",
        "endpoints": 1,
        "shared_infrastructure": false,
        "network": {
          "asn": 8075,
          "name": "MICROSOFT-CORP-MSN-AS-BLOCK - Microsoft Corporation",
          "prefix": "51.124.0.0/16",
          "country": "GB"
        }
      }
    ],
    "addresses_recorded": true,
    "address_history": [
      {
        "addresses": [
          "51.124.79.200"
        ],
        "first_seen": "2026-11-22T07:12:01.802Z",
        "last_seen": "2026-11-23T07:13:01.307Z",
        "checks": 2
      }
    ],
    "hosting": [],
    "software": [
      {
        "value": "Express",
        "evidence": "X-Powered-By header \"Express\""
      }
    ],
    "server_info": {
      "name": "zooza-mcp",
      "version": "0.26.1",
      "protocol_version": "2025-06-18"
    },
    "headers": {
      "x-powered-by": "Express",
      "strict-transport-security": "max-age=31536000; includeSubDomains",
      "access-control-allow-origin": "*"
    },
    "auth": null
  },
  "related": {
    "same_address": {
      "total": 0,
      "sample": []
    },
    "same_site": {
      "total": 0,
      "sample": []
    },
    "same_tool_list": {
      "total": 0,
      "sample": []
    },
    "same_publisher": {
      "publisher": "app.zooza",
      "total": 0,
      "sample": []
    },
    "same_repository": {
      "repository_url": "https://github.com/zooza-dev/zooza-mcp-server",
      "total": 0,
      "sample": []
    },
    "note": "Shared addresses on big platforms (Cloudflare, Vercel and the like) put unrelated servers together; those are marked shared_infrastructure. A match is a pivot, not a link between operators."
  },
  "endpoint": {
    "id": "4477",
    "server_name": "app.zooza/mcp-server",
    "url": "https://mcp.zooza.app/mcp",
    "host": "mcp.zooza.app",
    "transport": "streamable-http",
    "last_checked_at": "2026-11-23T07:13:01.307Z",
    "last_state": "listed",
    "last_detail": "resources/list failed: The server requires authentication (HTTP 401). The probe only scans servers whose tool list is public. prompts/list failed: The server requires authentication (HTTP 401). The probe only scans servers whose tool list is public.",
    "consecutive_failures": 0,
    "current_sha": "5ae7a01283f464606992830f8012f764beeafa2986fbdf2d2f3436f439ac3e77",
    "first_listed_at": "2026-11-21T06:10:11.206Z",
    "created_at": "2026-11-21T05:00:09.469Z",
    "resolved_addresses": [
      "51.124.79.200"
    ]
  },
  "server": {
    "name": "app.zooza/mcp-server",
    "title": "Zooza MCP Server",
    "description": "MCP server for Zooza — class scheduling, attendance, and booking for activity businesses.",
    "version": "0.2.0",
    "registry_status": "active",
    "repository_url": "https://github.com/zooza-dev/zooza-mcp-server",
    "website_url": null,
    "published_at": "2026-06-10T19:47:30.716Z",
    "updated_at": "2026-06-10T19:47:30.716Z",
    "first_seen": "2026-11-21T05:00:08.874Z"
  },
  "other_endpoints": [],
  "intel": {
    "capabilities": [
      "sends-messages"
    ],
    "evm_addresses": [],
    "chains": [],
    "tokens": [],
    "computed_at": "2026-11-23T07:13:03.615Z"
  },
  "operator": {
    "key": "zooza.app",
    "name": "zooza.app",
    "platform": false,
    "marketplace": false
  },
  "needs_sign_in": false,
  "reachability": {
    "window_days": 30,
    "checks": 3,
    "answered": 3,
    "answered_percent": 100,
    "avg_listing_latency_ms": 1115,
    "first_check_in_window": "2026-11-21T06:10:11.206Z",
    "consecutive_failures_now": 0,
    "days": [
      {
        "day": "2026-11-21",
        "checks": 1,
        "answered": 1,
        "last_state": "listed"
      },
      {
        "day": "2026-11-22",
        "checks": 1,
        "answered": 1,
        "last_state": "listed"
      },
      {
        "day": "2026-11-23",
        "checks": 1,
        "answered": 1,
        "last_state": "listed"
      }
    ]
  },
  "tool_list": {
    "sha256": "5ae7a01283f464606992830f8012f764beeafa2986fbdf2d2f3436f439ac3e77",
    "tools": 18,
    "resources": 0,
    "prompts": 0,
    "first_seen": "2026-11-23T07:13:02.631Z",
    "tool_names": [
      "get_terminology",
      "whoami",
      "classes_find_courses",
      "classes_find_resource",
      "classes_find_classes",
      "bookings_find",
      "sessions_find_events",
      "sessions_get_attendance",
      "sessions_mark_attendance",
      "classes_update",
      "sessions_update",
      "sessions_cancel",
      "bookings_copy_booking",
      "comms_send_message",
      "reports_get_data",
      "get_skill",
      "get_tool_schema",
      "call_tool"
    ],
    "declared": {
      "tools": [
        {
          "name": "get_terminology",
          "title": "Look up Zooza terminology",
          "description": "Search the Zooza domain glossary. Returns canonical term names, definitions, cross-language synonyms, disambiguation rules, and AI guidance notes. No Zooza API call is made — purely local lookup against the compiled glossary. Use this to resolve ambiguous user input before calling operational tools. Examples: query=\"hodina\" → Session; query=\"kurz\", language=\"sk\" → Programme; category=\"product-hierarchy\" → all hierarchy terms; empty call → full index.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "properties": {
              "query": {
                "type": "string",
                "description": "Term, synonym, or keyword to look up. Matched against canonical_en, synonyms, deprecated terms, and intent_keywords (all languages). Case-insensitive substring match."
              },
              "category": {
                "enum": [
                  "product-hierarchy",
                  "programme-types",
                  "bookings",
                  "attendance",
                  "payments",
                  "clients",
                  "communication",
                  "platform",
                  "settings",
                  "scheduling",
                  "client-management"
                ],
                "type": "string",
                "description": "Filter by glossary category."
              },
              "language": {
                "enum": [
                  "en",
                  "sk",
                  "cz",
                  "de",
                  "pl",
                  "ro",
                  "hu",
                  "it",
                  "fr"
                ],
                "type": "string",
                "description": "Restrict intent_keyword matching to this language. Also highlights translations for the given language in the response."
              }
            },
            "additionalProperties": false
          },
          "annotations": {
            "readOnlyHint": true,
            "openWorldHint": false,
            "destructiveHint": false
          }
        },
        {
          "name": "whoami",
          "title": "Who am I?",
          "description": "Returns the connected user's identity, the companies they can operate on, regional context, and the session's token state. Call ONCE at the start of every conversation.\n\nHow to interpret the response:\n\n- 'status: \"ok\"' — authenticated, at least one company available. Pick a 'company_id' from 'companies' for follow-up calls (ask the user if more than one exists).\n- 'status: \"no_companies\"' — authenticated but no companies linked. Surface 'status_message' verbatim. No other tool will work.\n- 'status: \"invalid_user\"' — account rejected by api-v1. Surface 'status_message' verbatim.\n- 'status: \"api_error\"' — api-v1 unreachable. Surface 'status_message' and suggest retry.\n\nIdentity fields (use these to scope follow-up calls to the calling user):\n- 'identity.user_id' — the caller's Zooza user id. Pass this as 'trainer_id' to filter sessions_find_events / sessions_get_attendance / etc. to the user's OWN data whenever the user says \"my sessions,\" \"my classes today,\" \"what am I teaching tomorrow,\" etc. Without it, sessions_find_events returns ALL company events, not just the caller's.\n- 'identity.email', 'identity.name' — for display only.\n\nRegional context fields (use these to adapt behaviour):\n- 'server_region' — which Zooza installation this token routes to, taken from the JWT 'region' claim: \"eu\" (SK/CZ/DE/RO/HU/IT/PL), \"uk\", \"us\", \"asia\". This is the API-instance region, NOT the company's market region. Null in dev-fallback (no JWT).\n- 'company.region' — the company's MARKET region code (e.g. \"sk\", \"cz\", \"de\", \"en\"). Different axis from 'server_region': one EU instance ('server_region: \"eu\"') serves Slovak, Czech, German, … companies.\n- 'company.locale' — BCP-47 locale for date/number/currency formatting (e.g. \"sk-SK\", \"cs-CZ\", \"en-GB\").\n- 'company.language' — the company's primary language code.\n- 'company.currency' — the company's currency (e.g. \"EUR\", \"CZK\", \"GBP\").\n\nUse 'company.region' and 'company.language' to resolve terminology: a Slovak company saying \"kurz\" means Programme; a Czech company saying \"lekce\" means Session. When region context is available, skip asking the user to clarify language.\n\nBranding (per company in 'companies[].branding'):\n- 'branding.logo' (boolean) and 'branding.primary_color' (#hex or null) report what brand assets were cached for this company. Use 'primary_color' to brand a report artifact you compose for the client; the actual logo image is held server-side and never passes through you. Null branding = fetch failed or nothing configured; default to Zooza styling.\n\nFeedback context (used by the 'feedback-nudge' skill):\n- 'last_feedback_at' — ISO timestamp of the user's last MCP feedback submission, or null if never. Drives the skill's 7-day cool-off on proactive feedback nudges.\n- 'feedback_count' — total submissions to date (0 if never).\n\nTool-list freshness (Zooza has no marketplace auto-update, so proactively spot an out-of-date connector). There are TWO independent staleness signals — check BOTH:\n1. NEW or REMOVED tools — compare 'tool_surface.names' (every tool the live server exposes) against the tools you actually have available in THIS session. Any name in that list you do NOT have = the client is missing newly-added tools.\n2. UPDATED tools (same names, changed behaviour) — compare 'server_version' in this response against the [SURFACE_BUILD: …] marker at the very end of THIS tool description. If they differ, the tool DEFINITIONS you currently hold are from an OLDER build even when every tool name still matches — an existing tool's description, inputs, or behaviour changed after the client last connected. (This is why a deploy that only tweaks existing tools is still detectable.)\nIf EITHER signal fires, tell the user once — briefly, not naggingly — that their Zooza tools are out of date, and how to refresh: in Claude Desktop or Claude Code toggle the Zooza connector off then on (or reconnect / reinstall it); a browser client may just need a reload. Do NOT prompt when neither signal fires.\n",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "properties": {}
          },
          "annotations": {
            "readOnlyHint": true,
            "openWorldHint": false,
            "destructiveHint": false
          }
        },
        {
          "name": "classes_find_courses",
          "title": "Find courses by name",
          "description": "Search the company's courses by name (substring match) and optionally by registration_type. Returns a slim list of matches — `{id, name, registration_type, target_audience, price, schedules_count, ...}` — enough to disambiguate, not enough to act. Use this whenever the user names a course in natural language; never demand a raw course_id. Archived courses are excluded by default (pass `include_archived: true` to opt in). Pagination defaults to page 0, page_size 25 (max 200); `truncated: true` is returned when more matches exist than the current page reveals.\n\n`registration_type` business meanings (when filtering, AND when surfacing results to the user — always translate to these terms, never show the raw enum value):\n- `single` — drop-in / per-session: customer books one event at a time.\n- `full2` — full-course enrollment: customer signs up for the entire course/schedule in one go.\n- `open` — open-ended / membership: no fixed enrollment window; customer joins and stays.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "properties": {
              "name": {
                "type": "string",
                "description": "Substring match on the programme (course) name, e.g. \"Ballet\". Matches any programme whose name contains this text."
              },
              "page": {
                "type": "integer",
                "minimum": 0,
                "description": "0-based page index (default 0)."
              },
              "page_size": {
                "type": "integer",
                "maximum": 200,
                "minimum": 1,
                "description": "Number of results per page (max 200)."
              },
              "company_id": {
                "type": "integer",
                "description": "Zooza company id to operate against. Optional: if the user has exactly one company, the server defaults to it — you can omit this field. With multiple companies, you MUST specify which; get the id list from `whoami.available_companies[].id`. If the user hasn't indicated which company they mean, ask them before guessing.",
                "exclusiveMinimum": 0
              },
              "include_archived": {
                "type": "boolean",
                "description": "Default false → archived programmes are excluded. Set true to also include archived (retired) programmes."
              },
              "registration_type": {
                "enum": [
                  "single",
                  "full2",
                  "open"
                ],
                "type": "string",
                "description": "Registration model. 'single' = drop-in / per-session booking (customer books one event at a time). 'full2' = full-course enrollment (customer signs up for the entire course at once). 'open' = open-ended / membership (no fixed enrollment window)."
              }
            },
            "additionalProperties": false
          },
          "annotations": {
            "readOnlyHint": true,
            "openWorldHint": false,
            "destructiveHint": false
          }
        },
        {
          "name": "classes_find_resource",
          "title": "Find a venue, billing period, trainer, or pay rate",
          "description": "Resolve a NAME the operator said into an id, for four kinds of company-level records. Pick `kind`:\n\n- `place` — venues. Returns `{id, name, city, street, rooms: [{id, name, capacity}]}`. Rooms are inlined because picking a venue is usually followed by picking a room. Filters: name, city.\n- `billing_period` — billing periods, a.k.a. terms (e.g. \"Autumn 2026\"). Returns `{id, name, active, period_start, period_end}`; either date may be null, an open-ended period is valid. Filter: name. Match on the DATES, not just the name — a period covering the term you want may be named anything.\n- `trainer` — team members assignable to classes. Returns `{id, full_name, email, active, virtual}`. Filters: name, place_id, course_id. **Virtual trainers** are always included regardless of place/course filters — they are system-wide placeholders with `virtual: true`, a synthetic id (>= 9000000000000) and no email. Pick one when the operator says \"we'll decide later\", \"no trainer yet\", \"TBD\", \"unassigned\", \"guest\", \"external speaker\". Three ship by default: 'To be decided', 'Trainer unassigned', 'Guest trainer'.\n- `trainer_rate_type` — named pay rates (e.g. \"Hourly\", \"Per class\"). Returns `{id, name, minutes, type}`. This is the ONLY way to turn a rate the operator names into the `trainer_rate_type_id` that classes_update and sessions_update need — NEVER guess that id.\n\n`include_inactive` (place: n/a) defaults false. Sending a filter that does not apply to the chosen kind returns the list of filters that do. For PROGRAMMES use classes_find_courses, for CLASSES classes_find_classes, for people enrolled use bookings_find — those are separate, richer tools.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "kind"
            ],
            "properties": {
              "city": {
                "type": "string",
                "description": "kind=place only."
              },
              "kind": {
                "enum": [
                  "place",
                  "billing_period",
                  "trainer",
                  "trainer_rate_type"
                ],
                "type": "string",
                "description": "Which kind of record to resolve. 'place' = venue, 'billing_period' = billing period (a.k.a. term), 'trainer' = team member, 'trainer_rate_type' = named pay rate."
              },
              "name": {
                "type": "string",
                "description": "Substring match on the record's name. Applies to every kind."
              },
              "page": {
                "type": "integer",
                "minimum": 0,
                "description": "kind=place or trainer. Default 0."
              },
              "place_id": {
                "type": "integer",
                "description": "kind=trainer only — narrow to trainers associated with this venue.",
                "exclusiveMinimum": 0
              },
              "course_id": {
                "type": "integer",
                "description": "kind=trainer only — narrow to trainers associated with this programme.",
                "exclusiveMinimum": 0
              },
              "page_size": {
                "type": "integer",
                "maximum": 200,
                "minimum": 1,
                "description": "kind=place or trainer. Default 25, max 200. billing_period and trainer_rate_type are small bounded sets and are returned in full."
              },
              "company_id": {
                "type": "integer",
                "description": "Zooza company id to operate against. Optional: if the user has exactly one company, the server defaults to it — you can omit this field. With multiple companies, you MUST specify which; get the id list from `whoami.available_companies[].id`. If the user hasn't indicated which company they mean, ask them before guessing.",
                "exclusiveMinimum": 0
              },
              "include_inactive": {
                "type": "boolean",
                "description": "kind=trainer or billing_period. Default false — include former staff / deactivated periods."
              }
            },
            "additionalProperties": false
          },
          "annotations": {
            "readOnlyHint": true,
            "openWorldHint": false,
            "destructiveHint": false
          }
        },
        {
          "name": "classes_find_classes",
          "title": "Find classes (schedules)",
          "description": "Search this company's CLASSES — the scheduled groups inside a programme (a \"class\" / \"group\" / \"skupina\"; internally a *schedule*) — by name (substring) and resolve them to a `schedule_id`. Reach for this whenever the user names a specific group rather than a whole programme (\"the Nejaké class\", \"the Monday 5pm group\", \"her Wednesday ballet class\"), or whenever a downstream tool needs a `schedule_id` — most importantly `comms_send_message` targeting everyone in one class (`audience.schedule_id`). This is the missing middle rung between `classes_find_courses` (finds the PROGRAMME → `course_id`) and `sessions_find_events` (finds individual dated SESSIONS → `event_id`): a class is one recurring group within a programme, made of many sessions. Optionally narrow by `course_id` (classes inside one programme), `trainer_id`, `place_id`, `billing_period_id` (a.k.a. term; one id or up to 10), `day` of week, `registration_type`, `in_trial: true` (only classes currently offering a TRIAL), `active_only: true` (exclude classes whose schedule has ENDED), or `lead_only: true` (only lead-collection pipelines). To answer \"the latest classes that actually have sessions\" in ONE call, combine `with_sessions: true` (only classes whose schedule has ≥1 session) with `sort: \"created_desc\"` and a `page_size` — no need to scan `sessions_find_events`. `sort` also takes created_asc / date_asc / date_desc / name_asc / registrations_desc. Returns a slim list — `{schedule_id, name, course_id, start, end, time, trainer_id, trainer_name, place_id, place_name, room_id, duration_minutes, trainer_rate_type_id, capacity, registrations_count, sessions_count, status, in_trial, registration_url, billing_period_id, schedule_type}` — enough to disambiguate when several classes share a name, never enough to mutate. When COPYING an existing class, pass its `room_id`, `duration_minutes` and `trainer_rate_type_id` into `classes_preview_schedule` explicitly — otherwise the preview falls back to no room, the 60-minute default and no pay rate. `room_id` 0 = no specific room; `trainer_rate_type_id` 0 = none set (or hidden from your role). `sessions_count` is the class's number of sessions (a stored/materialised count — fine for overview and \"how many\", may lag a very recent edit; chain `sessions_find_events` for an exact live count). `schedule_type` tells a real class (`fixed_period`) from a lead pipeline (`lead_collection`) — use `lead_only: true` to find the pipeline `bookings_add_lead` needs. `registration_url` is the public link a prospect clicks to book that specific class (empty when the class isn't publicly bookable or the company has no registration widget); its programme/venue/room params are rebuilt from the class's live values, so it stays correct after a class is moved. `billing_period_id` 0 = no billing period. Combine filters in ONE call — e.g. `{place_id, in_trial: true, active_only: true}` returns the bookable trial classes at a venue in a single query; do not split them across separate calls. `course_id` is returned but not the course name (resolve it with `classes_find_courses` if you need it). `additional_trainers` lists the class's ADDITIONAL lecturers — people who work it alongside the main instructor in `trainer_id`/`trainer_name` — as `{trainer_id, trainer_name, role}`, `[]` when there are none. At class level this is the eligibility roster: it says who may work the class, NOT which sessions each one actually works — for that call `sessions_find_events` with the `schedule_id` and read each session's own `additional_trainers`. Roles render as `secondary` = \"Secondary instructor\", `assistant` = \"Assistant\", `helper` = \"Assistant instructor\", `trainer` = \"Instructor\". To change the roster use `trainers_add_helpers`. By default returns active + paused (inactive) classes; pass `include_archived: true` to search archived classes instead. Does NOT create or change classes (that is `classes_preview_schedule` → `classes_commit_class`) and does NOT list a class's ",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "properties": {
              "day": {
                "type": "integer",
                "maximum": 7,
                "minimum": 1,
                "description": "Day-of-week the class falls on (its start day): 1=Sunday, 2=Monday, … 7=Saturday (MySQL DAYOFWEEK convention)."
              },
              "name": {
                "type": "string",
                "description": "Substring match on the class (schedule) name, e.g. \"Nejaké\". Case- and accent-insensitive (DB collation utf8mb4_unicode_ci) — \"nejake\" matches \"Nejaké\", so you need not reproduce diacritics."
              },
              "page": {
                "type": "integer",
                "minimum": 0,
                "description": "0-based page index (default 0)."
              },
              "sort": {
                "enum": [
                  "created_desc",
                  "created_asc",
                  "date_asc",
                  "date_desc",
                  "name_asc",
                  "registrations_desc"
                ],
                "type": "string",
                "description": "Result ordering. created_desc = newest class first (the default), created_asc = oldest first, date_asc/date_desc by schedule start date, name_asc alphabetical, registrations_desc most-enrolled first. Use created_desc for \"the latest classes\"."
              },
              "in_trial": {
                "type": "boolean",
                "description": "Set true to return only classes that currently have a TRIAL enabled (the schedule in_trial flag). Omit to include all classes regardless of trial."
              },
              "place_id": {
                "type": "integer",
                "description": "Only classes at this venue. Resolve with classes_find_resource (kind:'place').",
                "exclusiveMinimum": 0
              },
              "course_id": {
                "type": "integer",
                "description": "Only classes inside this programme. Resolve the course_id first with classes_find_courses; never guess it.",
                "exclusiveMinimum": 0
              },
              "lead_only": {
                "type": "boolean",
                "description": "Set true to return only LEAD-COLLECTION schedules (schedule_type='lead_collection' — the lead pipelines that bookings_add_lead attaches leads to). Every row also carries schedule_type, so you can tell real classes apart from lead pipelines without this filter."
              },
              "page_size": {
                "type": "integer",
                "maximum": 200,
                "minimum": 1,
                "description": "Number of results per page (max 200)."
              },
              "company_id": {
                "type": "integer",
                "description": "Zooza company id to operate against. Optional: if the user has exactly one company, the server defaults to it — you can omit this field. With multiple companies, you MUST specify which; get the id list from `whoami.available_companies[].id`. If the user hasn't indicated which company they mean, ask them before guessing.",
                "exclusiveMinimum": 0
              },
              "trainer_id": {
                "type": "integer",
                "description": "Only classes this trainer is assigned to. Resolve with classes_find_resource (kind:'trainer').",
                "exclusiveMinimum": 0
              },
              "active_only": {
                "type": "boolean",
                "description": "Set true to exclude classes whose schedule has already ENDED (keeps not-yet-started and in-progress classes). Omit to include ended classes too."
              },
              "with_sessions": {
                "type": "boolean",
                "description": "Set true to return only classes that HAVE at least one session (schedule total_events > 0). Use this for \"classes that actually have sessions\" instead of scanning sessions_find_events."
              },
              "include_archived": {
                "type": "boolean",
                "description": "Default false → returns active + paused (inactive) classes. Set true to search ARCHIVED (retired) classes instead."
              },
              "billing_period_id": {
                "anyOf": [
                  {
                    "type": "integer",
                    "exclusiveMinimum": 0
                  },
                  {
                    "type": "array",
                    "items": {
                      "type": "integer",
                      "exclusiveMinimum": 0
                    },
                    "maxItems": 10,
                    "minItems": 1
                  }
                ],
                "description": "Only classes in this billing period (a.k.a. term) — or these. Resolve via classes_find_resource kind:'billing_period'."
              },
              "registration_type": {
                "enum": [
                  "single",
                  "full2",
                  "open"
                ],
                "type": "string",
                "description": "Filter by the parent course's registration model: 'single' = drop-in / per-session, 'full2' = full-course enrollment, 'open' = open-ended / membership."
              }
            },
            "additionalProperties": false
          },
          "annotations": {
            "readOnlyHint": true,
            "openWorldHint": false,
            "destructiveHint": false
          }
        },
        {
          "name": "bookings_find",
          "title": "Find bookings (registrations) and clients",
          "description": "Find this company's bookings — a client's enrolment in a class (registration; \"prihláška\"/\"Buchung\") — and resolve them to a `registration_id`, or a client to a `user_id`. Use for \"is X enrolled?\", \"who's in this class?\", \"who hasn't paid?\" (set `payment_status:[\"unpaid\",\"partially_paid\"]`), and \"find client X\". Filter by `search` (loose: name/email/phone) or `name`, by `course_id`/`schedule_id` (resolve via classes_find_courses / classes_find_classes), `billing_period_id` (a term/season), `user_id`, `registration_id` (one exact booking by its id), `place_id` (venue), `status`, `payment_status`, or booking date with `created_from`/`created_to` (the \"new registrations this week\" lever). `distinct:true` returns one row per client (→ `user_id`) for person lookups. Chain a result's `registration_id` or `user_id` straight into comms_send_message (`audience.registration_id` / `audience.user_id`). Each booking row carries when its class meets — `class_name`, `class_weekday` (day of the first session), `class_time` (HH:MM) — so \"his Tuesday class\" needs no classes_find_classes call — and `created` (when the booking was made, for \"most recent\"); programme names are not returned (classes_find_courses). Defaults to active enrolments; guest, waitlist, canceled and deleted are excluded unless you pass `status`. A row's `status` may read `pre_*` (e.g. pre_registered = not yet confirmed); its group filter (`registered`) already includes it. `include_extra_fields:true` adds each booking's custom booking-form answers (allergies, \"how did you hear about us\"…). Money per booking: `payment_debt` = total CHARGED (negative), NOT what is still owed; `payment_paid` = amount received; `payment_balance` = paid + debt (negative = still owed, positive = overpaid). Sum `payment_paid` for income, `payment_balance` for outstanding debt. Read-only — does not create or change bookings.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "properties": {
              "name": {
                "type": "string",
                "description": "Enrolled person's name (substring, accent-insensitive). Blank for a kids' class? Try `search` (matches the parent too)."
              },
              "page": {
                "type": "integer",
                "minimum": 0,
                "description": "0-based page index (default 0)."
              },
              "search": {
                "type": "string",
                "description": "Broad freetext: matches the enrolled person's or account holder's name, email, phone, or id (substring, accent-insensitive). Best for a loose term. Use `name` instead to match only the enrolled person's name."
              },
              "status": {
                "type": "array",
                "items": {
                  "enum": [
                    "registered",
                    "guest",
                    "waitlist",
                    "canceled",
                    "late",
                    "trial_not_started",
                    "trial_started",
                    "trial_ended",
                    "trial_won",
                    "trial_lost",
                    "auto_unenrolled"
                  ],
                  "type": "string"
                },
                "description": "Enrolment statuses to include (piped to the api). Omit → confirmed enrolments only (registered, late, trial_*); guest, waitlist, canceled and deleted are excluded — pass them to widen. `auto_unenrolled` = canceled by the unpaid automation."
              },
              "user_id": {
                "type": "integer",
                "description": "All bookings of one client, by their user id.",
                "exclusiveMinimum": 0
              },
              "distinct": {
                "type": "boolean",
                "description": "true → one row per CLIENT (deduped by account-holder user_id), person fields only — use to find a person or resolve a name to a single user_id. Default false → one row per booking."
              },
              "place_id": {
                "type": "integer",
                "description": "Bookings at this venue. Resolve via classes_find_resource (kind:'place').",
                "exclusiveMinimum": 0
              },
              "course_id": {
                "type": "integer",
                "description": "Bookings in this programme. Resolve the id with classes_find_courses; never guess it.",
                "exclusiveMinimum": 0
              },
              "page_size": {
                "type": "integer",
                "minimum": 1,
                "description": "Number of results per page (max 200)."
              },
              "company_id": {
                "type": "integer",
                "description": "Zooza company id to operate against. Optional: if the user has exactly one company, the server defaults to it — you can omit this field. With multiple companies, you MUST specify which; get the id list from `whoami.available_companies[].id`. If the user hasn't indicated which company they mean, ask them before guessing.",
                "exclusiveMinimum": 0
              },
              "created_to": {
                "type": "string",
                "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
                "description": "Only bookings CREATED on/before this date (YYYY-MM-DD, inclusive). Pair with created_from for a window."
              },
              "schedule_id": {
                "type": "integer",
                "description": "Bookings in this class (schedule). Resolve the id with classes_find_classes; never guess it.",
                "exclusiveMinimum": 0
              },
              "created_from": {
                "type": "string",
                "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
                "description": "Only bookings CREATED on/after this date (YYYY-MM-DD, inclusive). The \"new registrations\" lever — e.g. created_from=<Monday> for this week's sign-ups. You supply the literal date; the api does no relative-date parsing."
              },
              "inactive_only": {
                "type": "boolean",
                "description": "true → ONLY clients marked inactive (former clients). Default already includes them; never set it to widen."
              },
              "payment_status": {
                "type": "array",
                "items": {
                  "enum": [
                    "paid",
                    "unpaid",
                    "partially_paid",
                    "overpaid"
                  ],
                  "type": "string"
                },
                "description": "Payment state — the \"who hasn't paid\" lever, e.g. [\"unpaid\",\"partially_paid\"]."
              },
              "registration_id": {
                "type": "integer",
                "description": "ONE exact booking by id, whatever its status (unlike `search`, which substring-matches: 45 also hits 145).",
                "exclusiveMinimum": 0
              },
              "billing_period_id": {
                "type": "integer",
                "description": "Bookings in this billing period (term/season). Resolve via classes_find_resource (kind:'billing_period'); one period per call.",
                "exclusiveMinimum": 0
              },
              "include_extra_fields": {
                "type": "boolean",
                "description": "true → each booking gets `extra_fields: [{field, label, value}]`: filled custom booking-form answers, labelled per programme. Not with `distinct`."
              }
            },
            "additionalProperties": false
          },
          "annotations": {
            "readOnlyHint": true,
            "openWorldHint": false,
            "destructiveHint": false
          }
        },
        {
          "name": "sessions_find_events",
          "title": "Find events (scheduled sessions)",
          "description": "List **events** (scheduled sessions of classes) in the caller's company. Use this whenever you need to resolve an `event_id` from natural language (\"my next class,\" \"Monday's ballet,\" \"all swim sessions this week,\" \"Sarah's classes tomorrow\") before chaining into another tool like `sessions_get_attendance` or `sessions_mark_attendance`. With no filters at all, returns the company's **upcoming** scheduled sessions (from today onward, earliest first) — not just the caller's — so a bare call stays near-term instead of dumping years of history. **Any** filter you add returns the FULL matching set, including PAST sessions: pass a `schedule_id` to get a class's entire history (past + future), or use `from`/`to` for an explicit window. There is no `past` flag — past sessions are just a range with `from` set early (or omitted alongside another scope). Filters cover date window, course, schedule, trainer, place, room, segment, billing period, status, and event-type (over-capacity, substituted, cancelled, etc.). Each returned row includes denormalised names (trainer, place, event-number), the event's date and duration, `capacity`, `free_spots` (remaining places = capacity − going, or null for open/unlimited events — use this to answer \"which sessions still have space\"), and an `attendance_counts` object (`going`, `attended`, `noshow`, `canceled`, `canceled_late`, `waitlist`). Read-only — does not modify events.\n\n**Additional lecturers.** Two separate fields, and they mean different things. `additional_trainers` = who is actually working THAT session alongside the main instructor. `class_additional_trainers` = the parent class's roster of people ELIGIBLE to work it, who are not necessarily on that session. Answer \"who is helping on Wednesday?\" from `additional_trainers`, never from the roster. Both are always arrays (`[]` = nobody), and neither includes the main instructor, who stays in `trainer_id`/`trainer_name`. Each entry is `{trainer_id, trainer_name, role}`; `role` is the raw enum — show it to operators as `secondary` = \"Secondary instructor\", `assistant` = \"Assistant\", `helper` = \"Assistant instructor\", `trainer` = \"Instructor\". `trainer_name` can be null if the lookup failed — that is not proof the trainer is gone. To CHANGE any of this, use `trainers_add_helpers`.\n\n**Trainer pay (payroll).** `pay` = `{rate_type_id, rate_type, payout_percentage, minutes, main_trainer}`; each `additional_trainers[]` entry has its own `pay`. Each trainer's `{amount}` is calculated by Zooza and equals the trainer report — use it as-is, never recompute it from rates. `amount: 0` = that trainer has no rate set for the session's rate type; `amount: null` = hidden from this caller (a trainer sees only their own). `payout_percentage` is a 0–1 fraction (cancelled sessions are 0). `pay` is null when the session has no rate type or this caller may not see financial data — never report that as 0. `main_trainer` is null when the session has no main instructor. For one trainer's monthly cost, sum `pay.main_trainer.amount` ONLY on rows whose `trainer_id` is that trainer, plus `pay.amount` of THEIR entry in `additional_trainers[]` — the `trainer_id` filter also returns sessions they are merely linked to (substituted away, class roster), which pay them nothing. The roster (`class_additional_trainers`) carries no pay.\n\n**Critical: \"my sessions\" / \"what am I teaching\" / \"my classes today\".** When the user is asking for THEIR OWN sessions (any first-person framing), you MUST pass `trainer_id` matching `whoami.identity.user_id`. Without it, this tool returns every trainer's events in the company — which is almost never what the user meant when they said \"my.\" The only exception: when the caller's role is `member` or `external_member`, the server silently auto-scopes to their assignments anyway; `meta.scoped_to` in the response flags when this has happened.\n\nFilter notes:\n- `trainer_id` matches across FIVE trainer relationships including pre-substitution and schedule-",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "properties": {
              "to": {
                "type": "string",
                "description": "YYYY-MM-DD, inclusive upper bound on event date."
              },
              "ids": {
                "type": "array",
                "items": {
                  "type": "integer",
                  "exclusiveMinimum": 0
                },
                "minItems": 1,
                "description": "Specific event (session) ids to fetch. Bypasses the upcoming/scheduled defaults so the requested rows come back as-is."
              },
              "date": {
                "type": "string",
                "description": "YYYY-MM-DD, exact-day match."
              },
              "from": {
                "type": "string",
                "description": "YYYY-MM-DD, inclusive lower bound on event date. To see PAST sessions, set this (e.g. from a schedule's start) — there is no `past` flag; past + future is simply an unbounded-below range."
              },
              "page": {
                "type": "integer",
                "minimum": 0,
                "description": "0-based page index (default 0)."
              },
              "sort": {
                "enum": [
                  "date_asc",
                  "date_desc",
                  "event_no_asc",
                  "event_no_desc",
                  "created_asc",
                  "created_desc"
                ],
                "type": "string",
                "description": "Result ordering. date_asc/date_desc sort by session date; event_no_asc/event_no_desc by event number; created_asc/created_desc by record creation time. Default date_asc."
              },
              "type": {
                "enum": [
                  "over_capacity",
                  "under_capacity",
                  "custom_replacement",
                  "rescheduled",
                  "substituted",
                  "cancelled"
                ],
                "type": "string",
                "description": "Event-shape filter. \"cancelled\" surfaces events explicitly cancelled (server-side maps to status=unplanned). Other values target dashboard cases: oversold, undersold, ad-hoc replacements, etc."
              },
              "status": {
                "enum": [
                  "scheduled",
                  "unplanned",
                  "finished",
                  "any"
                ],
                "type": "string",
                "description": "Event lifecycle status. Default \"scheduled\" (matches dashboard; attendance can only be tracked on scheduled events). \"unplanned\" covers cancelled events. \"any\" expands to (scheduled, unplanned)."
              },
              "room_id": {
                "$ref": "#/properties/course_id",
                "description": "Restrict to sessions held in one or more specific rooms within a venue."
              },
              "place_id": {
                "$ref": "#/properties/course_id",
                "description": "Restrict to sessions at one or more venues (places). Resolve: classes_find_resource kind:place."
              },
              "course_id": {
                "anyOf": [
                  {
                    "type": "integer",
                    "exclusiveMinimum": 0
                  },
                  {
                    "type": "array",
                    "items": {
                      "type": "integer",
                      "exclusiveMinimum": 0
                    },
                    "minItems": 1
                  }
                ],
                "description": "Restrict to sessions of one or more programmes (courses). Resolve with classes_find_courses."
              },
              "page_size": {
                "type": "integer",
                "maximum": 200,
                "minimum": 1,
                "description": "Number of results per page (max 200)."
              },
              "company_id": {
                "type": "integer",
                "description": "Zooza company id to operate against. Optional: if the user has exactly one company, the server defaults to it — you can omit this field. With multiple companies, you MUST specify which; get the id list from `whoami.available_companies[].id`. If the user hasn't indicated which company they mean, ask them before guessing.",
                "exclusiveMinimum": 0
              },
              "segment_id": {
                "type": "array",
                "items": {
                  "type": "integer",
                  "minimum": 0
                },
                "minItems": 1,
                "description": "Schedule-segment id(s). Pass [0] to match events with NO segment assignment (sentinel)."
              },
              "trainer_id": {
                "$ref": "#/properties/course_id",
                "description": "Restrict to sessions an instructor is connected to (one or more). Resolve: classes_find_resource kind:trainer. See the trainer filter note above — this matches across five trainer relationships."
              },
              "schedule_id": {
                "type": "integer",
                "description": "Restrict to sessions belonging to one class. Resolve with classes_find_classes.",
                "exclusiveMinimum": 0
              },
              "billing_period_id": {
                "$ref": "#/properties/course_id",
                "description": "Restrict to sessions in one or more billing periods (a.k.a. terms). Resolve: classes_find_resource kind:billing_period."
              }
            },
            "additionalProperties": false
          },
          "annotations": {
            "readOnlyHint": true,
            "openWorldHint": false,
            "destructiveHint": false
          }
        },
        {
          "name": "sessions_get_attendance",
          "title": "View attendance for one class session",
          "description": "Read who's enrolled in **one event** (a single session of a class) and their current attendance, so you can show the list and then mark it. Pass an `event_id`; the tool returns each enrolled attendee, their current attendance value (if already marked), and per-row context the LLM needs to mark attendance correctly: `allowed_statuses[]` (the statuses the **current caller** is permitted to set for THIS attendee), `is_trial` / `is_last_trial_session` flags, warnings about cross-company or cascade-sensitive (full2) cases, and — for open-type registrations only — `entrance_voucher` info (how many unused vouchers the attendee has, and whether one is already spent on this event). Use this **before** `sessions_mark_attendance` whenever the user has not already dictated the full list of attendees and marks — typically: \"open attendance for X,\" \"who's enrolled in tomorrow's class,\" \"show me Monday's attendance.\" If the event's course has attendance tracking disabled, the tool returns an `attendance_tracking_disabled` error rather than an empty list. This tool is read-only — it never writes attendance, notes, or summaries.\n\n**Talking to the user — vocabulary.** Zooza's customers are activity brands — dance, swim, language, sport, STEAM schools. Call this **\"attendance,\" \"the attendance list,\" \"the class list,\" or \"who's coming.\"** Don't expose the tool name or use sports/HR jargon (\"roster\") — it reads as foreign to these businesses. When the user asks to \"see attendance\" / \"open the register\" / \"who's in Monday's class,\" just call this tool and render the list directly.\n\n**Attendee vs client (critical for children's-class programmes).** Each row carries TWO people:\n- `attendee` — who actually shows up to the session. Often a child (Zooza data-model name: `customer`). May have `user_id: 0` when they aren't a registered account holder, which is normal for children. `attendee.date_of_birth` is available.\n- `client` — the account holder / payer (Zooza data-model name: `buyer`). Usually the parent. Has a real `user_id`. Contact info (`email`, `phone`) lives on the client when the attendee is a child; copy from client when speaking to / messaging the family.\n- `display_name` — a pre-formatted one-line label. When attendee == client (adult attending themselves), just the one name. When they differ, `attendee_name (client_name)` — e.g. `\"Jozko Jozko (Martin Rapavy)\"`. Use this when listing attendees; the LLM doesn't need to compose it from scratch.\n\nResponse shape notes:\n- `allowed_statuses[]` already factors in the caller's role, `company.trainer_attendance_management`, and the row's cross-company state. Do not propose a status not in this array — refuse locally and explain instead of calling `sessions_mark_attendance` to discover the constraint.\n- `is_last_trial_session` is currently `null` in V1 (derivation requires either a new api-v1 field or extra per-row lookups; deferred). Treat `is_trial=true` as the trigger for caution — a future enrichment will tighten this.\n- `entrance_voucher` is non-null only when `course.registration_type=\"open\"`. Check it before setting `sessions_mark_attendance`'s `use_voucher=true` on a `going` write.\n- `additional_trainers` — who works THIS session alongside the main instructor, as `{trainer_id, trainer_name, role}` (`secondary` = \"Secondary instructor\", `assistant` = \"Assistant\", `helper` = \"Assistant instructor\", `trainer` = \"Instructor\"); `[]` = nobody. `trainer_name` null = lookup failed, not a missing trainer. For pay, use `sessions_find_events`.\n- `summary` block at the top level surfaces whether this event already has a public / internal session summary (`public_set` / `internal_set`), whether the public one is locked, and whether the caller's role is permitted to write summaries (`writable_by_caller`). After the user has marked attendance, the LLM can use this to offer `sessions_add_summary` as a follow-up when appropriate.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "event_id"
            ],
            "properties": {
              "event_id": {
                "type": "integer",
                "description": "Target event id (one session of a class). Required.",
                "exclusiveMinimum": 0
              },
              "company_id": {
                "type": "integer",
                "description": "Zooza company id to operate against. Optional: if the user has exactly one company, the server defaults to it — you can omit this field. With multiple companies, you MUST specify which; get the id list from `whoami.available_companies[].id`. If the user hasn't indicated which company they mean, ask them before guessing.",
                "exclusiveMinimum": 0
              }
            },
            "additionalProperties": false
          },
          "annotations": {
            "readOnlyHint": true,
            "openWorldHint": false,
            "destructiveHint": false
          }
        },
        {
          "name": "sessions_mark_attendance",
          "title": "Mark per-attendee attendance on one event",
          "description": "Record per-attendee attendance for **one event** (a single session of a class — e.g. \"Monday Ballet on 2026-06-03 at 09:00\"). Pass an `event_id` and a list of attendees, each with their own attendance value (`attended`, `noshow`, `canceled`, `going`, `ignore`). Each value is set on **that one attendee for that one event**, never on the event as a whole. The tool writes each attendee individually and returns a per-row outcome. Use this **after** you already know the event and the attendees you want to mark — typically because the user dictated them or because you previously called `sessions_get_attendance`. If you don't yet know which event or who's enrolled, call `sessions_find_events` or `sessions_get_attendance` first. This tool does **not** cancel or reschedule the event itself or handle trialist follow-ups — those are separate tools.\n\n**Follow-up chaining.** The response includes a top-level `summary` block with `public_set` / `internal_set` / `writable_by_caller` flags. After a successful mark, if `summary.public_set=false` AND `summary.writable_by_caller=true`, proactively offer the user the option to write a parent-visible recap via `sessions_add_summary`. If `writable_by_caller=false`, don't offer (the caller's role can't write summaries). If `public_set=true`, don't volunteer an update unless asked.\n\n**Trial follow-ups.** A per-row `pending_action: \"trial_followup\"` (with `todo_id`) means that attendee just completed their trial by being marked `attended` — a follow-up (parent feedback + continuing-class recommendation) is now pending. Tell the user it's waiting and offer to handle it; the attendance skill resolves it against the todo. This tool only surfaces the hint — it does not orchestrate the follow-up. If the field is absent, there's nothing pending.\n\nAttendance value semantics:\n- `attended` — attendee was present.\n- `noshow` — attendee did not show up and did not warn.\n- `canceled` — attendee cancelled (admin-recorded). Triggers server-side make-up credit creation automatically when the programme allows it; do not call any other tool to issue credits.\n- `going` — pre-event RSVP / \"planning to attend.\" Restricted for member/receptionist roles under `trainer_attendance_management=\"limited\"`.\n- `ignore` — hide this event from the attendee's history (Zooza-specific; rare).\n\n`use_voucher` is a tentative V1 design: only meaningful when `attendance=\"going\"` AND `course.registration_type=\"open\"`. Check the attendee's `entrance_voucher.unused_entrance_vouchers > 0` (from `sessions_get_attendance`) before setting it to true; the server silently downgrades to cash debt when no voucher is available.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "event_id",
              "attendees"
            ],
            "properties": {
              "event_id": {
                "type": "integer",
                "description": "Target event id (one session of a class). Required.",
                "exclusiveMinimum": 0
              },
              "attendees": {
                "type": "array",
                "items": {
                  "type": "object",
                  "required": [
                    "registration_id",
                    "attendance"
                  ],
                  "properties": {
                    "attendance": {
                      "enum": [
                        "attended",
                        "noshow",
                        "canceled",
                        "going",
                        "ignore"
                      ],
                      "type": "string",
                      "description": "This attendee's attendance for this one event: 'attended' = was present; 'noshow' = absent without warning; 'canceled' = admin-recorded cancellation (auto-issues make-up credit when the programme allows); 'going' = pre-event RSVP/planning to attend; 'ignore' = hide this event from the attendee's history (rare)."
                    },
                    "use_voucher": {
                      "type": "boolean",
                      "description": "Tentative V1. Only meaningful when attendance='going' AND the course.registration_type='open'. Set true to spend an entrance voucher instead of accruing cash debt; check the attendee's entrance_voucher.unused_entrance_vouchers > 0 first (the server silently downgrades to cash debt when none is available)."
                    },
                    "registration_id": {
                      "type": "integer",
                      "description": "Identifies the enrolled attendee to mark — one registration row per attendee on this event (from sessions_get_attendance). Not the event id, not the client's user id.",
                      "exclusiveMinimum": 0
                    },
                    "cancellation_reason": {
                      "type": "string",
                      "description": "Free-text reason accompanying a cancellation; only meaningful when attendance='canceled'."
                    }
                  },
                  "additionalProperties": false
                },
                "minItems": 1,
                "description": "Per-attendee marks. At least one item required. Each item targets ONE attendee on the event by registration_id; the attendance value is set per attendee, not on the event as a whole."
              },
              "company_id": {
                "type": "integer",
                "description": "Zooza company id to operate against. Optional: if the user has exactly one company, the server defaults to it — you can omit this field. With multiple companies, you MUST specify which; get the id list from `whoami.available_companies[].id`. If the user hasn't indicated which company they mean, ask them before guessing.",
                "exclusiveMinimum": 0
              }
            },
            "additionalProperties": false
          },
          "annotations": {
            "readOnlyHint": false,
            "openWorldHint": false,
            "idempotentHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "classes_update",
          "title": "Edit classes (preview, then apply)",
          "description": "Edit one or more existing classes (a \"class\"/\"timetable\" is the recurring group within a programme) — name, price, registration fee, capacity, make-up/replacement extra capacity (\"počet miest navyše pre náhradné hodiny\" → extra_capacity/extra_capacity_usage, NOT registrations_cap, which caps the NUMBER OF REGISTRATIONS), registration-count cap, billing period, online-registration, trial lessons, status — and/or instructor, venue, or session duration.\n\nTWO CALLS. First WITHOUT `token`: returns a preview of exactly what changes and how many sessions are affected, plus a single-use token. Show it to the operator and get explicit approval. Then call again with `token` + `confirmed: true` to apply — send nothing else, the change is frozen in the plan. To alter anything, run the first call again.\n\nChanging instructor/venue/duration forces a `session_scope` choice about existing sessions: \"upcoming\" (this class + its future sessions — usually what people mean), \"all\" (every session incl. past), or \"class_only\" (re-advertise the class but leave existing sessions on their old value — the #1 cause of \"I changed it but the sessions still show the old value\", so only pick it deliberately). This scope is the OPERATOR's call, not yours: when they haven't stated one, PRESENT the three options and their consequences and let them choose — do NOT silently pick a scope, and do NOT stall. If the operator asks what a cascade edit will do before applying, explain this same taxonomy.\n\nHandles one class or many at once. To edit specific individual sessions (move one date, change one session's room), use sessions_update instead. To cancel sessions, use the cancellation tools.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "properties": {
              "token": {
                "type": "string",
                "description": "Omit on the FIRST call — that call previews the change and returns a token. Pass the token back on the SECOND call to apply the previewed change. Single-use, expires in 15 minutes; if it is expired or already used, run the preview again."
              },
              "changes": {
                "type": "object",
                "properties": {
                  "name": {
                    "type": "string",
                    "description": "Class (schedule) display name — the label operators and clients see for this recurring group."
                  },
                  "note": {
                    "type": "string",
                    "description": "Internal, staff-only note on the class. Not shown to clients."
                  },
                  "price": {
                    "type": "number",
                    "minimum": 0,
                    "description": "Total price for the class/period, used when the programme prices by total (full2/total_price or single registration types). Stored verbatim; `0` is saved as-is with no inheritance from the parent programme."
                  },
                  "status": {
                    "enum": [
                      "active",
                      "inactive",
                      "archive"
                    ],
                    "type": "string",
                    "description": "Class lifecycle state: `active` (live/bookable), `inactive` (hidden/paused), `archive` (retired)."
                  },
                  "room_id": {
                    "type": "integer",
                    "minimum": 0,
                    "description": "Room within the venue. Must be changed together with place_id."
                  },
                  "capacity": {
                    "type": "integer",
                    "description": "Basic maximum number of seats per session. This is the ordinary class size; it does NOT include the make-up buffer (see extra_capacity) and is unrelated to the registration-count limit (see registrations_cap).",
                    "exclusiveMinimum": 0
                  },
                  "duration": {
                    "type": "integer",
                    "description": "Session length in minutes. CASCADE field — changing it requires session_scope.",
                    "exclusiveMinimum": 0
                  },
                  "place_id": {
                    "type": "integer",
                    "description": "Venue (place) for the class. Resolve: classes_find_resource kind:place. Must be changed together with room_id. CASCADE field — changing it requires session_scope.",
                    "exclusiveMinimum": 0
                  },
                  "course_id": {
                    "type": "integer",
                    "description": "Move the class to a different PROGRAMME (course). GUARDED — rewrites ALL sessions AND all registrations (irreversible); requires confirm_course_change: true.",
                    "exclusiveMinimum": 0
                  },
                  "trainer_id": {
                    "type": "integer",
                    "description": "Instructor assigned to the class. Resolve: classes_find_resource kind:trainer. CASCADE field — changing it requires session_scope.",
                    "exclusiveMinimum": 0
                  },
                  "unit_price": {
                    "type": "number",
                    "minimum": 0,
                    "description": "Per-session price, used when the programme prices per session (full2/unit_price or open registration types). Stored verbatim; `0` is saved as-is with no inheritance from the parent programme."
                  },
                  "description": {
                    "type": "string",
                    "description": "Public description of the class shown to clients on the registration page."
                  },
                  "trial_enabled": {
                    "type": "boolean",
                    "description": "Whether this class accepts trial lessons. Only effective when the programme allows trials (classes_update_course_settings)."
                  },
                  "extra_capacity": {
                    "type": "integer",
                    "minimum": 0,
                    "description": "Extra seats reserved for make-up / replacement (SK/CZ: náhradné/náhrady) sessions — the \"Extra capacity for make-up sessions\" setting. Lets make-up attendees be booked ABOVE the class's basic `capacity`. `0` = no per-class make-up buffer. How it combines with the company-wide global make-up default is controlled by extra_capacity_usage. This is the correct field for \"počet miest navyše pre náhradné hodiny\" — NOT registrations_cap."
                  },
                  "registration_fee": {
                    "type": "number",
                    "minimum": 0,
                    "description": "One-time enrollment fee charged on top of the class price. Stored verbatim."
                  },
                  "billing_period_id": {
                    "type": "integer",
                    "description": "Billing period (a.k.a. term) this class belongs to. Resolve: classes_find_resource kind:billing_period.",
                    "exclusiveMinimum": 0
                  },
                  "registrations_cap": {
                    "type": "integer",
                    "minimum": 0,
                    "description": "Cap on the NUMBER OF REGISTRATIONS (bookings) this class accepts — NOT seats, and NOT make-up capacity. One registration can occupy several seats (e.g. a birthday party = 1 registration holding 7 seats). `0` = no limit (the normal default); N caps it at N registrations. NOTHING to do with make-up (náhrady) sessions — use extra_capacity. Only for genuine multi-seat-per-registration scenarios."
                  },
                  "online_registration": {
                    "type": "boolean",
                    "description": "Whether clients can self-register for this class online. `false` removes it from public registration."
                  },
                  "extra_capacity_usage": {
                    "enum": [
                      "add",
                      "replace"
                    ],
                    "type": "string",
                    "description": "How extra_capacity combines with the company-wide global make-up capacity default. `add` = the per-class buffer is ADDED on top of the global (make-up ceiling = capacity + extra_capacity + global); `replace` = the per-class buffer REPLACES the global (global ignored). Mirrors the make-up panel's \"Add to global setting\" / \"Replace global settings\" radios. When a class has never had it set, Zooza treats it as `add`."
                  },
                  "trainer_rate_type_id": {
                    "type": "integer",
                    "minimum": 0,
                    "description": "Trainer PAY-RATE type for this class (what the instructor is paid, not what clients pay). Resolve: classes_find_resource kind:trainer_rate_type. CASCADE field — changing it requires session_scope."
                  }
                },
                "description": "Required on the FIRST call. The fields to change — at least one.",
                "additionalProperties": false
              },
              "confirmed": {
                "type": "boolean",
                "description": "Required (true) on the apply call, alongside `token`. Asserts that you have SHOWN the user the preview from the first call and they approved it — not that you believe the change is correct. If the user has not seen the preview, show it and ask before setting this. Must be omitted on the preview call."
              },
              "company_id": {
                "type": "integer",
                "description": "Zooza company id to operate against. Optional: if the user has exactly one company, the server defaults to it — you can omit this field. With multiple companies, you MUST specify which; get the id list from `whoami.available_companies[].id`. If the user hasn't indicated which company they mean, ask them before guessing.",
                "exclusiveMinimum": 0
              },
              "schedule_ids": {
                "type": "array",
                "items": {
                  "type": "integer",
                  "exclusiveMinimum": 0
                },
                "minItems": 1,
                "description": "Required on the FIRST call. One or many class (schedule) ids. Resolve by name with classes_find_classes."
              },
              "session_scope": {
                "enum": [
                  "class_only",
                  "upcoming",
                  "all"
                ],
                "type": "string",
                "description": "REQUIRED when changing instructor/venue/duration. 'upcoming' = the class + its future sessions (usual); 'all' = every session; 'class_only' = re-advertise the class only, existing sessions keep their old value (warn the operator — usually NOT what they want)."
              },
              "confirm_course_change": {
                "type": "boolean",
                "description": "REQUIRED true to change changes.course_id — reprogramming a class rewrites ALL its sessions AND all registrations (irreversible). Only set after the operator explicitly asked to move the class to a different programme."
              }
            },
            "additionalProperties": false
          },
          "annotations": {
            "readOnlyHint": false,
            "openWorldHint": false,
            "idempotentHint": false,
            "destructiveHint": false
          }
        },
        {
          "name": "sessions_update",
          "title": "Edit specific sessions (preview, then apply)",
          "description": "Edit specific individual sessions (events) of a class, OR add new sessions to a class. Two modes, one tool.\n\nNOT for a change that holds from a date onward or for every session (\"from next week Jana teaches the Monday class\", \"the class moves to Room B\") — that is ONE classes_update call with session_scope ('upcoming' or 'all'), never a per-session edit of each date.\n\nEDIT-MODE — pass `event_ids` + `changes`: reschedule a session's date/time, or change a hand-picked session's instructor, venue/room, block, or duration. Works on one session or a chosen set.\n\nADD-MODE — pass `schedule_id` + `sessions`: CREATE one or more new sessions on an existing class (e.g. \"add one more session at the end\", \"add a make-up class on 2026-05-04\"). Each new session needs a `date`; its time, duration, trainer, venue and room default from the class. To append after the last session, first resolve the class's latest session with sessions_find_events, then pass the next date. New sessions are created billable so a priced class keeps charging.\n\nThe two modes are mutually exclusive — send event_ids/changes OR schedule_id/sessions, never both.\n\nTWO CALLS either way. First WITHOUT `token`: returns a preview (per-session before→after for edits, or the list of sessions to be created for adds) plus a single-use token. Show it to the operator and get explicit approval (and, if `notify` is set, confirm that clients will be emailed). Then call again with `token` + `confirmed: true` to apply — send nothing else, the plan is frozen.\n\nUse EDIT-MODE when the user points at particular sessions (\"move next Tuesday's class to Wednesday 5pm\", \"give Friday's session to Jana\"). To cancel sessions, use the cancellation tools — this tool does not cancel.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "properties": {
              "token": {
                "type": "string",
                "description": "Omit on the FIRST call — that call previews the change and returns a token. Pass the token back on the SECOND call to apply the previewed change. Single-use, expires in 15 minutes; if it is expired or already used, run the preview again."
              },
              "notify": {
                "type": "boolean",
                "description": "Default false. true emails enrolled clients — confirm with the operator first. Set on the FIRST call (frozen into the plan)."
              },
              "changes": {
                "type": "object",
                "properties": {
                  "room_id": {
                    "type": "integer",
                    "minimum": 0,
                    "description": "Room within the venue (0 = none); send with place_id."
                  },
                  "segment": {
                    "anyOf": [
                      {
                        "type": "integer",
                        "minimum": 0
                      },
                      {
                        "type": "string"
                      }
                    ],
                    "description": "Block: existing segment id (int), a new block name (string, auto-created), or 0 to clear."
                  },
                  "duration": {
                    "type": "integer",
                    "description": "New session length in minutes.",
                    "exclusiveMinimum": 0
                  },
                  "place_id": {
                    "type": "integer",
                    "description": "New venue; send with room_id. Resolve via classes_find_resource kind:'place'.",
                    "exclusiveMinimum": 0
                  },
                  "reschedule": {
                    "anyOf": [
                      {
                        "type": "object",
                        "required": [
                          "mode",
                          "date"
                        ],
                        "properties": {
                          "date": {
                            "type": "string",
                            "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
                            "description": "New session date, YYYY-MM-DD."
                          },
                          "mode": {
                            "type": "string",
                            "const": "set",
                            "description": "Explicit date (+ optional time)."
                          },
                          "time": {
                            "type": "string",
                            "pattern": "^\\d{2}:\\d{2}$",
                            "description": "HH:MM. Omit → keep each session's time."
                          }
                        },
                        "additionalProperties": false
                      },
                      {
                        "type": "object",
                        "required": [
                          "mode",
                          "time"
                        ],
                        "properties": {
                          "mode": {
                            "type": "string",
                            "const": "unify_time",
                            "description": "Same time for all, dates unchanged."
                          },
                          "time": {
                            "type": "string",
                            "pattern": "^\\d{2}:\\d{2}$",
                            "description": "HH:MM for every selected session."
                          }
                        },
                        "additionalProperties": false
                      },
                      {
                        "type": "object",
                        "required": [
                          "mode"
                        ],
                        "properties": {
                          "days": {
                            "type": "integer",
                            "description": "Days; negative = earlier."
                          },
                          "mode": {
                            "type": "string",
                            "const": "shift",
                            "description": "Relative offset (days and/or minutes)."
                          },
                          "minutes": {
                            "type": "integer",
                            "description": "Minutes; negative = earlier."
                          }
                        },
                        "additionalProperties": false
                      }
                    ],
                    "description": "Move to a new date/time: set (explicit date), unify_time (same time, existing dates) or shift (relative offset)."
                  },
                  "trainer_id": {
                    "type": "integer",
                    "description": "New instructor. Resolve via classes_find_resource kind:'trainer'.",
                    "exclusiveMinimum": 0
                  },
                  "trainer_rate_type_id": {
                    "type": "integer",
                    "minimum": 0,
                    "description": "Instructor pay-rate type. Resolve via classes_find_resource kind:'trainer_rate_type'."
                  }
                },
                "description": "EDIT-MODE. The edits to apply to `event_ids`.",
                "additionalProperties": false
              },
              "sessions": {
                "type": "array",
                "items": {
                  "type": "object",
                  "required": [
                    "date"
                  ],
                  "properties": {
                    "date": {
                      "type": "string",
                      "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
                      "description": "New session date, YYYY-MM-DD."
                    },
                    "time": {
                      "type": "string",
                      "pattern": "^\\d{2}:\\d{2}$",
                      "description": "Start time HH:MM. Omit → class default."
                    },
                    "duration": {
                      "type": "integer",
                      "description": "Length in minutes. Omit → class default.",
                      "exclusiveMinimum": 0
                    }
                  },
                  "additionalProperties": false
                },
                "minItems": 1,
                "description": "ADD-MODE. New sessions on `schedule_id`; each needs a date, time/duration default from the class. \"One more at the end\": the date after the last session (sessions_find_events)."
              },
              "confirmed": {
                "type": "boolean",
                "description": "Required (true) on the apply call, alongside `token`. Asserts that you have SHOWN the user the preview from the first call and they approved it — not that you believe the change is correct. If the user has not seen the preview, show it and ask before setting this. Must be omitted on the preview call."
              },
              "event_ids": {
                "type": "array",
                "items": {
                  "type": "integer",
                  "exclusiveMinimum": 0
                },
                "minItems": 1,
                "description": "EDIT-MODE. Session ids to change, with `changes`; resolve via sessions_find_events. Not with schedule_id/sessions."
              },
              "company_id": {
                "type": "integer",
                "description": "Zooza company id to operate against. Optional: if the user has exactly one company, the server defaults to it — you can omit this field. With multiple companies, you MUST specify which; get the id list from `whoami.available_companies[].id`. If the user hasn't indicated which company they mean, ask them before guessing.",
                "exclusiveMinimum": 0
              },
              "schedule_id": {
                "type": "integer",
                "description": "ADD-MODE. Class to append NEW sessions to; pair with `sessions`. Resolve with classes_find_classes. Not with event_ids/changes.",
                "exclusiveMinimum": 0
              }
            },
            "additionalProperties": false
          },
          "annotations": {
            "readOnlyHint": false,
            "openWorldHint": false,
            "idempotentHint": false,
            "destructiveHint": false
          }
        },
        {
          "name": "sessions_cancel",
          "title": "Cancel sessions (preview, then apply)",
          "description": "Cancel one or more scheduled SESSIONS of a class so they do not take place — \"cancel Tuesday's sessions\", \"the pool is closed on Friday\", \"Martina is ill all week, cancel her classes\". A cancelled session stays visible in Zooza with a cancelled status; it is NOT deleted.\n\nScope the call to exactly ONE entity: `event_ids`, a single `date`, a single `trainer_id` with `from`/`to`, a single `schedule_id` with `from`/`to`, or a single `place_id` with a `date`. Two instructors or two classes in one call are refused by design — cancel them one at a time so each blast radius is reviewed on its own. At most 7 days, 20 sessions and 150 affected clients per call.\n\nTWO CALLS. First WITHOUT `token`: returns every affected session, the client count, how many emails would be sent, and what will NOT happen — plus a single-use token. Show that to the operator and get explicit approval. Then call again with `token` + `confirmed: true` to apply; send nothing else, the plan is frozen.\n\n`reason` is required and is recorded for staff only — it must be the operator's own words: if they did not say why, ASK before the first call; never invent a placeholder such as \"cancelled by operator\". `public_reason` is what clients read and is required when `notify` is true — one email per session per client, so five sessions in a class of 25 is 125 messages; the preview states the exact count either way.\n\nOptionally create a make-up session with `replacement_date`, which moves the attendees onto the new date. Allowed ONLY when exactly one session is in scope, because a make-up date belongs to one session. Attendees who already have attendance marked (attended / no-show) and anyone waitlisted do NOT move — the preview counts them.\n\nSessions that already happened are left out unless you pass `include_past: true`. Only owners and assistants can cancel; other roles are refused with an explanation.\n\nThis tool does NOT un-cancel a session, does NOT delete sessions (cancelling and deleting are different verbs in Zooza), does NOT cancel ONE client's booking on a session — that is `sessions_mark_attendance` with `attendance: 'canceled'`, and that is the path that issues make-up credits — and does NOT reschedule anything (`sessions_update`). Cancelling a session issues no make-up credits to anyone.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "properties": {
              "to": {
                "type": "string",
                "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
                "description": "Inclusive range end, YYYY-MM-DD."
              },
              "date": {
                "type": "string",
                "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
                "description": "SCOPE. One whole day, YYYY-MM-DD, company-wide unless place_id narrows it."
              },
              "from": {
                "type": "string",
                "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
                "description": "Inclusive range start, YYYY-MM-DD. Only with trainer_id or schedule_id."
              },
              "token": {
                "type": "string",
                "description": "Omit on the FIRST call — that call previews the change and returns a token. Pass the token back on the SECOND call to apply the previewed change. Single-use, expires in 15 minutes; if it is expired or already used, run the preview again."
              },
              "notify": {
                "type": "boolean",
                "description": "Default false. Set it on the FIRST call; it is frozen into the plan."
              },
              "reason": {
                "type": "string",
                "minLength": 1,
                "description": "REQUIRED. Internal, staff-only; Zooza cannot clear it later. The operator's stated reason — ask, never invent."
              },
              "place_id": {
                "type": "integer",
                "description": "SCOPE. ONE venue, with date. Resolve with classes_find_resource kind:'place'.",
                "exclusiveMinimum": 0
              },
              "confirmed": {
                "type": "boolean",
                "description": "Required (true) on the apply call, alongside `token`. Asserts that you have SHOWN the user the preview from the first call and they approved it — not that you believe the change is correct. If the user has not seen the preview, show it and ask before setting this. Must be omitted on the preview call."
              },
              "event_ids": {
                "type": "array",
                "items": {
                  "type": "integer",
                  "exclusiveMinimum": 0
                },
                "minItems": 1,
                "description": "SCOPE. Exact sessions, at most 7 days apart. Resolve with sessions_find_events. The only scope that may cross classes and instructors."
              },
              "company_id": {
                "type": "integer",
                "description": "Zooza company id to operate against. Optional: if the user has exactly one company, the server defaults to it — you can omit this field. With multiple companies, you MUST specify which; get the id list from `whoami.available_companies[].id`. If the user hasn't indicated which company they mean, ask them before guessing.",
                "exclusiveMinimum": 0
              },
              "trainer_id": {
                "type": "integer",
                "description": "SCOPE. ONE instructor, with from/to. Resolve with classes_find_resource kind:'trainer'.",
                "exclusiveMinimum": 0
              },
              "schedule_id": {
                "type": "integer",
                "description": "SCOPE. ONE class, with from/to. Resolve with classes_find_classes.",
                "exclusiveMinimum": 0
              },
              "include_past": {
                "type": "boolean",
                "description": "Default false — past sessions are skipped and reported."
              },
              "public_reason": {
                "type": "string",
                "description": "Client-facing email text. Required when notify is true."
              },
              "replacement_date": {
                "type": "string",
                "pattern": "^\\d{4}-\\d{2}-\\d{2}([ T]\\d{2}:\\d{2}(:\\d{2})?)?$",
                "description": "Make-up session date, \"YYYY-MM-DD HH:MM:SS\" — time defaults to the cancelled session's own. One session in scope only."
              },
              "replacement_room_id": {
                "type": "integer",
                "minimum": 0,
                "description": "Make-up room; needs replacement_place_id. 0 = no room."
              },
              "replacement_place_id": {
                "type": "integer",
                "description": "Make-up venue. Defaults to the cancelled session's.",
                "exclusiveMinimum": 0
              }
            },
            "additionalProperties": false
          },
          "annotations": {
            "readOnlyHint": false,
            "openWorldHint": false,
            "idempotentHint": false,
            "destructiveHint": true
          }
        },
        {
          "name": "bookings_copy_booking",
          "title": "Copy or move a booking to another class (preview, then apply)",
          "description": "Copy or move a client's existing booking into a different class. COPY creates a second booking and leaves the original in place — use it when the client is continuing into a new term or adding a class alongside their current one. MOVE relocates the booking itself, carrying its payment history and debt, and the client is no longer in the old class — use it when they are switching.\n\nTWO CALLS. First WITHOUT `token`: returns both class prices, what the client currently owes, free places in the target class, and any blockers, plus a single-use token. Show that to the operator — especially the `money` line — and get explicit approval. Then call again with `token` + `confirmed: true` to apply; send nothing else, the plan is frozen.\n\n`payments` has no default on purpose: pricing the booking from the target class is what operators most often get wrong, so ask rather than assume.\n\nMONEY FIGURES ARE TOTALS. Every amount in the `money` block is for the WHOLE booking, never per session — Zooza's per-session figure is `target_unit_price_per_session`, shown separately, and quoting it as the price is how a booking ends up quoted ~20x too cheap. Read `target_will_owe_total` to the operator: it is the class price PLUS the target class's registration fee, which Zooza charges on top of it.\n\nANOTHER PROGRAMME IS ALLOWED. The target class may belong to a different programme than the booking (e.g. a free trial moving into a paid course). The preview then carries a `different_programme` warning: the booking is priced by the TARGET programme, no instalment plan is applied (payments_add_plan afterwards), and the old programme's booking-form answers are carried over — the target programme's own required questions are NOT asked.\n\nFREE, AGREED AMOUNT, SOME BLOCKS. `payments: \"free\"` when the client pays nothing for it (\"she doesn't pay\"). `payments: \"custom_amount\"` with BOTH `custom_balance` and `custom_registration_fee` when the operator gives the numbers (\"we agreed 200 plus the 20 fee\") — ask for both, 0 is allowed; only for a booking that ends up enrolled (registered). `blocks` when the operator names blocks of the target class (\"Mondays only\"); the preview prices only those blocks and lists the available names if one does not match. Omit `blocks` and Zooza matches blocks by name.\n\nSIMPLE CASE ONLY beyond that. This tool cannot set up a new instalment plan in the same call (copy, then payments_add_plan), do a trial conversion (enrol a trial as converted, or book a trial session), or write a custom confirmation email. If the operator needs one of those, do not improvise with other tools — tell them to use the Copy/Transfer wizard in the Zooza admin app (open the booking, then Transfer or Copy booking).",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "properties": {
              "start": {
                "type": "string",
                "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
                "description": "Enrolment start, YYYY-MM-DD. Default today. Affects price and session count."
              },
              "token": {
                "type": "string",
                "description": "Omit on the FIRST call — that call previews the change and returns a token. Pass the token back on the SECOND call to apply the previewed change. Single-use, expires in 15 minutes; if it is expired or already used, run the preview again."
              },
              "action": {
                "enum": [
                  "copy",
                  "move"
                ],
                "type": "string",
                "description": "Required on the FIRST call. See the tool description for which to pick."
              },
              "blocks": {
                "type": "array",
                "items": {
                  "type": "string",
                  "minLength": 1
                },
                "minItems": 1,
                "description": "Only when the operator names blocks ('Mondays only'). Names from the target class. The preview lists the available ones if a name does not match."
              },
              "status": {
                "enum": [
                  "registered",
                  "waitlist",
                  "late",
                  "trial_started",
                  "trial_not_started"
                ],
                "type": "string",
                "description": "Omit to use the status Zooza computes (usual)."
              },
              "payments": {
                "enum": [
                  "from_target_class",
                  "do_not_change",
                  "free",
                  "custom_amount"
                ],
                "type": "string",
                "description": "Required on the FIRST call — NO default, ask the operator. from_target_class = price it by the target class. do_not_change = copy: no payments on the new booking; move: existing payments untouched (safest). free = the booking costs nothing: no class price, no registration fee. custom_amount = the amount and fee the operator gives, e.g. agreed with the parent. Only for a booking that ends up enrolled (registered); any other status uses the computed price. Ask for both numbers."
              },
              "confirmed": {
                "type": "boolean",
                "description": "Required (true) on the apply call, alongside `token`. Asserts that you have SHOWN the user the preview from the first call and they approved it — not that you believe the change is correct. If the user has not seen the preview, show it and ask before setting this. Must be omitted on the preview call."
              },
              "company_id": {
                "type": "integer",
                "description": "Zooza company id to operate against. Optional: if the user has exactly one company, the server defaults to it — you can omit this field. With multiple companies, you MUST specify which; get the id list from `whoami.available_companies[].id`. If the user hasn't indicated which company they mean, ask them before guessing.",
                "exclusiveMinimum": 0
              },
              "custom_balance": {
                "type": "number",
                "minimum": 0,
                "description": "custom_amount only, then required. Class price part, >= 0."
              },
              "registration_id": {
                "type": "integer",
                "description": "Required on the FIRST call. The existing booking. Resolve with bookings_find.",
                "exclusiveMinimum": 0
              },
              "target_event_id": {
                "type": "integer",
                "description": "One-off programmes only. Resolve with sessions_find_events.",
                "exclusiveMinimum": 0
              },
              "send_confirmation": {
                "type": "boolean",
                "description": "Default false. true emails the client — confirm intent with the operator first."
              },
              "target_schedule_id": {
                "type": "integer",
                "description": "Required on the FIRST call. The class it goes into. Resolve with classes_find_classes.",
                "exclusiveMinimum": 0
              },
              "custom_registration_fee": {
                "type": "number",
                "minimum": 0,
                "description": "custom_amount only, then required. Fee, >= 0; 0 = no fee."
              }
            },
            "additionalProperties": false
          },
          "annotations": {
            "readOnlyHint": false,
            "openWorldHint": false,
            "idempotentHint": false,
            "destructiveHint": false
          }
        },
        {
          "name": "comms_send_message",
          "title": "Email clients (plan, then send)",
          "description": "Email clients of this company. Describe the audience (a course/programme, a class schedule, a specific booking, one client, a saved segment, an ad-hoc cohort, or course-level labels) and the content (an existing template `type` from comms_list_templates, or a custom subject + body which may use *|MERGE_VAR|* tags from comms_list_merge_vars).\n\nTWO CALLS. First WITHOUT `token`: sends NOTHING. Returns the estimated recipient count, a sample of recipients, the content as it will be sent, warnings (unknown merge tags, zero recipients), and a single-use token. Show that plan to the operator and get explicit confirmation. Then call again with `token` + `confirmed: true` to actually send. Calling the first form again with adjusted filters is free and repeatable — refine the audience that way rather than guessing.\n\nLARGE SENDS need a SECOND confirmation. If the recipient count exceeds the approval threshold, the sending call returns `requires_second_confirmation: true` with the count and job id and sends NOTHING yet. Show the operator the exact recipient count and ask again (e.g. \"Send to all 105 clients?\"). Only after they explicitly agree, call once more with the SAME token, `confirmed: true`, and `confirm_large_send: true`. If they decline, send nothing.\n\nResolve names to ids first: classes_find_courses for a course/programme → course_id, classes_find_classes for a class/group by name → schedule_id, sessions_find_events for a single session → event_id; never guess ids. When the operator names an ad-hoc cohort rather than the whole company — \"everyone who hasn't paid\", the unpaid roster, the waitlist, this week's sign-ups — resolve it with bookings_find and pass the resulting registration_id LIST as audience.registration_id. Reserve audience.whole_company for genuinely company-wide sends; do NOT use it as a shortcut for a named subset, or you email far more people than the operator asked for.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "properties": {
              "bcc": {
                "type": "string",
                "description": "Comma-separated BCC addresses."
              },
              "token": {
                "type": "string",
                "description": "Omit on the FIRST call — that call previews the change and returns a token. Pass the token back on the SECOND call to apply the previewed change. Single-use, expires in 15 minutes; if it is expired or already used, run the preview again."
              },
              "channel": {
                "enum": [
                  "email"
                ],
                "type": "string",
                "description": "Only 'email' is implemented. WhatsApp is specced and coming — do not promise it yet."
              },
              "content": {
                "type": "object",
                "properties": {
                  "body": {
                    "type": "string",
                    "description": "Custom email body (HTML or text); may contain *|MERGE|* tags."
                  },
                  "subject": {
                    "type": "string",
                    "description": "Custom email subject; may contain *|MERGE|* tags."
                  },
                  "template_type": {
                    "type": "string",
                    "description": "Existing email template type from comms_list_templates, e.g. \"registration_cancellation\"."
                  }
                },
                "description": "EITHER template_type OR subject+body — not both.",
                "additionalProperties": false
              },
              "audience": {
                "type": "object",
                "properties": {
                  "guests": {
                    "type": "boolean",
                    "description": "Default false. Also send to guest registrations (added at send time; not in the count estimate)."
                  },
                  "labels": {
                    "type": "array",
                    "items": {
                      "type": "integer",
                      "exclusiveMinimum": 0
                    },
                    "description": "Registrations in COURSES labeled with any of these label ids — labels attach at course level, not per person."
                  },
                  "exclude": {
                    "type": "array",
                    "items": {
                      "type": "integer",
                      "exclusiveMinimum": 0
                    },
                    "description": "Registration ids to leave out."
                  },
                  "user_id": {
                    "type": "integer",
                    "description": "One client (all their registrations).",
                    "exclusiveMinimum": 0
                  },
                  "course_id": {
                    "type": "integer",
                    "description": "Everyone registered in this course/programme.",
                    "exclusiveMinimum": 0
                  },
                  "segment_id": {
                    "type": "integer",
                    "description": "A saved registration segment.",
                    "exclusiveMinimum": 0
                  },
                  "active_only": {
                    "type": "boolean",
                    "description": "With whole_company only. true (DEFAULT) = clients with an ACTIVE booking. false = EVERYONE incl. cancelled/inactive/past (spammy) — only if the operator explicitly asks. Ask which they mean."
                  },
                  "schedule_id": {
                    "type": "integer",
                    "description": "Everyone in this class (schedule).",
                    "exclusiveMinimum": 0
                  },
                  "inactive_only": {
                    "type": "boolean",
                    "description": "true → ONLY clients marked inactive (former clients). Default already includes them."
                  },
                  "whole_company": {
                    "type": "boolean",
                    "description": "Broadcast to the ENTIRE company, one email per client; no id needed. ONLY for genuinely company-wide sends — for a NAMED subset (unpaid roster, waitlist, one class) resolve it with bookings_find and use registration_id. ALWAYS confirm scope with the operator first; pair with active_only."
                  },
                  "registration_id": {
                    "anyOf": [
                      {
                        "type": "integer",
                        "exclusiveMinimum": 0
                      },
                      {
                        "type": "array",
                        "items": {
                          "type": "integer",
                          "exclusiveMinimum": 0
                        },
                        "minItems": 1
                      }
                    ],
                    "description": "One booking id or a LIST (e.g. a bookings_find result, to message an ad-hoc cohort like the unpaid roster without a saved segment)."
                  },
                  "billing_period_id": {
                    "type": "integer",
                    "description": "Everyone booked into this billing period (a.k.a. term). ONE id — classes_find_resource kind:'billing_period'. Combine with course_id/schedule_id to narrow; several periods = one message each.",
                    "exclusiveMinimum": 0
                  }
                },
                "description": "Who receives the message. At least one targeting field is required.",
                "additionalProperties": false
              },
              "confirmed": {
                "type": "boolean",
                "description": "Required (true) on the apply call, alongside `token`. Asserts that you have SHOWN the user the preview from the first call and they approved it — not that you believe the change is correct. If the user has not seen the preview, show it and ask before setting this. Must be omitted on the preview call."
              },
              "marketing": {
                "type": "boolean",
                "description": "REQUIRED on the FIRST call. true = promotional content (consent rules apply; say so to the operator). false = operational (schedule changes, payment reminders, session info)."
              },
              "company_id": {
                "type": "integer",
                "description": "Zooza company id to operate against. Optional: if the user has exactly one company, the server defaults to it — you can omit this field. With multiple companies, you MUST specify which; get the id list from `whoami.available_companies[].id`. If the user hasn't indicated which company they mean, ask them before guessing.",
                "exclusiveMinimum": 0
              },
              "schedule_at": {
                "type": "object",
                "required": [
                  "date",
                  "hour",
                  "minute"
                ],
                "properties": {
                  "date": {
                    "type": "string",
                    "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
                    "description": "Local send date, YYYY-MM-DD."
                  },
                  "hour": {
                    "type": "integer",
                    "maximum": 23,
                    "minimum": 0,
                    "description": "Local send hour, 0-23 (24-hour clock)."
                  },
                  "minute": {
                    "type": "integer",
                    "maximum": 59,
                    "minimum": 0,
                    "description": "Local send minute, 0-59."
                  }
                },
                "description": "Omit to send immediately on commit.",
                "additionalProperties": false
              },
              "confirm_large_send": {
                "type": "boolean",
                "description": "Different from `confirmed`. Set true ONLY on the follow-up call after a send came back requires_second_confirmation: true AND the operator explicitly approved the recipient COUNT. Never set it on the first sending call, and never without that separate approval."
              }
            },
            "additionalProperties": false
          },
          "annotations": {
            "readOnlyHint": false,
            "openWorldHint": true,
            "idempotentHint": false,
            "destructiveHint": false
          }
        },
        {
          "name": "reports_get_data",
          "title": "Get real report data for a business question",
          "description": "Return the REAL, pre-aggregated numbers for ONE business question about an activity brand — and the basis for SHOWING it. This is how you show an operator a report / dashboard / chart of their business numbers (occupancy, unpaid, churn, attendance, trials, retention, revenue, \"how are we doing\", per programme / venue / instructor): call this, then COMPOSE a focused report as an ARTIFACT in the conversation that renders in the side panel — do NOT hand the user a link or open a browser page. Views: occupancy, unpaid, churn, attendance, trials, retention, clients_by_location, replacements, summary. Use view=\"replacements\" for ANY question about make-up / replacement credits — \"unused make-ups\", \"expiring make-ups\", \"credits\", \"náhrady / náhradné hodiny\", \"are we overloaded on make-ups\", make-up demand vs available slots per programme (this IS the credits report; Zooza HAS make-up credits even though they are not in the business_dashboard views). The result has `headline` (computed key figures), `rows` (chart/table-ready, named, capped), `note` (a data-aware caption), `currency`, and `period`. RULES: every number you show the user MUST come from this result verbatim — never invent, estimate, or recompute figures, and never draw a chart without calling this first. Render charts with inline SVG/CSS — no external CDN or chart library (the artifact sandbox blocks them). If a view returns no rows, say so plainly. Follow get_skill(\"report-compose\").",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "properties": {
              "to": {
                "type": "string",
                "description": "Last month YYYY-MM-01."
              },
              "from": {
                "type": "string",
                "description": "First month YYYY-MM-01. Both from+to or neither (default: last 6 months)."
              },
              "view": {
                "type": "string",
                "description": "Question to pull data for. One of: occupancy, unpaid, churn, attendance, trials, retention, clients_by_location, replacements, summary. Default \"summary\"."
              },
              "company_id": {
                "type": "integer",
                "description": "Resolved from the session when omitted."
              }
            },
            "additionalProperties": false
          },
          "annotations": {
            "readOnlyHint": true,
            "openWorldHint": false,
            "destructiveHint": false
          }
        },
        {
          "name": "get_skill",
          "title": "Load a skill playbook",
          "description": "Returns the full markdown playbook for one of the registered skills. Call this BEFORE starting a flow named in the server's instructions — the playbook contains the interview steps, mapping rules, and confirmation pattern for that scenario. Available skills: business-model-validator, class-management, communication, feedback-nudge, negotiate-terminology, period-rollover, report-compose, report-discovery, report-page-new.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "name"
            ],
            "properties": {
              "name": {
                "type": "string",
                "description": "Exact skill name from the available list."
              }
            },
            "additionalProperties": false
          },
          "annotations": {
            "readOnlyHint": true,
            "openWorldHint": false,
            "destructiveHint": false
          }
        },
        {
          "name": "get_tool_schema",
          "title": "Get a Zooza tool's input schema",
          "description": "Returns the description and exact input schema of a Zooza tool, including tools not in your tool list (call_tool lists them). Call it once per tool before that tool's first call_tool.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "name"
            ],
            "properties": {
              "name": {
                "type": "string",
                "description": "Tool name, e.g. \"todos_add\"."
              }
            },
            "additionalProperties": false
          },
          "annotations": {
            "readOnlyHint": true,
            "openWorldHint": false,
            "destructiveHint": false
          }
        },
        {
          "name": "call_tool",
          "title": "Call any Zooza tool by name",
          "description": "Runs a Zooza tool by name. Use it for every Zooza tool that is NOT in your tool list — these exist and work; never send the user to another app because a Zooza tool isn't listed. Call get_tool_schema(name) first for the arguments. Write tools behave exactly as when called directly: the first call previews and returns a token, the second (token + confirmed:true) applies.\nTools reachable this way:\n- bookings_add_lead: Add a lead (minimal registration on a lead-collection schedule)\n- classes_add_billing_period: Create a billing period (term)\n- classes_add_course: Create a new programme (course)\n- classes_add_share_link: Create a private registration link for a class\n- classes_commit_class: Commit a class (schedule + events)\n- classes_copy_class: Copy classes into a billing period\n- classes_list_schedule_patterns: List valid Zooza schedule patterns\n- classes_list_share_links: List a class's private registration links\n- classes_preview_events: Preview class session dates\n- classes_preview_schedule: Preview a class schedule shell\n- classes_show_copy_progress: Show billing-period rollover progress\n- classes_update_course_settings: Change programme settings (preview, then apply)\n- comms_find_messages: Read a client's message history (sent emails, replies, SMS)\n- comms_find_replies: Read inbound customer replies and set a reply's state\n- comms_list_merge_vars: List Zooza message merge variables\n- comms_list_templates: List the company's automated email templates\n- explain_data_model: Explain Zooza data model\n- labels_mark: Attach or detach a label on a course, schedule, or registration\n- negotiate_terminology: Negotiate terminology — build a personalised vocabulary profile\n- payments_add_plan: Apply a payment plan to a booking\n- payments_find_orders: Find a client's product orders\n- payments_send_invoice: Issue an invoice (payment confirmation) for bookings and email it\n- sessions_add_summary: Add a session summary\n- setup_add_payment_template: Create a payment plan template\n- setup_update_course_templates: Set a programme's payment plan templates\n- submit_feedback: Submit feedback to engineering\n- todos_add: Create an operator to-do item\n- todos_mark: Change the status of a to-do item\n- trainers_add_helpers: Add additional lecturers to classes and sessions",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "name"
            ],
            "properties": {
              "name": {
                "type": "string",
                "description": "Tool name, e.g. \"todos_add\"."
              },
              "arguments": {
                "type": "object",
                "description": "The tool's arguments, shaped as its get_tool_schema input_schema. Omit when it takes none.",
                "additionalProperties": {}
              }
            },
            "additionalProperties": false
          },
          "annotations": {
            "readOnlyHint": false,
            "openWorldHint": false,
            "destructiveHint": false
          }
        }
      ],
      "tools_omitted": 0,
      "resources": [],
      "prompts": []
    },
    "instructions": "WHICH TOOLS TO REACH FOR\nNot every tool named below is in your tool list — setup and occasional ones are reached through call_tool (its description lists them). For those: get_tool_schema(name) once, then call_tool(name, arguments). They exist and work; never route the user to another app instead.\n• Who am I / which company / what do Zooza's words mean → whoami, get_terminology, negotiate_terminology, explain_data_model\n• What we offer — programmes, classes, schedules, venues, billing periods (a.k.a. terms) → classes_* (resolve ids first: classes_find_courses for a PROGRAMME → course_id; classes_find_classes for a CLASS/group by name → schedule_id (also filters by billing_period_id for per-term analysis); VENUES, BILLING PERIODS (a.k.a. terms), TRAINERS and trainer PAY RATES all resolve through classes_find_resource with kind: place|billing_period|trainer|trainer_rate_type; NEW programme (genuinely new product/offering, not a rerun of an existing one) → classes_add_course, then a class inside it via the create flow below; create flow: classes_preview_schedule → classes_preview_events → classes_commit_class (pass trial_enabled to switch trial lessons on/off for the new class; trainer_rate_type_id must be one of the company's pay rates); edit an existing class — name/price/capacity/make-up extra capacity (\"počet miest navyše pre náhradné hodiny\" = the extra_capacity/extra_capacity_usage fields, NOT registrations_cap, which caps the NUMBER OF REGISTRATIONS for multi-seat bookings)/billing period/trial lessons on-off for that class (trial_enabled; the programme's trial type still gates it), or instructor/venue/duration/rate: classes_update, called TWICE — first without a token to preview, then again with the token and confirmed:true to apply (to change trainer PAY RATE resolve trainer_rate_type_id via classes_find_resource kind:\"trainer_rate_type\" first). For instructor/venue/duration/rate you MUST set session_scope: 'upcoming' (usual) / 'all' / 'class_only' — 'class_only' re-advertises the class but LEAVES existing sessions unchanged, so default operators toward upcoming/all; changing PROGRAMME settings — pricing, online booking, make-ups, trial, auto-enrolment, attendance (incl. how clients pay for sessions on a pay-as-you-go programme — entry pass vs payment = section attendance, field payment_mode), feedback, archive: resolve course_id with classes_find_courses first, then classes_update_course_settings WITHOUT a token → show the diff + warnings, get confirmation → call it again with the token and confirmed:true)\n• A NEW billing period — \"create the new term / semester / season\", \"set up Spring 2027\" → classes_add_billing_period. Ask for the start and end dates; never infer them. To START a new term, create the period here, then roll the classes over with classes_copy_class. A period with the same name is returned instead of duplicated. \"Term\" here means a billing period, never a block (a label grouping sessions inside one class) and never a programme.\n• Start a new term / roll the classes over / \"copy the groups into next semester\" → get_skill(\"period-rollover\") FIRST and follow it: it settles which entity the operator's words mean, from their own data, before any write. Copying a single class into another billing period → classes_copy_class directly, at most 25 classes per call: preview without a token, decide every holiday it lists (skip, run or exchange), then apply with the token and confirmed:true. More than 25 classes → chunk them with classes_show_copy_progress. The new billing period must exist first (classes_add_billing_period).\n• How far a term rollover has got — \"which classes are already copied into Spring 2027\", \"what is left to roll over\" → classes_show_copy_progress with the old (source) and new (target) billing period. \"Copied\" comes from which class each copy was made from, so it is right across conversations; classes being copied right now show as in_progress. \"Is my copy done\" → the same tool with the job_i"
  },
  "changes": {
    "total": 1,
    "latest": [
      {
        "observed_at": "2026-11-23T07:13:01.307Z",
        "from_sha": "70da62a8efba5fb5b1bcfb415c48b2fa690f1f32c7bc7344b8b5dda490b0f39a",
        "to_sha": "5ae7a01283f464606992830f8012f764beeafa2986fbdf2d2f3436f439ac3e77",
        "summary": {
          "tool_added": 3,
          "tool_changed": 16
        },
        "diff": [
          {
            "op": "changed",
            "kind": "tool",
            "name": "whoami",
            "path": "/description",
            "after": {
              "chars": 4174,
              "truncated": true
            },
            "before": {
              "chars": 4175,
              "truncated": true
            }
          },
          {
            "op": "changed",
            "kind": "tool",
            "name": "classes_find_resource",
            "path": "/description",
            "after": "Resolve a NAME the operator said into an id, for four kinds of company-level records. Pick `kind`:\n\n- `place` — venues. Returns `{id, name, city, street, rooms: [{id, name, capacity}]}`. Rooms are inlined because picking a venue is usually followed by picking a room. Filters: name, city.\n- `billing_period` — billing periods, a.k.a. terms (e.g. \"Autumn 2026\"). Returns `{id, name, active, period_start, period_end}`; either date may be null, an open-ended period is valid. Filter: name. Match on the DATES, not just the name — a period covering the term you want may be named anything.\n- `trainer` — team members assignable to classes. Returns `{id, full_name, email, active, virtual}`. Filters: name, place_id, course_id. **Virtual trainers** are always included regardless of place/course filters — they are system-wide placeholders with `virtual: true`, a synthetic id (>= 9000000000000) and no email. Pick one when the operator says \"we'll decide later\", \"no trainer yet\", \"TBD\", \"unassigned\", \"guest\", \"external speaker\". Three ship by default: 'To be decided', 'Trainer unassigned', 'Guest trainer'.\n- `trainer_rate_type` — named pay rates (e.g. \"Hourly\", \"Per class\"). Returns `{id, name, minutes, type}`. This is the ONLY way to turn a rate the operator names into the `trainer_rate_type_id` that classes_update and sessions_update need — NEVER guess that id.\n\n`include_inactive` (place: n/a) defaults false. Sending a filter that does not apply to the chosen kind returns the list of filters that do. For PROGRAMMES use classes_find_courses, for CLASSES classes_find_classes, for people enrolled use bookings_find — those are separate, richer tools.",
            "before": "Resolve a NAME the operator said into an id, for four kinds of company-level records. Pick `kind`:\n\n- `place` — venues. Returns `{id, name, city, street, rooms: [{id, name, capacity}]}`. Rooms are inlined because picking a venue is usually followed by picking a room. Filters: name, city.\n- `billing_period` — term blocks (e.g. \"Autumn 2026\"). Returns `{id, name, active, period_start, period_end}`; either date may be null, an open-ended period is valid. Filter: name. Match on the DATES, not just the name — a period covering the term you want may be named anything.\n- `trainer` — team members assignable to classes. Returns `{id, full_name, email, active, virtual}`. Filters: name, place_id, course_id. **Virtual trainers** are always included regardless of place/course filters — they are system-wide placeholders with `virtual: true`, a synthetic id (>= 9000000000000) and no email. Pick one when the operator says \"we'll decide later\", \"no trainer yet\", \"TBD\", \"unassigned\", \"guest\", \"external speaker\". Three ship by default: 'To be decided', 'Trainer unassigned', 'Guest trainer'.\n- `trainer_rate_type` — named pay rates (e.g. \"Hourly\", \"Per class\"). Returns `{id, name, minutes, type}`. This is the ONLY way to turn a rate the operator names into the `trainer_rate_type_id` that classes_update and sessions_update need — NEVER guess that id.\n\n`include_inactive` (place: n/a) defaults false. Sending a filter that does not apply to the chosen kind returns the list of filters that do. For PROGRAMMES use classes_find_courses, for CLASSES classes_find_classes, for people enrolled use bookings_find — those are separate, richer tools."
          },
          {
            "op": "changed",
            "kind": "tool",
            "name": "classes_find_resource",
            "path": "/inputSchema/properties/kind/description",
            "after": "Which kind of record to resolve. 'place' = venue, 'billing_period' = billing period (a.k.a. term), 'trainer' = team member, 'trainer_rate_type' = named pay rate.",
            "before": "Which kind of record to resolve. 'place' = venue, 'billing_period' = term block, 'trainer' = team member, 'trainer_rate_type' = named pay rate."
          },
          {
            "op": "changed",
            "kind": "tool",
            "name": "classes_find_classes",
            "path": "/description",
            "after": {
              "chars": 4089,
              "truncated": true
            },
            "before": {
              "chars": 4088,
              "truncated": true
            }
          },
          {
            "op": "changed",
            "kind": "tool",
            "name": "classes_find_classes",
            "path": "/inputSchema/properties/billing_period_id/description",
            "after": "Only classes in this billing period (a.k.a. term) — or these. Resolve via classes_find_resource kind:'billing_period'.",
            "before": "Only classes in this billing period (term block) — or these. Resolve via classes_find_resource kind:'billing_period'."
          },
          {
            "op": "changed",
            "kind": "tool",
            "name": "classes_find_classes",
            "path": "/title",
            "after": "Find classes (schedules)",
            "before": "Find classes (schedules) by name"
          },
          {
            "op": "changed",
            "kind": "tool",
            "name": "sessions_find_events",
            "path": "/inputSchema/properties/billing_period_id/description",
            "after": "Restrict to sessions in one or more billing periods (a.k.a. terms). Resolve: classes_find_resource kind:billing_period.",
            "before": "Restrict to sessions in one or more billing periods (term blocks). Resolve: classes_find_resource kind:billing_period."
          },
          {
            "op": "changed",
            "kind": "tool",
            "name": "classes_update",
            "path": "/inputSchema/properties/changes/properties/billing_period_id/description",
            "after": "Billing period (a.k.a. term) this class belongs to. Resolve: classes_find_resource kind:billing_period.",
            "before": "Term block (billing period) this class belongs to. Resolve: classes_find_resource kind:billing_period."
          },
          {
            "op": "changed",
            "kind": "tool",
            "name": "bookings_copy_booking",
            "path": "/description",
            "after": {
              "chars": 2751,
              "truncated": true
            },
            "before": {
              "chars": 2048,
              "truncated": true
            }
          },
          {
            "op": "added",
            "kind": "tool",
            "name": "bookings_copy_booking",
            "path": "/inputSchema/properties/blocks",
            "after": {
              "type": "array",
              "items": {
                "type": "string",
                "minLength": 1
              },
              "minItems": 1,
              "description": "Only when the operator names blocks ('Mondays only'). Names from the target class. The preview lists the available ones if a name does not match."
            }
          },
          {
            "op": "added",
            "kind": "tool",
            "name": "bookings_copy_booking",
            "path": "/inputSchema/properties/custom_balance",
            "after": {
              "type": "number",
              "minimum": 0,
              "description": "custom_amount only, then required. Class price part, >= 0."
            }
          },
          {
            "op": "added",
            "kind": "tool",
            "name": "bookings_copy_booking",
            "path": "/inputSchema/properties/custom_registration_fee",
            "after": {
              "type": "number",
              "minimum": 0,
              "description": "custom_amount only, then required. Fee, >= 0; 0 = no fee."
            }
          },
          {
            "op": "changed",
            "kind": "tool",
            "name": "bookings_copy_booking",
            "path": "/inputSchema/properties/payments/description",
            "after": "Required on the FIRST call — NO default, ask the operator. from_target_class = price it by the target class. do_not_change = copy: no payments on the new booking; move: existing payments untouched (safest). free = the booking costs nothing: no class price, no registration fee. custom_amount = the amount and fee the operator gives, e.g. agreed with the parent. Only for a booking that ends up enrolled (registered); any other status uses the computed price. Ask for both numbers.",
            "before": "Required on the FIRST call — NO default, ask the operator. from_target_class = price it by the target class. do_not_change = on copy, no payments on the new booking; on move, leave existing payments untouched (Zooza's help calls this the safest option)."
          },
          {
            "op": "changed",
            "kind": "tool",
            "name": "bookings_copy_booking",
            "path": "/inputSchema/properties/payments/enum",
            "after": [
              "from_target_class",
              "do_not_change",
              "free",
              "custom_amount"
            ],
            "before": [
              "from_target_class",
              "do_not_change"
            ]
          },
          {
            "op": "changed",
            "kind": "tool",
            "name": "bookings_copy_booking",
            "path": "/inputSchema/properties/status/description",
            "after": "Omit to use the status Zooza computes (usual).",
            "before": "Omit to use what Zooza computes for the target class (usual choice)."
          },
          {
            "op": "changed",
            "kind": "tool",
            "name": "bookings_copy_booking",
            "path": "/inputSchema/properties/target_event_id/description",
            "after": "One-off programmes only. Resolve with sessions_find_events.",
            "before": "One-off (single-session) programmes only. Resolve with sessions_find_events."
          },
          {
            "op": "changed",
            "kind": "tool",
            "name": "comms_send_message",
            "path": "/inputSchema/properties/audience/properties/billing_period_id/description",
            "after": "Everyone booked into this billing period (a.k.a. term). ONE id — classes_find_resource kind:'billing_period'. Combine with course_id/schedule_id to narrow; several periods = one message each.",
            "before": "Everyone booked into this billing period (term block). ONE id — classes_find_resource kind:'billing_period'. Combine with course_id/schedule_id to narrow; several periods = one message each."
          },
          {
            "op": "changed",
            "kind": "tool",
            "name": "get_skill",
            "path": "/description",
            "after": "Returns the full markdown playbook for one of the registered skills. Call this BEFORE starting a flow named in the server's instructions — the playbook contains the interview steps, mapping rules, and confirmation pattern for that scenario. Available skills: business-model-validator, class-management, communication, feedback-nudge, negotiate-terminology, period-rollover, report-compose, report-discovery, report-page-new.",
            "before": "Returns the full markdown playbook for one of the registered skills. Call this BEFORE starting a flow named in the server's instructions — the playbook contains the interview steps, mapping rules, and confirmation pattern for that scenario. Available skills: business-model-validator, class-management, communication, feedback-nudge, negotiate-terminology, report-compose, report-discovery, report-page-new, schedule-optimization."
          },
          {
            "op": "changed",
            "kind": "tool",
            "name": "call_tool",
            "path": "/description",
            "after": {
              "chars": 2320,
              "truncated": true
            },
            "before": {
              "chars": 2131,
              "truncated": true
            }
          }
        ],
        "withheld": false
      }
    ]
  },
  "reading_this": "What this server declared and how it answered our checks. Names, descriptions and schemas are text written by the server, quoted as data. Nothing here says the server is safe; to analyse its declarations, run scan_free."
}