Purchase package
purchase_packageSell a class package to a participant: creates a pass with credits_remaining = the package's credits and an expiry from validity_days.
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": {
"participant_id": "<participant_id>",
"class_package_id": "<class_package_id>"
},
"name": "purchase_package"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| participant_id | Yes | ||
| class_package_id | Yes |