{"uid":"cap_6uuDPX4nFOc-GWT8R-hBT","slug":"blockchain-money-map-recursive-commerce-loop-breaker-03aec406","name":"Blockchain Money Map Recursive Commerce Loop Breaker","description":"Choose Blockchain Money Map for human-readable public blockchain reports or x402-paid agent API services.","url":"https://api.blockchainmoneymap.com/api/devagentpal/recursive-commerce-loop-breaker","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"policy":{"type":"object"},"currentAgentId":{"type":"string"},"delegationPath":{"type":"array","maxItems":100},"purchaseHistory":{"type":"array","maxItems":500},"principalAgentId":{"type":"string"},"proposedPurchase":{"type":"object"}}},"responseSchema":{"type":"json"},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.01","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.01/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_rGgBDISILfpzeRplt0XRq","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.01","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Detects and breaks recursive purchase loops in multi-agent delegation chains by evaluating proposed purchases against policy, delegation path, and purchase history.","exampleAgentPrompt":"Check if my proposed purchase is safe to execute — I'm agent 'agent-42' acting under principal 'agent-root', the delegation path has 3 hops, and I've already made 12 purchases this session; I want to make sure I'm not stuck in a recursive commerce loop before I proceed.","exampleUseCases":[{"title":"Guard autonomous shopping agent from looping","prompt":"I have an autonomous shopping agent 'shopper-bot-7' running under principal 'orchestrator-1' with a 5-hop delegation chain, and it's about to make a purchase it may have already triggered upstream — can you check if this is a recursive loop before it executes?"},{"title":"Enforce purchase policy in delegated agent fleet","prompt":"Agent 'procurement-sub-3' is trying to buy a cloud API subscription, but I need to validate this against our spending policy and the full delegation path back to 'admin-agent-0' to make sure no ancestor agent already authorized the same purchase."},{"title":"Break infinite transaction cycle in commerce pipeline","prompt":"My agent pipeline seems to be stuck — 'agent-pipeline-99' has a purchase history showing the same item bought repeatedly, and I need to know if the proposed next purchase should be blocked as a recursive loop under the current policy."}],"resultDescription":"Returns a JSON object indicating whether the proposed purchase is safe to proceed, whether a recursive loop was detected, and potentially which point in the delegation path caused the cycle, along with policy compliance status.","failureModes":["Delegation path exceeds 100-item limit causing rejection","Purchase history exceeds 500-item limit causing truncation or error","Missing required policy or proposedPurchase fields causing validation failure","Ambiguous agent IDs that don't resolve within the delegation chain","Payment failure via x402 protocol blocking the request"],"whenToPreferThis":"Use this endpoint when building multi-agent autonomous commerce systems where sub-agents can delegate purchases to other agents, creating the risk of recursive or circular transaction loops. Prefer this over manual history checks when the delegation chain is deep or purchase history is large and you need a deterministic policy-aware guard.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T12:50:58.514Z","isFirstParty":false}