spend_protect
Check each payment operation against dry-run, budget, blacklist, whitelist, frequency, and single-limit gates. Approve with ok=true or reject with ok=false and a reason.
Instructions
保护一次花钱操作。走干跑/预算/黑名单/白名单/频率/单次上限闸门。通过返回 ok=true; 被拦返回 ok=false + reason
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": {
"action": "<action>",
"amount": "<amount>",
"to": "<to>"
},
"name": "spend_protect"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | Yes | 收款方, 如 麦当劳/xxx@example.com | |
| agent | No | 调用方 Agent 身份 ID(未注册默认拒绝, 建议必填) | |
| action | Yes | 操作名, 如 下单/转账/充值 | |
| amount | Yes | 金额(元) |