request_payment
お金を使う前に必ず呼ぶツール。支払先・金額・理由を財布番に申請し、許可が出たかを返す。status が approved のときだけ支払ってよい。pending_approval は持ち主の承認待ちで、まだ支払ってはいけない(持ち主のスマホに通知が届く)。denied や expired のときは支払わず、reason をユーザーに伝える。 / Call this BEFORE spending any money. Pay only when status is approved. pending_approval means the owner must approve on their phone — do not pay yet. When approved, the result includes payment_token: a single-use token that payment tools can verify, so payments made without approval can be refused. If the payment is a subscription or renews automatically, set recurring. Before buying something you may already have paid for, call list_payments. If you get pending_approval, poll check_payment_status instead of calling request_payment again (a repeat of a pending request returns the same request).
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": {
"merchant": "<merchant>",
"amount": "<amount>",
"reason": "<reason>"
},
"name": "request_payment"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| amount | Yes | 支払う金額(税込) / amount to pay, tax included | |
| reason | Yes | なぜこの支払いが必要か。持ち主が承認するときに読む / why this payment is needed (the owner reads this) | |
| currency | No | amount の通貨。省略すると持ち主の通貨 / currency of amount; defaults to the owner's currency | |
| merchant | Yes | 支払先のサービス名や店名 / merchant or service name (e.g. OpenAI API, AWS) | |
| recurring | No | サブスク・定期購入・自動更新なら、その間隔を必ず指定する。定期購入は金額に関係なく持ち主の承認が必要 / If this starts or renews a subscription or any recurring charge, set the billing interval. Recurring charges always need the owner's approval, whatever the amount | |
| idempotency_key | No | 同じ支払いをやり直すときは同じ値を渡す。新しい申請は作られず、前の申請が返る / Pass the same value when retrying the same payment; the earlier request is returned instead of creating a new one | |
| wait_for_approval_seconds | No | 承認待ちのとき待つ秒数(最大45秒) / seconds to wait for approval |