{"uid":"cap_FD-bPTQqBLNt3Wf45Y0pu","slug":"shield-vainplex-dev-cd1bfc5a","name":"ShieldAPI Package Supply Chain Pre-Flight Check","description":"ShieldAPI - x402 security preflight before agents install or run npm/PyPI dependencies","url":"https://shield.vainplex.dev/api/cdp/check/package","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"],"type":"string"},"queryParams":{"type":"object","required":["ecosystem","name","version"],"properties":{"name":{"type":"string","description":"Package name"},"version":{"type":"string","description":"Package version"},"ecosystem":{"type":"string","description":"Package ecosystem (e.g., npm, pypi)"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":null,"example":{"request":{"input":{"type":"http","method":"GET","queryParams":{"name":"express","version":"4.18.2","ecosystem":"npm"}}},"response":{"flags":[],"score":100,"status":"ALLOW"}},"exampleRequest":{"name":"express","version":"4.18.2","ecosystem":"npm"},"tags":["x402"],"displayCostAmount":"0.01","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.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_IcvkZgvYJhHNjQ-6zCANH","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":"Checks a software package (by name, version, and ecosystem) for supply chain risks and returns a safety score and allow/block status","exampleAgentPrompt":"Run a supply chain pre-flight check on the npm package lodash version 4.17.21 and tell me if it's safe to install — give me the safety score and whether it's allowed or blocked.","exampleUseCases":[{"title":"Validate dependencies before CI/CD deployment","prompt":"Before we deploy this build, scan all the npm packages in our package.json and let me know which ones have supply chain risks — I need to know the safety scores and which ones we should block."},{"title":"Vet Python packages for open source projects","prompt":"I'm about to add a new PyPI package called requests-html to our data pipeline — can you check if it's safe to use and give me the risk assessment?"},{"title":"Quick malware check for suggested packages","prompt":"My teammate recommended we use the npm package axios for HTTP requests — run a supply chain security check on the latest version and tell me if there are any red flags or malicious indicators."}],"resultDescription":"Returns a JSON object with a numeric safety score (0-100), a status string ('ALLOW' or 'BLOCK'), and an array of flags indicating any detected supply chain risks or malicious indicators for the specified package.","failureModes":["Unknown or unrecognized ecosystem returns an error","Package not found in the ecosystem registry","Missing required query parameters (ecosystem, name, version) returns a 400 error","Payment failure via x402 protocol results in 402 response","Network timeout for unknown or newly published packages"],"whenToPreferThis":"Use this endpoint when you need a fast, automated pre-flight safety check on a specific package before installing or deploying it in a software project, especially in CI/CD pipelines or agentic workflows where dependency vetting is required. Prefer this over generic vulnerability scanners when you need a binary ALLOW/BLOCK decision with a risk score for npm, pypi, or other ecosystems.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T06:30:56.416Z","isFirstParty":false}