Skip to content

apply_migration_catalog

Bring a studio’s public catalog over as hidden drafts for the owner to review.

Authentication required

Endpoint

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

When to use it

  • After reading the studio’s public booking pages, to build its classes, rooms, instructors, schedule and class packs in one call.

  • Again with a fresher read: anything that already exists by name is reused, so only what is new is added.

Parameters

catalogobjectrequired

The catalog, shaped like the scrape-competitor JSON: locations [{name, address, city, region, postalCode, country}], staff [{name, bio}], activities [{name, description, durationMinutes}], sessions [{activityName, startAt, endAt (ISO 8601), locationName, classroomName, staffNames, capacity}], products [{title, description, category ("credits" with the class count in the title, "default" for a drop-in, "memberships"), billingInterval ("weeks", "months", "years") and billingIntervalCount for a membership, variants: [{basePrice, currency}]}] with prices in the studio's currency, in dollars. Leave out a price you could not read.

Returns

How many locations, rooms, instructors, activities, sessions and products were created, all hidden (activities staff-only, products not for sale), and any products it couldn’t turn into a pass or membership.

Example

POST this to the endpoint above.

JSON-RPC
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "apply_migration_catalog",
    "arguments": {
      "catalog": {
        "locations": [
          {
            "name": "Hot Flow Glebe"
          }
        ],
        "activities": [
          {
            "name": "Hot Flow",
            "durationMinutes": 60
          }
        ],
        "sessions": [
          {
            "activityName": "Hot Flow",
            "startAt": "2026-12-02T13:00:00Z",
            "endAt": "2026-12-02T14:00:00Z",
            "staffNames": [
              "Ana Ruiz"
            ]
          }
        ],
        "products": [
          {
            "title": "10 Class Pack",
            "category": "credits",
            "variants": [
              {
                "basePrice": 180
              }
            ]
          }
        ]
      }
    }
  }
}
content
Created as hidden drafts: 1 location(s), 0 room(s),
1 instructor(s), 1 activity(ies), 1 session(s), 1 product(s).

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.

apply_migration_catalog
Create the studio's catalog in this business from what its old platform's public booking pages show: locations and rooms, the instructors who teach, each class type as an activity, the upcoming schedule, and class packs and memberships. Everything is created HIDDEN (activities staff-only, products not for sale) for the owner to review and publish in the dashboard. Anything that already exists by name is reused, so calling it again adds only what is new. Use only data read from public pages.

See also