preview_checkout
Price a registration before anyone pays.
Anonymous, or a Bearer token for viewer tools
Endpoint
endpoint
https://go.sessions.website/api/mcpWhen to use it
Before quoting any figure to a person — this is the only tool here that returns real money.
To check whether a discount or gift-card code applies before offering it.
Parameters
sessionstringrequiredSession id to price.
discountCodestringoptionalOptional discount code.
giftCardCodestringoptionalOptional gift-card code.
Returns
Subtotal, discount, tax, gift-card credit, total and amount due, plus any per-field errors explaining why a code did not apply.
Example
POST this to the endpoint above.
JSON-RPC
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "preview_checkout",
"arguments": {
"session": "<session id>",
"discountCode": "AUTUMN10"
}
}
}content
Subtotal: $24.00
Discount: -$2.40
Tax: $0.00
Total: $21.60
Amount due: $21.60What 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.
preview_checkout
Compute the price breakdown (subtotal, discount, tax, gift-card credit, total, amount due) for registering in a session — before any payment. Optionally apply a discount or gift-card code.