{"uid":"cap_BkoIvZq4iFFbDSeBId5eq","slug":"swift-bot-labs-toolbox-semver-parser-range-checker-05541a32","name":"Swift Bot Labs Toolbox – Semver Parser & Range Checker","description":"62 small, deterministic utility APIs (DNS and e-mail checks, web extraction, EVM decoding, x402 checks, IP math, JSON/CSV, hashing, conversions). No account or API key: pay per call in USDC with x402.","url":"https://x402-toolbox.swiftbotlab.workers.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":{"type":"string","const":"http"},"method":{"enum":["GET","HEAD"],"type":"string"},"headers":{"type":"object","additionalProperties":{"type":"string"}},"queryParams":{"type":"object","required":["versions"],"properties":{"range":{"type":"string","description":"Optional npm-style range, e.g. ^1.2.0 || >=2.1 <3"},"versions":{"type":"string","description":"One or more versions, comma separated"},"compareTo":{"type":"string"}},"additionalProperties":false},"discoverable":{"type":"boolean"}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":{"type":"json","example":{"ok":true,"tool":"semver","result":{"range":"^1.2.0","sorted":["1.2.3","1.2.10","1.10.0","2.0.0-rc.1"],"invalid":[],"satisfying":["1.2.3","1.2.10","1.10.0"],"maxSatisfying":"1.10.0"}}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.003","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.003/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.003","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.003","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_RAnTSWZ6FYf4s5XG-ocdk","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.003","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Parses, sorts, and validates semantic version strings, and checks which versions satisfy an npm-style range expression","exampleAgentPrompt":"From these versions — 1.2.3, 1.2.10, 1.10.0, 2.0.0-rc.1, 0.9.0 — which ones satisfy the range ^1.2.0, and what's the highest one that does?","exampleUseCases":[{"title":"Dependency compatibility check","prompt":"I have a list of available library versions: 1.0.0, 1.3.2, 2.0.0, 2.1.5, 3.0.0-beta.1 — which of them satisfy the range >=2.0.0 <3.0.0, and what's the max satisfying one?"},{"title":"Release list validation and sort","prompt":"Can you sort these version strings and flag any that aren't valid semver: 1.0.0, v2.3, 0.9.1, 2.0.0-alpha.1, not-a-version, 1.10.5?"},{"title":"CI pipeline version resolution","prompt":"My CI pipeline has these candidate versions: 3.1.0, 3.2.4, 3.2.10, 4.0.0 — which is the highest one that satisfies ~3.2.0?"}],"resultDescription":"Returns a JSON object with the tool name, the interpreted range, a sorted list of all input versions, a list of invalid (non-semver) strings, the subset of versions satisfying the range, and the single highest satisfying version (maxSatisfying).","failureModes":["Missing required 'versions' query parameter returns an error","Malformed version strings are returned in the 'invalid' array rather than causing a failure","Invalid or unparseable range expression may result in an empty satisfying list or error","Payment failure (x402 protocol) blocks the request if USDC payment is not completed"],"whenToPreferThis":"Choose this endpoint when you need deterministic, server-side semver parsing and range resolution without installing a local library — especially useful in agent pipelines that work with package manifests, release lists, or CI/CD version gating. Ideal for stateless, one-off semver queries that need no account setup, paying per call in USDC.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-31T18:39:56.741Z","isFirstParty":false,"canonicalSlug":"swift-bot-labs-toolbox-semver-parser-range-checker-05541a32"}