Rail

v0.1.1
io.github.tstockham96/rail-mcp Checked 1 day ago Published 2 months ago

Budgets, propose-then-approve, and receipts for agents that buy for a human.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

set_budget Set budget

Overwrite the local spend budget. Changes the ledger limit only. Does not spend money, approve a card, settle a purchase, or contact Stripe or Link. Passing the same amount again does not add to the budget.

ParameterTypeDescription
amount_usd *numberBudget amount in USD
currencystringCurrency code; default USD
notestringOptional note for this budget

get_budget Get budget

Read the active budget, amount spent, amount remaining, and the count of pending proposals. Does not change the ledger, spend money, or contact Stripe or Link.

propose_purchase Propose purchase

Record a pending purchase intent only. Moves no money, creates no receipt, approves no card, and does not contact Stripe or Link. Needs a later human approval via decide_proposal before anything settles. When a budget exists and the amount is above what remains, the proposal is stored with over_budget set and still spends nothing.

ParameterTypeDescription
amount_usd *numberPurchase amount in USD
merchant *stringMerchant or seller name
rationalestringWhy the agent wants this
skustringSKU or product identifier
urlstringProduct or checkout URL

list_proposals List proposals

Read purchase proposals filtered by status: pending (default), approved, rejected, or all. Does not approve, reject, spend money, or contact Stripe or Link.

ParameterTypeDescription
statusstringFilter: pending (default), approved, rejected, or all

decide_proposal Decide proposal

Approve or reject one pending proposal. This is the step a human should confirm. decision=approve settles the purchase: in the default dry-run mode it writes a settled_dry_run receipt, stamps a fake settlement ref (lsrq_dry_…), and decrements the remaining budget, without calling the network. decision=reject spends nothing and writes no receipt. The proposal can be decided only once; repeating the call does not settle again. Live charging stays off unless separate live gates are set on purpose.

ParameterTypeDescription
decision *stringapprove settles; reject spends nothing
proposal_id *stringProposal id (prop_…)
notestringOptional decision note

get_receipts Get receipts

Read receipts, newest first, including dry-run settlements and refunds. Does not refund, spend money, or contact Stripe or Link.

ParameterTypeDescription
limitintegerMax receipts to return

refund_receipt Refund receipt

Reverse a settled dry-run receipt and restore that amount to the remaining budget. This is the step a human should confirm. Does not contact Stripe or Link. A receipt can be refunded only once; repeating the call does not refund again. Refuses receipts that are not settled_dry_run.

ParameterTypeDescription
receipt_id *stringReceipt id (rcpt_…)
reasonstringRefund reason