{"uid":"cap_Fr0k9CXtQVPtJ6BfPtF_u","slug":"license-check-b79cf2dd","name":"license-check","description":"License-compliance verdict for one package and its whole transitive dependency tree. Resolves the deps.dev graph plus the declared SPDX license of every node, finds copyleft contamination points, and returns a target-and-distribution-aware verdict of safe, attribution-required, copyleft-risk or incompatible. Automated indicators, not legal advice.","url":"https://payai.agentstools.dev/license/check","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","HEAD","DELETE"],"type":"string"},"queryParams":{"type":"object","required":["ecosystem","name"],"properties":{"name":{"type":"string","description":"Package name"},"version":{"type":"string","description":"Version (optional; default resolved if omitted)"},"ecosystem":{"enum":["npm","pypi","go","maven","cargo","nuget"],"type":"string","description":"Package ecosystem"},"distribution":{"enum":["saas","binary","internal"],"type":"string","description":"How you ship it (default saas)"},"target_license":{"type":"string","description":"Your project SPDX license, e.g. MIT"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.03","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.03/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.03","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.03","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_S5ZMmFERmpA0bdFfJmtKm","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.03","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Returns a license-compliance verdict (safe, attribution-required, copyleft-risk, or incompatible) for a single package and its entire transitive dependency tree, resolving deps.dev metadata and SPDX licenses.","exampleAgentPrompt":"Check if the npm package 'express' version 4.18.2 is license-safe for my MIT-licensed project that I ship as SaaS — tell me if there are any copyleft risks in its transitive dependencies.","exampleUseCases":[{"title":"Pre-ship SaaS compliance check","prompt":"Before we launch, can you check whether the pypi package 'celery' version 5.3.1 is license-compatible with our proprietary SaaS product? Flag any copyleft contamination in its dependency tree."},{"title":"Open-source project attribution audit","prompt":"I'm publishing an MIT-licensed library that depends on the npm package 'axios'. Check its full dependency tree and tell me if I need to add any attribution notices or if there are incompatible licenses lurking."},{"title":"Binary distribution risk scan","prompt":"We're shipping a compiled binary that bundles the cargo crate 'tokio'. Our project is Apache-2.0 — run a license check and tell me if distributing it as a binary creates any copyleft or incompatibility issues."}],"resultDescription":"A structured compliance verdict for the package and its transitive dependency tree, including: an overall verdict (safe, attribution-required, copyleft-risk, or incompatible), identified copyleft contamination points with package names and SPDX license identifiers, and per-node license data from the resolved deps.dev graph. Distribution mode and target license are factored into the verdict. Results are automated indicators, not legal advice.","failureModes":["Package not found in the specified ecosystem — returns error if name/version doesn't exist in deps.dev","Unsupported ecosystem enum value — request rejected with validation error","Version resolution failure if omitted version cannot be resolved to a latest stable release","Invalid or unrecognized SPDX license string for target_license — may return unclear verdict","Dependency graph too large or circular — potential timeout or incomplete traversal","Payment failure (x402) — call blocked if USDC payment not completed"],"whenToPreferThis":"Choose this endpoint when you need a quick, automated license-risk verdict for a single package with full transitive dependency analysis, especially when you need distribution-mode awareness (saas/binary/internal) and target-license compatibility checking. Prefer it over generic package metadata APIs when copyleft contamination detection across the full dep graph matters. Use the sibling batch-manifest endpoint instead when checking an entire lockfile or requirements.txt at once.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T18:48:39.552Z","isFirstParty":false}