create_product
Create a pass (a pack of sessions) or a membership.
Endpoint
https://business.sessions.website/@<handle>/api/mcpWhen to use it
For the "create something to sell" setup step.
When
import_migration_balanceslists a source product with no Sessions product to map to.
Parameters
kindstringrequiredOne of: pass, membership
namestringrequirede.g. "10-class pack".
descriptionstringoptionalpricenumberrequiredPrice in cents (15000 is $150.00); a membership's is per cycle.
sessionCountnumberoptionalSessions included. Required for a pass; for a membership it is per cycle, and leaving it out makes it unlimited.
billingIntervalstringoptionalMembership only: how often it bills (default months).
One of: weeks, months, years
billingIntervalCountnumberoptionalMembership only: bill every N intervals (default 1).
visibilitystringoptionalvisible (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.
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "create_product",
"arguments": {
"kind": "membership",
"name": "Unlimited",
"price": 15000
}
}
}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.
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.