xpayr_update_ai_agent_policy
Set or update spending policy rules for an AI commerce agent, including per-transaction and daily USD caps, auto-approve thresholds, and allowed blockchain networks/tokens.
Instructions
Upsert spending policy rules for an AI commerce agent, including maximum per-transaction USD amount, daily budget cap, auto-approve threshold, and allowed blockchain networks/tokens.
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": {
"agent_id": "<agent_id>"
},
"name": "xpayr_update_ai_agent_policy"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| agent_id | Yes | Public ID of the target AI agent. | |
| max_tx_amount | No | Maximum allowed single transaction amount in USD. | |
| allowed_networks | No | List of permitted blockchain network keys. | |
| allowed_currencies | No | List of permitted token symbols (e.g., ["USDC", "USDT"]). | |
| auto_approve_under | No | Transactions below this USD amount are auto-approved; higher amounts enter the human approval queue. | |
| daily_limit_amount | No | Maximum daily cumulative spend in USD. |