# x402 Agent Spend Recurrence Guard

> x402 Agent Spend Recurrence Guard is a paid API for AI agents from x402-wallet.558686.xyz, paid per call via x402, $0.012/call, status unknown (last checked 2026-09-13).

Evaluates whether a recurring paid API call pattern stays within daily budget limits and cooldown constraints, returning a spend decision and recurrence policy for AI agent wallet management.

## Facts

- Endpoint: POST https://x402-wallet.558686.xyz/v1/tools/x402-agent-spend-recurrence-guard
- Price: $0.012/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-13
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/x402-agent-spend-recurrence-guard-bd3f1066
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_OzjyD-n4rViKSrhk0Nrpr

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability x402-agent-spend-recurrence-guard-bd3f1066 -d '<json body>'
```

Example prompt: Before you retry that $0.012 API call, check the spend recurrence guard with a daily budget of $0.05, 3 requested calls, and a 30-second cooldown — make sure we're allowed to proceed.

## When to prefer this

Use this endpoint when your AI agent needs to enforce deterministic spend caps and cooldown policies before making recurring paid API calls, especially in loop or retry scenarios where runaway spending is a risk. Prefer this over manual budget checks when you need a structured recurrencePolicy and stop conditions returned in a single call.

## Known failure modes

- Missing or invalid routePriceUsd causes schema validation error
- dailyBudgetUsd of 0 or negative may return an immediate block decision
- requestedCalls exceeding logical limits may return maxPaidCallsPerDay as false
- cooldownSeconds of 0 may produce undefined recurrence policy behavior
- Payment failure (402) if the $0.012 USDC call itself cannot be settled

## How this service works

A buyer-side control console for signature risk, EIP-712 review, transaction decoding, ERC20 allowance risk, Permit/Permit2 approvals, transaction simulation summaries, spend guard policy, receipt gate enforcement, and private-key boundaries.

## Output

Returns a JSON object with a 'decision' (whether to allow or block the calls), 'stopConditions' describing when the agent must halt, a 'recurrencePolicy' detailing frequency and limits, and 'maxPaidCallsPerDay' indicating the ceiling on paid calls within the daily budget. The response is deterministic given the same inputs.

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "ok": true,
  "tool": "x402-agent-spend-recurrence-guard",
  "input": {
   "routePriceUsd": 0.012,
   "dailyBudgetUsd": 0.05,
   "requestedCalls": 3,
   "cooldownSeconds": 30
  },
  "route": "/v1/tools/x402-agent-spend-recurrence-guard",
  "result": {
   "decision": "decision_example",
   "stopConditions": "stopConditions_example",
   "recurrencePolicy": "recurrencePolicy_example",
   "maxPaidCallsPerDay": true
  },
  "project": "x402-agent-wallet-tools",
  "deterministic": true
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/x402-agent-spend-recurrence-guard-bd3f1066/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402-wallet.558686.xyz](https://www.zero.xyz/host/x402-wallet.558686.xyz/llms.txt)
