GuideUpdated 6 December 2026.
How do you stop an AI agent from overspending?
Give it a limit that is enforced outside the model, by the software that acts for it or by the payment itself, not one that is only written in its instructions. When the agent negotiates a price, also keep that limit from the other side, fix what is being bought, and keep a record someone else can check.
Why telling the model is not enough
A budget in a prompt is a request. Language models follow it most of the time, but not every time: they misread a number, slip a digit, or are talked round by the other side. Researchers who benchmarked agents buying and selling against each other found that such failures "can result in financial losses for both consumers and merchants, such as overspending or accepting unreasonable deals" (Zhu et al., 2025).
A limit only holds if something other than the model refuses to go past it.
Where a limit can be enforced
| Where | How | What it stops | What it does not stop |
|---|---|---|---|
| In the instructions | The budget is stated in the agent's prompt. | Nothing, if the model gets it wrong. | Slips, misreadings and persuasion. |
| In the agent's software | The code that calls tools or sends offers refuses an amount above the limit. | The model's own mistakes. | A bug or a change in that software, and nobody outside can see that the check ran. |
| At payment | The card or credential the agent uses is capped: an amount, a budget, approved merchants. Visa describes "spending limits, approval workflows, authentication requirements" for agent payments (Visa Intelligent Commerce). In the Agent Payments Protocol, a user-signed payment mandate can carry a maximum amount and a total budget (AP2). | Paying more than the cap. | Paying the full cap when a lower price was available, or agreeing to the wrong thing within it. |
| At the agreement | The price the agent agrees is held within a limit fixed before it starts, the terms are fixed, and the limit stays private. | Agreeing a price or terms the owner did not approve, and giving the limit away. | Payment itself, which happens afterwards. |
These layers add up rather than compete. A payment cap is the last line; the earlier layers decide what the agent agrees to before anything is paid.
What changes when the agent negotiates
Buying at a fixed price is mostly a payment problem: cap the credential and you are covered. Negotiating is different, in three ways.
The cap becomes the price
A payment cap stops the agent paying more than the cap. It does not stop the agent paying all of it. An agent that tells the other side "my budget is £500" has set the price at £500.
The limit has to stay private
In a negotiation, the most useful thing the other side can learn is your limit. An agent that talks freely to another agent can say it, or hint at it, even when told not to. A limit that is enforced but readable protects the budget and gives away the bargain.
The deal has to stay the deal
A good price for the wrong product, a different quantity or delivery charged separately is still overspending. The terms need to be fixed before the price is agreed, so the price cannot later be said to cover something else.
A checklist
- Set the limit outside the model. A person decides it, and it is stored where the model cannot change it.
- Enforce it in software. The code that sends an offer or a payment refuses one beyond the limit, whatever the model asks for.
- Cap the payment credential. Amount, budget and merchants, as the last line.
- Ask a person above a threshold. Approval for larger amounts, and two people for the largest.
- Keep the limit from the other side. Do not let the agent state it, and prefer channels where it cannot.
- Fix the terms first. What is bought, how much, delivery, payment and what the price covers.
- Keep a record others can check. What the agent was allowed to do, what it agreed, and when, in a form an auditor or the counterparty can verify without trusting you.
Limits on more than the price
When an agent can negotiate quantity, delivery or payment terms as well as the price, one number is no longer enough. A price that is fine for 1,000 units may not be for 100, and a long payment term may only be acceptable with fast delivery. The owner then needs two kinds of rule, kept apart.
| Constraints | Preferences | |
|---|---|---|
| What they are | Hard limits, some of them conditional. | Priorities, and what the agent may trade for what. |
| Examples | "If the quantity is over 500, the unit price is at most £8." "If payment is at 60 days, delivery is within three weeks." | "Delivery matters more than payment terms." "Pay up to 3% more for delivery two weeks sooner." |
| Enforced by | Software outside the model, which refuses an offer that breaks one. | Nobody. The agent uses them to choose among offers that meet the constraints. |
| Who sees them | Nobody on the other side. | Nobody on the other side. |
Constraints give the guarantee; preferences give a good deal within it. Two more points follow:
- Check the rules before the agent starts. Rules that contradict each other, or cannot all be met, leave the agent nothing it may offer. A preview of deals the rules would accept catches that before the other side does.
- Priorities leak too. Over several rounds, the way an agent's offers move can show what it cares about most, even when no limit is stated. Keep the rounds few and the offers complete.
Where Mattering fits
Mattering covers the agreement layer for agents that negotiate a price with another agent. Before the first round, a company fixes its agent's limit in a signed mandate; the limit is committed, so the other side cannot read it, and it cannot be changed afterwards. Named people can be required to approve it. The terms are fixed by a term sheet; today the agents negotiate the price, and limits across several terms at once are planned. Each round, each agent seals one offer; the software that seals offers refuses one beyond the limit, and the agents exchange no messages, so neither can state its limit. Every round is logged so that any change would show, and anyone the two sides share the record with can check the result. How it works.
What it does not do: Mattering does not handle payment, so a capped credential is still the last line. It is not for buying at a fixed price, where a payment cap is enough. It is a public preview, not yet independently security reviewed. And the protocol cannot stop a dishonest company's own software sealing an offer past its own mandate; that shows when the limit is opened to an auditor. The full list is in claims and limits.
Common questions
Is a spending limit in the prompt enough?
No. It is an instruction the model usually follows. A limit holds only when software outside the model, or the payment itself, refuses to go past it.
Do card controls stop an agent overspending?
They stop it paying more than the cap. They do not stop it agreeing a worse price below the cap, or agreeing to different terms.
Does AP2 set a budget for an agent?
Yes, at payment. In AP2 version 0.2, an open payment mandate signed by the user can set a maximum amount and a total budget. How the agent reaches the deal is outside its scope.
Should an agent ever tell the other side its budget?
Not before it has to. Once the other side knows the limit, the limit tends to become the price.
What is the difference between a constraint and a preference?
A constraint is a hard limit the agent's software refuses to break, such as a maximum price for a given quantity. A preference is a priority the agent uses to choose between acceptable offers, such as valuing faster delivery over longer payment terms.
Sources
- Zhu et al. (2025), The Automated but Risky Game: Modeling and Benchmarking Agent-to-Agent Negotiations and Transactions in Consumer Markets, arXiv 2506.00073.
- AP2 payment mandate, Agent Payments Protocol version 0.2.
- Visa Intelligent Commerce, which Visa describes as in deployment.
Related: What is agent-to-agent negotiation? · What is an agent mandate? · Can AI agents negotiate with each other? · A2A, AP2, MCP, ACP, UCP and x402: where does negotiation fit?