Get Package Comparison
get_package_comparisonCompare npm/PyPI download activity for up to 20 packages — last 30 days: total, latest day and average (a longer list is cut and says so). Read-only aggregation of daily-collected observatory data; no side effects. Package download days may be missing (npm/PyPI reporting delay); missing days are null with notes, never fake zeros. Use when the user wants to compare package popularity side by side; for a single package's history use get_npm_trends or get_pypi_trends.
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": "get_package_comparison"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| packages | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||