MCP Tools — Wallet
Balances, transactions, and wallet operations.
10 tools in this registry. Every tool is callable over the MCP endpoint (
/api/mcp); the badge on each shows which auth modes may invoke it. See Auth models and the MCP overview.
rivr.payments.backfill_connect_accounts
Session
MCP Token
Ensure every SUBSCRIBING member has a Stripe Connect payment account: local agents holding an active/trialing membership subscription (federated projections are excluded — their accounts belong to their home instance). New activations are provisioned automatically by the Stripe webhook — this backfills members who subscribed before that wiring, and retries activation-time failures. Idempotent and re-run safe — agents that already have an account are counted as existing, and one agent failing does not abort the batch (per-agent failures are returned). Requires platform admin authority (siteRole).
Parameters
No parameters.
rivr.receipts.mark_fulfilled
Session
MCP Token
Mark a sale delivered, as its seller (or an admin of the seller group, or a site admin). Records fulfilmentStatus fulfilled with fulfilledAt and fulfilledById on the buyer's receipt; from then on a refund request on it goes to the seller for approval instead of refunding at once, and the buyer's receipt reads "Delivered on …". Refused when already marked or when the purchase was refunded.
Parameters
| Param | Type | Required | Description |
|---|---|---|---|
receiptId | string | yes |
rivr.receipts.request_refund
Session
MCP Token
Request a refund for a receipt the actor owns. Inside the 14-day refund window an undelivered purchase (not marked delivered by the seller, and no booking or event already past) is refunded at once (status refund_requested, or refunded for wallet purchases); anything else opens a request the seller or a site admin must approve or decline (status refund_review).
Parameters
| Param | Type | Required | Description |
|---|---|---|---|
receiptId | string | yes |
rivr.wallet.deposit_intent
Session
MCP Token
Create a Stripe PaymentIntent to deposit funds into the actor's personal wallet. Returns a clientSecret the caller must confirm client-side; the agent cannot complete card entry itself.
Parameters
| Param | Type | Required | Description |
|---|---|---|---|
amountCents | number | yes |
rivr.wallet.group_deposit
Session
MCP Token
Move funds from the actor's personal wallet into a group's wallet. amountCents is in cents.
Parameters
| Param | Type | Required | Description |
|---|---|---|---|
amountCents | number | yes | |
groupId | string | yes |
rivr.wallet.household_withdraw
Session
MCP Token
Request a withdrawal from a household treasury wallet. amountCents is in cents; purpose is a required free-text reason. This opens a pending request: no money moves until a household admin approves it, which pays the amount into the requester's personal wallet.
Parameters
| Param | Type | Required | Description |
|---|---|---|---|
amountCents | number | yes | |
householdId | string | yes | |
purpose | string | yes |
rivr.wallet.purchase
Session
MCP Token
Purchase a marketplace listing paid from the actor's wallet balance. subtotalCents is in cents. Optional bookingDate/bookingSlot for slot-based listings.
Parameters
| Param | Type | Required | Description |
|---|---|---|---|
listingId | string | yes | |
subtotalCents | number | yes | |
bookingDate | string | — | |
bookingSlot | string | — | |
dealPostId | string | — |
rivr.wallet.purchase_tickets
Session
MCP Token
Buy event tickets paid from the actor's wallet balance. selections is a list of { ticketProductId, quantity }.
Parameters
| Param | Type | Required | Description |
|---|---|---|---|
eventId | string | yes | |
selections | object[] | yes |
rivr.wallet.request_payout
Session
MCP Token
Request a seller payout of available Stripe-Connect balance. amountCents is in cents. speed is 'standard' or 'instant'. ownerId targets a group payout the actor administers (default: actor). RETRY-SAFE: the payout is keyed on the request content, so repeating an identical call replays the SAME payout instead of paying twice. To intentionally issue a SECOND payout with identical amount/speed/owner, pass a new distinct requestKey.
Parameters
| Param | Type | Required | Description |
|---|---|---|---|
amountCents | number | yes | |
ownerId | string | — | |
requestKey | string | — | Optional caller-chosen idempotency token. Omit to retry safely; supply a NEW value only to deliberately request an additional, otherwise-identical payout. |
speed | enum(standard \ | instant) | — |
rivr.wallet.transfer
Session
MCP Token
Send money (P2P) from the actor's personal wallet to another agent's wallet. amountCents is in cents.
Parameters
| Param | Type | Required | Description |
|---|---|---|---|
amountCents | number | yes | |
recipientAgentId | string | yes | |
message | string | — | Optional note stored with the transaction. |