spend_demo
Simulate a card spend with cap token; returns spent:true for allowed demo checks or spent:false/isError when denied, no real money moved. Get token via cap_preflight or cap_check first.
Instructions
Week-2 demo spend hop: POST /spend-demo with card + action:spend + cap_token (+ optional amount_note string). Deny → isError / spent:false, no hop. Allow → spent:true demo only (no money). Get token via cap_preflight/cap_check first.
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": {
"cap_token": "<cap_token>"
},
"name": "spend_demo"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| card | No | ||
| cap_token | Yes | ||
| amount_note | No |