Semantic Version Compare
semver_compareOrder version strings by Semantic Versioning 2.0.0 precedence, pre-release tags included, and find the highest. Send versions, a list of up to 100 strings such as ['1.10.0', '1.9.0', '1.0.0-rc.1']. Get back the valid versions from lowest to highest (with each one's position in your list), the highest and lowest, versions that tie (they differ only in build metadata), and every string that is not valid SemVer 2.0.0 with the reason (a leading v, a leading zero, a missing part, an empty pre-release field ...). Use it for 'which release is newest' and to check that a tag is a real SemVer. 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-compare). 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": {
"versions": "<versions>"
},
"name": "semver_compare"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| versions | Yes | Version strings to order, for example ['2.0.0-rc.1', '1.10.0', '1.9.0'] (1 to 100, each up to 256 characters). Strings that are not valid SemVer 2.0.0 are reported, not ordered. |