# Swift Bot Labs Toolbox – Semver Parser & Range Checker

> Swift Bot Labs Toolbox – Semver Parser & Range Checker is a paid API for AI agents from x402-toolbox.swiftbotlab.workers.dev, paid per call via x402, $0.003/call, status unknown (last checked 2026-10-31).

Parses, sorts, and validates semantic version strings, and checks which versions satisfy an npm-style range expression

## Facts

- Endpoint: GET https://x402-toolbox.swiftbotlab.workers.dev/v1/semver?utm_source=zero.xyz
- Price: $0.003/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-31
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/swift-bot-labs-toolbox-semver-parser-range-checker-05541a32
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_BkoIvZq4iFFbDSeBId5eq

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability swift-bot-labs-toolbox-semver-parser-range-checker-05541a32
```

Example prompt: 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?

## When to prefer this

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.

## Known failure modes

- 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

## How this service works

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.

## Output

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).

## Request schema (JSON Schema)

```json
{
 "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"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "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"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/swift-bot-labs-toolbox-semver-parser-range-checker-05541a32/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402-toolbox.swiftbotlab.workers.dev](https://www.zero.xyz/host/x402-toolbox.swiftbotlab.workers.dev/llms.txt)
