check_agent_spend_limits
Validate an agent's proposed spend against per-transaction, daily, and monthly caps. Returns whether allowed, remaining daily limit, and any violations.
Instructions
Guardrail an agent's proposed spend against per-transaction, daily and monthly caps. Stateless: pass the current spent_today/spent_month running totals; nothing is stored. Returns is_allowed, the remaining daily cap and any violations.
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>",
"proposed_amount_usd": "<proposed_amount_usd>"
},
"name": "check_agent_spend_limits"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| agent_id | Yes | Identifier of the spending agent. | |
| daily_cap | No | Maximum USD spendable per day. | |
| per_tx_cap | No | Maximum USD per single transaction. | |
| monthly_cap | No | Maximum USD spendable per month. | |
| spent_month | No | USD already spent this month (caller-supplied). | |
| spent_today | No | USD already spent today (caller-supplied). | |
| proposed_amount_usd | Yes | Proposed spend, in USD. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||