{"uid":"cap_TgsiAj4DUHzNxxBuIIuQt","slug":"agentdiet-repo-risk-score-8421c84d","name":"AgentDiet Repo Risk Score","description":"Deterministic B2A/A2A/MCP/x402/MPP/L402 execution and intelligence node at https://status.agentdiet.dev settling in USDC on Base.","url":"https://status.agentdiet.dev/v1/repo-risk-score?utm_source=zero.xyz","method":"GET","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method"],"properties":{"type":{"type":"string","const":"http"},"method":{"enum":["GET","POST"],"type":"string"},"queryParams":{"type":"object","properties":{"repo":{"type":"string"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":{"type":"json","example":{"data":{},"status":"ok","roi_proof":{"compression_ratio_pct":91.4}}},"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_fC_BXCdMZmgqhxaoWF1le","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":"Returns a risk score for a given code repository, assessing potential security, quality, or dependency risks.","exampleAgentPrompt":"Can you get me the risk score for the repo at github.com/someorg/someproject so I know how safe it is to depend on?","exampleUseCases":[{"title":"Vetting an open source dependency","prompt":"Before we add this library to our project, can you pull the repo risk score for github.com/lodash/lodash and tell me if it's safe to use?"},{"title":"Security review of a new vendor repo","prompt":"Our vendor shared their SDK repo at github.com/vendorco/sdk — can you check the AgentDiet risk score on it before we integrate it?"},{"title":"Automated CI risk gate","prompt":"As part of our pipeline, get the risk score for github.com/myorg/core-service and flag it if the risk is high."}],"resultDescription":"Returns a JSON object with a status field ('ok'), a data object containing the risk score details, and an roi_proof field showing a compression_ratio_pct (e.g. 91.4%), indicating how efficiently the analysis was distilled.","failureModes":["Missing or invalid repo query parameter returns an error response","Repository not found or inaccessible may return empty data or error status","Payment failure via x402/USDC results in 402 response blocking access","Rate limiting or node unavailability may return non-200 status","Malformed repo URL may cause unexpected results or errors"],"whenToPreferThis":"Choose this endpoint when you need a quick, deterministic, pay-per-call risk score for a specific code repository and want a lightweight, agent-native solution settling in USDC on Base. Prefer it over manual audits or heavyweight static analysis tools when cost per query and speed matter. Best suited for agents making automated dependency or vendor vetting decisions at scale.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-22T12:43:09.319Z","isFirstParty":false,"canonicalSlug":"agentdiet-repo-risk-score-8421c84d"}