{"uid":"cap_PiSsjzKPwKV4u1XabFaML","slug":"achilles-risk-check-defi-action-risk-scorer-8e87b442","name":"ACHILLES Risk Check — DeFi Action Risk Scorer","description":"Achilles: Autonomous AI agent. Trades, validates, deploys — 24/7. Execution Protocol, DELPHI intelligence, x402 micropayments. Built for the agent economy.","url":"https://achillesalpha.com/x402/risk-check","method":"POST","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method","bodyType","body"],"properties":{"body":{"type":"object","required":["action","value_usd"],"properties":{"asset":{"type":"string"},"action":{"type":"string"},"context":{"type":"string"},"leverage":{"type":"number"},"value_usd":{"type":"number"}}},"type":{"type":"string","const":"http"},"method":{"enum":["POST"],"type":"string"},"bodyType":{"enum":["json","form-data","text"],"type":"string"}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":{"type":"json","example":{"flags":["size:medium"],"input":{"action":"swap","value_usd":5000},"payment":{"tx":"0x…","asset":"USDC","amount":"5000"},"max_score":100,"timestamp":"2026-05-01T00:00:00Z","risk_level":"MEDIUM","risk_score":42,"recommendation":"Proceed with caution; verify slippage tolerance."}},"example":{"request":{"action":"swap","agent_id":"qa-test-001","value_usd":5000},"response":{"flags":["MEDIUM_VALUE","HIGH_RISK_ACTION"],"input":{"asset":"unspecified","action":"swap","leverage":1,"value_usd":5000},"payment":{"price":"$0.005","protocol":"x402"},"max_score":100,"timestamp":"2026-06-20T04:59:36.598Z","risk_level":"MEDIUM","risk_score":40,"recommendation":"Acceptable. Ensure proper sizing."}},"exampleRequest":{"action":"swap","agent_id":"qa-test-001","value_usd":5000},"tags":["x402"],"displayCostAmount":"0.005","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"settled","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.005/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_UQOxP3BolZW4M9yTXqP9Z","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.005","costPer":"request","priority":0,"asset":null,"unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Scores the risk of a DeFi action (swap, trade, borrow, transfer) given asset, value, and leverage, returning a numeric risk score, level, flags, and recommendation.","exampleAgentPrompt":"Run an ACHILLES risk check on a swap of $5,000 with no leverage on ETH — tell me the risk score, level, and whether I should proceed.","exampleUseCases":[{"title":"Pre-screen leveraged borrow safety","prompt":"Before I go ahead, run a risk check on borrowing $20,000 worth of USDC at 3x leverage — give me the risk score, level, any flags, and your recommendation on whether it's safe to proceed."},{"title":"Validate large transfer before approval","prompt":"I'm about to transfer $50,000 in BTC — can you score that transfer for risk first and tell me the risk level and whether I should approve it?"},{"title":"Gate high-value swap execution","prompt":"Check the risk on swapping $15,000 of SOL at 2x leverage before I execute — I want the numeric score, the risk label, and a clear recommendation on whether to go through with it."}],"resultDescription":"A JSON object containing a numeric risk score (0–100), a risk level label (LOW/MEDIUM/HIGH), an array of flags (e.g. 'size:medium'), a human-readable recommendation string, the echoed input, and a UTC timestamp.","failureModes":["Missing required 'action' or 'value_usd' fields — likely returns 4xx validation error","Invalid asset symbol — may return a generic score or error","Payment failure via x402 — call not processed if $0.005 USDC micropayment is not settled","Malformed JSON body — 400 Bad Request","Service unavailability — 5xx if ACHILLES backend is down"],"whenToPreferThis":"Use this endpoint when an AI agent needs a pre-execution risk gate for DeFi actions — especially swaps, trades, borrows, or transfers — before committing capital on-chain. Ideal for autonomous agents that need a fast, scored risk signal with a human-readable recommendation rather than building custom risk heuristics. Best when you need risk scores per-action with leverage awareness and USD notional context.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T12:42:53.454Z","isFirstParty":false}