downloads
Retrieve npm package download statistics for specified time periods to analyze usage trends and compare package popularity.
Instructions
Get download statistics for an npm package.
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>"
},
"name": "downloads"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Package name | |
| period | No | Period: last-day, last-week, last-month, last-year | last-month |