npm_downloads_bulk
Compare npm download counts for up to 128 unscoped packages over a chosen period to identify popularity trends. Bulk endpoint requires unscoped names; use single-package lookup for scoped packages.
Instructions
Compare download counts for multiple packages over a period. Up to 128 packages. Scoped packages (@scope/name) are NOT supported by the bulk endpoint — call npm_downloads separately for each scoped 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": {
"packages": "<packages>"
},
"name": "npm_downloads_bulk"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| period | No | Period (default: 'last-week') | |
| packages | Yes | Array of package names to compare (unscoped only) |