check_package
Check a PyPI or npm package before installing or recommending it. Asks the registry whether the name exists at all (invented package names are how slopsquatting attacks land), how old it is, how much it is downloaded, whether it runs install scripts, whether it is deprecated or yanked, whether OSV lists vulnerabilities, and whether the name is a near-miss of a popular package. Returns a verdict and a safe_to_install flag. Each valid API call uses one credit; every key starts with 1,000 free calls; the limit is 20 calls per minute per key. On HTTP 400, fix the input; on 401, fix the API key; on 402, stop and resolve credits/payment; on 429, wait for Retry-After and do not retry in a loop. A pass is not proof of safety. If verdict is block, do not proceed; if review, show the evidence and ask the user; if warn, follow the agent's normal approval policy. The public API lists $0.01 per call after the free credits. By default this stdio server never signs or submits payments; its optional x402 buyer bridge is disabled unless explicitly enabled and configured. Batch checks are available, up to 20 packages per call.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | Package name. | |
| version | No | Optional exact version to check. | |
| packages | No | Check several packages in one call. | |
| ecosystem | No |