pin_safe
Pin dependencies to the highest patched version below a chosen CVE severity tier, respecting a semver constraint. Outputs recommended version and an audit trail of the resolution.
Instructions
Highest version below the chosen CVE severity tier, respecting a semver constraint. USE WHEN: writing a package.json/requirements.txt line; resolving dependabot by lowest-risk patched version. RETURNS: {recommended_version, walk_log[]}.
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": {
"ecosystem": "<ecosystem>",
"package": "<package>"
},
"name": "pin_safe"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ecosystem | Yes | ||
| package | Yes | ||
| min_severity | No | Lowest severity to exclude. Default: high (excludes critical+high). | |
| constraint | No | npm-style constraint: ^X.Y.Z, ~X.Y.Z, >=X.Y.Z, or exact X.Y.Z. | |
| include_prerelease | No |