Skip to content

create_product

Create a pass (a pack of sessions) or a membership.

Authentication required

Endpoint

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

When to use it

  • For the "create something to sell" setup step.

  • When import_migration_balances lists a source product with no Sessions product to map to.

Parameters

kindstringrequired

One of: pass, membership

namestringrequired

e.g. "10-class pack".

descriptionstringoptional

pricenumberrequired

Price in cents (15000 is $150.00); a membership's is per cycle.

sessionCountnumberoptional

Sessions included. Required for a pass; for a membership it is per cycle, and leaving it out makes it unlimited.

billingIntervalstringoptional

Membership only: how often it bills (default months).

One of: weeks, months, years

billingIntervalCountnumberoptional

Membership only: bill every N intervals (default 1).

visibilitystringoptional

visible (default) is for sale; hidden is not listed.

One of: visible, hidden

Returns

The product with its id, price and visibility, or per-field errors.

Example

POST this to the endpoint above.

JSON-RPC
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "create_product",
    "arguments": {
      "kind": "membership",
      "name": "Unlimited",
      "price": 15000
    }
  }
}
content
Created membership "Unlimited" [<id>]: 150.00 every 1 months, unlimited, visible.

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_product
Create something customers buy: a pass (a pack of sessions) or a membership (billed every week, month or year; unlimited, or a number of sessions a cycle). Prices are in cents. Selling needs Stripe connected, which only the owner can do, but products can be set up first.

See also