Package check
get_pkg_checkUse when an agent needs to know if an npm or PyPI version has a published advisory. Returns flagged (any OSV advisory for that exact version), highest severity, advisories, release, scripts, downloads, name-squat flags. 404 or 503: not charged. Costs 0.02 USDC per call (x402, USDC on Solana, Base, Polygon, Arbitrum or Arc).
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"name": "<name>",
"ecosystem": "<ecosystem>"
},
"name": "get_pkg_check"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | package name: an npm name (optionally @scope/name) or a PyPI project name | |
| version | No | version to check, for example 4.17.21 (default: the latest published version) | |
| ecosystem | Yes | npm or pypi |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | Yes | the get_pkg_check payload; a real captured example is free at https://x402.ochinimus.app/api/sample/get_pkg_check | |
| tool | Yes | the tool that produced this payload |