npmTrends
Get download trends and popularity metrics for npm packages over selected periods to compare adoption and inform package choices.
Instructions
Get download trends and popularity metrics for packages
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": "npmTrends"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| period | No | Time period for trends. Options: "last-week", "last-month", "last-year" | last-month |
| packages | Yes | List of package names to get trends for | |
| ignoreCache | No | Force a fresh lookup, ignoring the cache |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| message | No | ||
| results | No | ||
| summary | No |