Set agent spend caps
spend_cap_set0.002 USDC per call via x402, no key (unpaid call returns PaymentRequired; retry with params.meta["x402/payment"]). Advisory spend caps that complement your wallet's enforced hard limits (Coinbase Agentic Wallet / CDP spendControls); cannot block payments. Set per-call / per-day (rolling 24h) / per-session USD limits and optional allow-lists (payTo, hosts, networks) for a payer wallet address (replaces the previous policy for that payer). Optional ownerLock secret so the agent cannot loosen the caps later. Advisory and non-custodial. Needs a key mts (X-API-Key header or apiKey argument). No key? call settle_trial_key (free, 50 calls/7 days). Full plan 1 USDC/30d incl. 1,000 calls via x402.
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": "spend_cap_set"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| payer | No | Payer / agent wallet address 0x… (40 hex). | |
| apiKey | No | Your MoneyTools Settle key mts_… (alternative to the X-API-Key header). No key: call settle_trial_key. | |
| ownerLock | No | Owner secret (>=12 chars); once set, caps can only be loosened with it. | |
| perDayUsd | No | Max USD per rolling 24h. | |
| allowHosts | No | Allowed seller hostnames. | |
| allowPayTo | No | Allowed seller payTo addresses. | |
| perCallUsd | No | Max USD per single payment, e.g. "0.10". | |
| allowNetworks | No | Allowed CAIP-2 networks. | |
| perSessionUsd | No | Max USD per sessionId. |