{"uid":"cap_lj-iVb0nTmkPKRG7nySeH","slug":"repository-risk-score-api-05fabbb3","name":"Repository Risk Score API","description":"Deterministic B2A/A2A/MCP/x402/MPP/L402 execution and intelligence node at https://mcp-gateway.agentdiet.dev settling in USDC on Base.","url":"https://mcp-gateway.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_2JucbipCdPJPjWzol2s0B","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 GitHub repository, assessing factors like code quality, maintenance, and security signals.","exampleAgentPrompt":"Can you get me a risk score for the GitHub repo 'expressjs/express'? I want to know how risky it is before we add it as a dependency.","exampleUseCases":[{"title":"Dependency vetting for new project","prompt":"Before we add 'lodash/lodash' as a dependency, can you pull its risk score so I know if it's safe to include?"},{"title":"Security audit of open source library","prompt":"Run a risk assessment on 'openssl/openssl' — I need to know the risk score before our security review meeting."},{"title":"Comparing risk across candidate repos","prompt":"Can you get risk scores for 'axios/axios' and 'node-fetch/node-fetch' so I can decide which HTTP library is safer to use?"}],"resultDescription":"Returns a JSON object with a status field ('ok'), a data object containing the risk assessment details, and an roi_proof object showing a compression_ratio_pct (e.g. 91.4%), indicating how much intelligence was compressed into the result.","failureModes":["Missing or invalid 'repo' query parameter returns an error or empty data","Private or non-existent repository may return no data or an error status","Payment failure (insufficient USDC) results in 402 response blocking the call","Rate limiting or gateway timeout if the scoring backend is overloaded"],"whenToPreferThis":"Use this endpoint when you need a fast, pay-per-call risk score for a specific GitHub repository without setting up your own analysis pipeline. Particularly useful for agents doing automated dependency vetting, security audits, or open source supply chain checks where a single $0.01 USDC call is more cost-effective than a full static analysis tool.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-22T12:42:10.312Z","isFirstParty":false,"canonicalSlug":"repository-risk-score-api-05fabbb3"}