util_semver
Semantic version tool — Parse, compare and range-check semantic versions: is 2.1.0 newer than 2.0.9, does 1.4.2 satisfy ^1.2.0, and which is the highest version in a list matching a range. npm-style ranges supported. Price: $0.001 USDC (Base, via x402).
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": {
"a": "<a>"
},
"name": "util_semver"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| a | Yes | a version, e.g. 1.4.2 | |
| b | No | optional version to compare | |
| range | No | optional range, e.g. ^1.2.0 or >=2 <3 | |
| versions | No | optional comma-separated list to sort |