vc_idempotency_guard
Check if a paid action is safe from duplicate execution by verifying an idempotency key before retrying payments or side-effecting operations.
Instructions
Check whether a paid action is protected against duplicate execution via an idempotency key.
Use before retrying a payment or other side-effecting call. Do not use for content fetch — use vc_web_search / vc_page_markdown. Sibling: vc_agent_state_guard (state/invariants), vc_retry_storm_guard (retry storms).
Auth: X-Vibes-Key or x402 (~$0.02). Advisory only; no local writes. Returns JSON assessing key presence/durability, or payment_required.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| action | No | Action being protected. | |
| durable_store | No | Where keys are stored (redis, db, etc.), if known. | |
| idempotency_key | Yes | Client key that should uniquely protect this paid action. | |
| payment_signature | No | Optional x402 PAYMENT-SIGNATURE if not using X-Vibes-Key. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |