Get an npm package
npm_package_getOne npm package version: manifest, dist-tags, downloads.
One package version by name (with its scope, e.g. @vue/server-renderer) or npmjs.com link: the published manifest (dependencies, dist, repository, license…), every dist-tag, and downloads over the last week and month. version is a version or tag (latest by default); a /v/ link picks that version.
Cost: 1 credit per call, refunded automatically if the call fails. Read-only, public data only. Results include cost_credits and credits_remaining.
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": {
"package": "<package>"
},
"name": "npm_package_get"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| package | Yes | Package name or its npmjs.com link. | |
| version | No | Version or dist-tag. Defaults to latest. |