{"uid":"cap_64h7DyRFefTWvHETwWoL9","slug":"x402-secure-agent-payment-evaluation-2fc4cd04","name":"x402-secure Agent Payment Evaluation","description":"Evaluate an agent's pending payment plan by submitting agent_id, wallet_address, and a full agent_trace. Returns a normalized summary acknowledging the payload. Price: $0.0001 USDC","url":"https://x402-secure-api.t54.ai/x402/tools/evaluate_agent_payment","method":"POST","headers":{},"bodySchema":{"type":"object","required":["agent_id","agent_trace","authorization","wallet_address"],"properties":{"agent_id":{"type":"string","description":"Unique identifier of the agent performing the action (e.g., 'agent_123')."},"agent_trace":{"type":"object","description":"Agent execution trace object. Include 'task' (string), 'events' (array of event objects with fields like 'ts', 'type', 'role'/'name', 'content'/'arguments'/'result'), and 'completed_at' (ISO timestamp). This field is nested; provide the full trace payload for evaluation."},"authorization":{"type":"string","description":"Upstream Authorization token."},"wallet_address":{"type":"string","description":"User or agent wallet address on chain (e.g., Base L2 address)."}}},"responseSchema":{"extra":{"type":"object","properties":{"mode":"string","final_tier":"string","confidence_score":"number","processing_time_ms":"number"}},"reasons":"array","decision":{"enum":["allow","deny","challenge"],"type":"string"},"trace_id":"string","warnings":"array","risk_level":{"enum":["low","medium","high","critical","unknown"],"type":"string"},"session_id":"string","decision_id":"string","ttl_seconds":"number","used_mandate":"boolean"},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.0001","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.0001/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.1","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.1","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_r8eTiGZhdmxMS7N01EyXm","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.1","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Evaluates an agent's pending payment plan by analyzing its execution trace, returning a risk decision (allow/deny/challenge) with confidence score and risk level","exampleAgentPrompt":"Can you evaluate whether agent_123 at wallet address 0xABC...123 should be allowed to make this payment? Here's the full execution trace showing the task it completed and all the events it triggered — I need a risk decision with confidence score before I approve anything.","exampleUseCases":null,"resultDescription":"Returns a structured decision object containing: a decision field (allow/deny/challenge), risk_level (low/medium/high/critical/unknown), confidence_score, list of reasons and warnings, trace_id, session_id, decision_id, ttl_seconds indicating how long the decision is valid, and a flag indicating whether a mandate was used.","failureModes":["Missing required fields (agent_id, wallet_address, agent_trace, authorization) returns 400 validation error","Invalid or expired authorization token returns 401 unauthorized","Malformed agent_trace object (missing task, events, or completed_at) may result in low-confidence or unknown risk decision","Network timeout if trace payload is excessively large","Service unavailability returns 503 with health check recommended"],"whenToPreferThis":"Use this endpoint when an AI agent needs a security gate before executing a blockchain payment — specifically when you have a full agent execution trace and need a structured allow/deny/challenge decision with risk scoring. Prefer this over generic fraud checks when working within the x402 payment protocol ecosystem on Base L2 or similar chains.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T18:34:45.119Z","isFirstParty":false}