{"uid":"cap_bOx4cZICDW0E-GZ1jGp5Y","slug":"moneytools-semver-compare-range-check-f81dd88e","name":"MoneyTools Semver Compare & Range Check","description":"Semver compare / range check: Parse and compare semantic versions, check a version against a range (^1.2, ~2.0, >=1 <2), max satisfying version and sort a list. Free tier 10/day; then $0.001 via x402 (HTTP 402 + PAYMENT-REQUIRED) or X-API-Key credits. Not charged on failure. $0.001 USDC per call via x402 on Base. Run by MoneyTools.","url":"https://tools.moneytools.dev/v1/semver?utm_source=zero.xyz","method":"GET","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method"],"properties":{"type":{"const":"http"},"method":{"const":"GET"},"queryParams":{"type":"object","required":[],"properties":{"range":{"type":"string","examples":["^1.2.0"],"description":"range"},"compare":{"type":"string","examples":["1.10.0"],"description":"other version"},"version":{"type":"string","examples":["1.4.2"],"description":"version"},"versions":{"type":"string","description":"comma list"}}}}},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string","const":"json"},"example":{"type":"object","properties":{"payment":{"type":"object","properties":{"charged":{"type":"boolean"},"network":{"type":"string"},"amountUsd":{"type":"string"},"transaction":{"type":["string","null"]}}},"freeTier":{"type":"object"},"_moneytools":{"type":"object","description":"optional plan / partner hints"}},"description":"Tool-specific JSON result (see llms.txt / openapi.json). Always includes payment info.","additionalProperties":true}}}}},"responseSchema":{"type":"json"},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.001","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.001/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_X52xHqXHTwZmCFS2EV9Oa","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.001","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Parse and compare semantic versions, check a version against a semver range, find the max satisfying version, and sort a list of versions.","exampleAgentPrompt":"Can you check if version 1.4.2 satisfies the semver range ^1.2.0, and also tell me which is greater between 1.4.2 and 1.10.0?","exampleUseCases":[{"title":"Dependency compatibility check before upgrade","prompt":"I'm about to upgrade a library to version 2.1.0 — can you check whether it satisfies the range >=2.0.0 <3.0.0?"},{"title":"Find max satisfying version from list","prompt":"I have these versions: 1.0.0, 1.2.3, 2.0.0, 1.9.9, 0.8.1 — which one is the highest that still satisfies the range ^1.0.0?"},{"title":"Sort release history chronologically","prompt":"Can you sort these semver versions from oldest to newest? 2.10.1, 2.9.0, 2.10.0, 3.0.0-beta.1, 1.5.3"}],"resultDescription":"A JSON object containing the result of the requested semver operation (comparison outcome, boolean range satisfaction, max satisfying version, or sorted list), plus payment metadata indicating whether a charge was applied, the network, amount in USD, and transaction hash if paid.","failureModes":["Invalid version string provided — returns error without charge","Malformed range expression (e.g. unsupported operators) — returns parsing error","Missing required 'version' query parameter — returns validation error","Free tier (10/day) exhausted and no valid payment method — returns HTTP 402 PAYMENT-REQUIRED","Network error or timeout — no charge applied on failure"],"whenToPreferThis":"Choose this endpoint when you need programmatic semver parsing and comparison logic without bundling a semver library into your stack. Ideal for CI/CD pipelines, dependency bots, or any agent workflow that needs to reason about package versions, resolve upgrade constraints, or validate release compatibility on the fly. At $0.001/call it is cost-effective for occasional checks without infrastructure overhead.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-11-05T12:42:44.580Z","isFirstParty":false,"canonicalSlug":"moneytools-semver-compare-range-check-f81dd88e"}