vc_idempotency_guard
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.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"idempotency_key": "<idempotency_key>"
},
"name": "vc_idempotency_guard"
}
}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 |