Get npm download count
get_weekly_downloadsFetch total npm downloads for a package from api.npmjs.org over "last-week" (default), "last-day", or "last-month".
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_name": "<package_name>"
},
"name": "get_weekly_downloads"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| period | No | Download window. Default "last-week". | |
| package_name | Yes | npm package name (e.g. "express", "react", "@types/node"). |