Buy package
buy_packageStarts the purchase of a package of sessions for your user. Returns checkoutUrl, a Stripe page where they pay. Call it only after your user agrees to buy it, at its price. Nothing is bought until they pay. Then they get an email with their package link, /pkg/…, to book its sessions. To book with it, call book with package_token.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"package_id": "<package_id>",
"name": "<name>",
"email": "<email>"
},
"name": "buy_package"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Your user's full name. | |
| Yes | Your user's email address: their package link goes there. | ||
| locale | No | The language of the emails to your user about it. Defaults to the host's language. | |
| package_id | Yes | The package's id, from the host's package link. |