Semantic Version Range Check
semver_range_checkCheck whether a version satisfies a version range, or find the highest version in a list that does, exactly as npm's node-semver 7.8.6 does in its default (strict) mode. Send range (npm range grammar: ^1.2.3, ~1.2, 1.x, >=1.2.0 <2, 1.2.3 - 2.3.4, a || b) and either version or versions (up to 200). Optional include_prerelease. Get back the range as node-semver normalizes it (e.g. ^1.2.3 is >=1.2.3 <2.0.0-0), satisfies true or false per version with the set that matched, whether the prerelease rule excluded it, invalid versions marked, and max_satisfying. Answer fields: ok, verdict, result, rule, does_not, sources, observation, signature, verify. Errors: ok false with the reason (bad input, too large, hourly limit). Free. No model, no network, nothing you send is stored by the tool, and every answer is signed with LLPRO's key (check it at https://llpro.ai/semver-range-check). Not legal, tax or financial advice.
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": {
"range": "<range>"
},
"name": "semver_range_check"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| range | Yes | The version range in npm syntax, e.g. '^1.2.3', '~1.2', '1.x || >=2.5.0 <3', '1.2.3 - 2'. Up to 256 characters. | |
| version | No | One version to test, e.g. '1.4.0' or '2.0.0-rc.1' (a leading v is allowed, as node-semver allows). Send version or versions, not both. | |
| versions | No | A list of versions (up to 200): each is tested and the highest one that satisfies the range is returned as max_satisfying. | |
| include_prerelease | No | node-semver's includePrerelease option: let prerelease versions match any range (default false: the prerelease rule applies). |