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.
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 | |||