{"uid":"cap_k5RGQoiE0ZTpqAvQl9ZvY","slug":"wallet-counterparty-risk-graph-39490ef3","name":"Wallet Counterparty Risk Graph","description":"Hosted wallet counterparty risk graph for agents: rank recent counterparties, protocol touchpoints, transaction edges, concentration, failed-call signals, labels, and a 0-100 counterparty risk score from D1 wallet history. Price 0.25 USDC on Base via x402. Demo: https://wallet-portfolio-history-mcp.mtree.workers.dev/demo/tools/counterparty_risk_graph. Contact: https://wallet-portfolio-history-mcp.mtree.workers.dev/contact.","url":"https://wallet-portfolio-history-mcp.mtree.workers.dev/tools/counterparty_risk_graph","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":["address"],"properties":{"chain":{"enum":["base","ethereum","arbitrum","optimism","polygon"],"type":"string"},"limit":{"type":"integer","maximum":50,"minimum":1},"address":{"type":"string","pattern":"^0x[a-fA-F0-9]{40}$"},"refresh":{"type":"boolean"}}},"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":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.250000","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.250000/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.25","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.25","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_WdBZJOYHQ14h1-BFKKd41","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.25","costPer":"request","priority":0,"asset":null,"unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Analyzes a wallet's recent transaction history to rank counterparties, map protocol touchpoints, score concentration risk, and produce a 0-100 counterparty risk score with labeled edges and failed-call signals.","exampleAgentPrompt":"Run a counterparty risk graph on wallet 0x1234...abcd on Base — I want to see ranked counterparties, protocol touchpoints, concentration scores, any failed-call signals, and the overall 0-100 counterparty risk score.","exampleUseCases":null,"resultDescription":"Returns a structured counterparty risk graph including: a 0-100 counterparty risk score, ranked list of recent counterparties with labels, transaction edges, protocol touchpoints, concentration metrics, and failed-call signals — all derived from refreshed D1 wallet history snapshots.","failureModes":["Invalid or non-Base wallet address returns a 400 error","No transaction history found for address returns empty graph with score unavailable","Payment not confirmed via x402 returns 402 Payment Required","Rate limit or overload returns 429 or 503","Address on unsupported chain returns an error indicating Base-only support"],"whenToPreferThis":"Use this endpoint when you need a detailed counterparty-level breakdown of wallet risk — specifically ranked counterparty edges, protocol touchpoints, concentration analysis, and labeled transaction graph — rather than just a single aggregate risk score. Prefer this over a generic wallet risk scorer when the agent or user needs to understand WHO a wallet is transacting with and HOW concentrated that exposure is.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T06:42:59.103Z","isFirstParty":false}