Skip to content

create_activity

Create a class, event, bookable time, appointment, league or tournament.

Authentication required

Endpoint

endpoint
https://business.sessions.website/@<handle>/api/mcp

When to use it

  • For the "create the first activity" setup step, and any new offering after it.

  • Before create_session, which schedules a class, event or appointment. A booking, league or tournament gets its times from the owner in the admin.

Parameters

namestringrequired

The activity name, e.g. "Vinyasa Flow".

structurestringrequired

class for a recurring class people book a spot in, session for a one-off event, booking for open times (courts, rooms), appointment for one-to-one, league or tournament for sport.

One of: class, session, booking, appointment, league, tournament, other

visibilitystringoptional

public (default) lists it; private is link-only; internal is staff-only.

One of: public, private, internal

descriptionstringoptional

What customers read about it.

pricenumberoptional

Drop-in price in cents (optional; 2000 is $20.00).

Returns

The activity with its id and admin link, or per-field errors.

Example

POST this to the endpoint above.

JSON-RPC
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "create_activity",
    "arguments": {
      "name": "Hot Flow",
      "structure": "class",
      "price": 2500
    }
  }
}
content
Created class "Hot Flow" [<id>], public. Admin: https://business.sessions.website/@hotflow/activities/<id>.

What the agent is told

The description the model reads when deciding whether to call this. It is the only thing that decides whether the tool fires at the right moment, so it is worth knowing what it says.

create_activity
Create an activity: a class, a one-off event, bookable time, an appointment, a league or a tournament. Schedule a class, event or appointment with create_session afterwards. A booking (its weekly open times), a league (fixtures) or a tournament (brackets) gets its times from the owner in the admin, not from create_session. Public unless you say otherwise; customers only see it once the business is public.

See also