Guided purchase (text)
purchase_wizardStateful text-only purchase flow for clients without widget support. Called repeatedly with the same session_token, one question at a time, until status is "complete"; the first call takes empty arguments. The final "confirm" answer creates a real order.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "purchase_wizard"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| action | No | "back" to return to the previous step | |
| answer | No | Answer to the current question | |
| session_token | No | Omit on the first call — a new session is minted |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| hint | No | ||
| step | No | ||
| error | No | ||
| result | No | ||
| status | Yes | in_progress | complete | error | |
| options | No | ||
| summary | No | ||
| question | No | Ask the user this | |
| session_token | Yes | Pass back on every call of this session |