{"uid":"cap_ENiDLXlczapsiXoopTiC1","slug":"agentdiet-repo-risk-score-b885bf77","name":"AgentDiet Repo Risk Score","description":"Deterministic B2A/A2A/MCP/x402/MPP/L402 execution and intelligence node at https://rag-diet.agentdiet.dev settling in USDC on Base.","url":"https://rag-diet.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_8q3eIbSavS2sq9uXiqcLC","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, analyzing its security and quality posture","exampleAgentPrompt":"Can you pull the repo risk score for github.com/someorg/somerepo and tell me if it's safe to depend on?","exampleUseCases":[{"title":"Open source dependency vetting","prompt":"Before I add this package to our project, can you get the repo risk score for github.com/lodash/lodash and tell me if there are any red flags?"},{"title":"Security audit of internal repo","prompt":"Run a risk score check on github.com/mycompany/backend-api so I can include the result in our quarterly security report."},{"title":"Comparing repos before adoption","prompt":"I'm choosing between two repos for our new auth library — can you get the risk scores for github.com/auth0/node-auth0 and github.com/panva/node-openid-client so I can compare them?"}],"resultDescription":"Returns a JSON object with a status field ('ok'), a data object containing the risk assessment details for the repository, and a roi_proof object showing the compression ratio percentage (e.g. 91.4%), confirming efficient processing.","failureModes":["Missing or invalid 'repo' query parameter returns an error or empty data","Repository not found or not publicly accessible may return empty or failed data","Payment not settled in USDC on Base results in HTTP 402 and no data returned","Malformed request (wrong method or missing required 'type'/'method' fields) returns a schema validation error","Rate limiting or quota exhaustion may return a failure status"],"whenToPreferThis":"Choose this endpoint when you need a quick, deterministic, pay-per-call risk score for a specific code repository without needing to set up a subscription or managed service. Particularly useful for agents doing on-demand dependency vetting, security audits, or open source due diligence at $0.01 USDC per call. Prefer this over manual code review tooling when automating risk checks in an agent pipeline.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-22T12:42:15.574Z","isFirstParty":false,"canonicalSlug":"agentdiet-repo-risk-score-b885bf77"}