Rightshold™ Sign up

Answers · agent payments

Mastercard added Token Spend Controls for Agent Pay and virtual card tokens. What limits can be set on an agent's payment token, who sets them, how are they enforced, and what do I still have to build myself as an AI agent developer?

Last updated

TL;DR: They put the limit on the payment token itself, and Mastercard enforces it on the network. Mastercard's MDES Customer Service release notes (July 2026 release, in production since August 5, 2026, available globally) let issuers enabled for the Mastercard Agent Pay and Mastercard Virtual Card Token programs set token-level rules: a per-transaction limit, daily, weekly and monthly limits, an absolute lifetime limit, a single-use setting (with an expiry date; the token stops working after its first successful non-zero transaction), and allow or block lists by merchant category code, merchant ID, transaction category code, transaction type and geography. Mastercard evaluates each tokenized transaction against those rules and declines the ones that break them, so the agent can't argue its way past them. The catch for developers is who holds the controls. They are issuer APIs (search, create, update and delete), and creating or changing a rule happens after cardholder authentication through the issuer. Issuers can optionally support them, so you get them only if the bank or card-issuing platform behind your agent's card exposes them. They also can't see what's in the cart, a budget that spans several cards or rails, or whether the purchase made sense. Treat them as the last stop: keep your own task-level check before the agent pays, and treat a network decline as final.

What should I check, step by step?

1. Ask your issuer or card-issuing platform whether it supports Mastercard Token Spend Controls for the tokens your agents use, which rule types it exposes, and whether the cardholder or your platform can set them through its app or API. The release notes make support optional for issuers.

  1. Set the tightest token rule that fits the task: single use with a short expiry for one purchase; a per-transaction limit plus an absolute lifetime limit for a recurring job; weekly or monthly limits only where the job really repeats.
  2. Lock the token to where the agent should buy: a merchant ID allowlist for a known seller, or merchant category codes and geography for a class of sellers. Block lists are useful for categories the agent should never pay, such as gambling or cash-like transactions.
  3. Find out from the issuer how daily, weekly and monthly windows are counted (time zone, calendar boundaries) and how foreign-currency amounts count against a limit. The release notes say calendar week and calendar month but don't define the day boundary or currency handling.
  4. Keep the rule-changing step away from the agent. Rules are created and updated after cardholder authentication; if the agent can reach that authentication (an emailed code, a signed-in banking session), it can widen its own token.
  5. Check each purchase against your own policy before the agent pays: task, quote, merchant, running total across every card and rail the agent uses. The token can't see your other tokens, your stablecoin wallet or your budget for the task.
  6. Handle declines on purpose. A token-rule decline means the purchase is outside what was set; the agent should stop and report it, not retry, split the charge or switch to another payment method.
  7. Record which token, rule set and limit each purchase ran under, so a dispute or audit can match the charge to what was allowed at the time.

What limits can Mastercard Token Spend Controls put on an Agent Pay or virtual card token?

Mastercard's MDES Customer Service release notes for July 2026 introduce Token Spend Controls APIs. Issuers enabled for the Mastercard Virtual Card Token (MVCT) and Mastercard Agent Pay programs can define token-level spending rules, and Mastercard evaluates each tokenized transaction against them and declines those that violate them. The notes list the MTF test date as July 29, 2026 and production as August 5, 2026, with the functionality available globally.

Who can set Mastercard Token Spend Controls on an AI agent's token, and does every issuer support them?

The four APIs are search, create, update and delete token spend controls, and they sit in MDES Customer Service, which is for issuers and their customer service. In Mastercard's flow the cardholder logs in to the issuer's app, and the issuer creates, updates or deletes rules after cardholder authentication. An agent developer doesn't call these APIs directly; they come to you, if at all, through the issuer or the card-issuing platform you work with.

What doesn't a card-network token spending limit protect against when an AI agent pays?

It limits amounts and places, not purchases. A charge for the wrong item at an allowed merchant under the limit passes every rule. Records of what the customer actually asked for are a different layer; Mastercard's own Agent Pay work points to its Verifiable Intent for that, and protocols like AP2 carry signed mandates.

How do I ask Rightshold about this (free, no key)?

Add the MCP server https://www.rightshold.com/mcp to Claude, Cursor, ChatGPT, Grok or VS Code, then ask: “Before my travel agent pays the hotel with its Mastercard agent token, check the $412 charge against its own spending policy for this task and record the decision with the token reference, so I have a record that doesn't depend on the card network's logs.”

One-click setup

{
  "tool": "authorize_spend",
  "arguments": {
    "credential_id": "YOUR_AGENT_CREDENTIAL_ID",
    "amount_minor": 41200,
    "currency": "USD",
    "merchant_domain": "hotel.example",
    "category": "travel",
    "reference": "agent-token-ref-and-booking-id"
  }
}

Rightshold records spending decisions your agent asks it for. It never holds or moves money, isn't a card issuer or part of Mastercard, and doesn't connect to card networks, issuers or payment processors. The Token Spend Controls details come from Mastercard's MDES Customer Service release notes for July 2026 as checked on November 10, 2026; what your issuer offers may differ. Not financial advice.

What are the sources?

Related

Not legal advice. JSON · Markdown · All answers

Get a free API key in one call

No card and no email needed. 100 free credits; the license and policy checks stay free without a key.

curl -s -X POST https://www.rightshold.com/v1/accounts/signup -H "Content-Type: application/json" -d '{"accept_terms":true}'
export RIGHTSHOLD_API_KEY=rs_...   # the api_key from the reply (shown once)
curl -s https://www.rightshold.com/v1/licenses/check -H "Authorization: Bearer $RIGHTSHOLD_API_KEY" \
  -H "Content-Type: application/json" -d '{"license":"MIT","intended_use":{"commercial_use":true}}'