Package upgrade advisory
factreason_package_upgrade_advisoryCompare two exact published npm or PyPI versions and return publisher-declared registry metadata changes, including yanks, exports, module format, runtime floors, peers, and licences, with before/after evidence. Set responseFormat="compact" for tokenizer-measured context savings; the backward-compatible default is "full". This is a read-only metered lookup; misses are never billed and every API key carries one-off trial credit. Use it for package metadata; use factreason_api_breaking_changes for a third-party HTTP API, and consult changelogs for behavioural changes.
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": {
"registry": "<registry>",
"name": "<name>",
"from": "<from>",
"to": "<to>"
},
"name": "factreason_package_upgrade_advisory"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | Yes | Exact target version, e.g. "5.0.0" | |
| from | Yes | Exact currently installed version, e.g. "4.1.2" | |
| name | Yes | Exact package name, e.g. "chalk" or "urllib3" | |
| apiKey | No | Your FactReason API key, from factreason_create_key. Pass it here when your MCP client cannot set the Authorization: Bearer header on this connection; if the header is set, omit this. Never pass a key that belongs to someone else. | |
| registry | Yes | Registry containing both package versions | |
| responseFormat | No | Use compact to remove repeated prose and fields while retaining evidence; full preserves the legacy response contract | full |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| found | No | ||
| scope | No | ||
| billed | No | ||
| message | No | ||
| toVersion | No | ||
| advisories | No | ||
| fromVersion | No | ||
| packageName | No | ||
| tokenMetrics | No | ||
| advisoryCount | No | ||
| breakingCount | No |