# Semantic Version Tools (semver-tools)

> Semantic Version Tools (semver-tools) is a paid API for AI agents from api.24klabs.ai, paid per call via x402, $0.001/call, status unknown (last checked 2026-09-15).

Parses, compares, validates, and bumps semantic version strings, including range testing with operators like ^, ~, >=, and <.

## Facts

- Endpoint: POST https://api.24klabs.ai/api/v1/semver-tools
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/semantic-version-tools-semver-tools-a1694e54
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_d7OdqDqHmGq4KYqF4wTbI

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 semantic-version-tools-semver-tools-a1694e54 -d '<json body>'
```

Example prompt: What's the next minor version bump after 2.3.7, and does version 2.4.0 satisfy the range ^2.3.0?

## When to prefer this

Choose this endpoint when you need reliable, standards-compliant semver parsing, comparison, or range checking in an automated pipeline — especially when your agent must make release decisions, validate dependency compatibility, or compute next versions without relying on a local runtime like Node.js or a semver library.

## Known failure modes

- Invalid semver string returns a parse error
- Unsupported range operator causes a validation failure
- Missing required input fields returns a 400 bad request
- Malformed range expression (e.g. unclosed bracket) causes parsing rejection

## How this service works

Parse a semantic version, compare two versions, test a version against a range (^, ~, >=, <, exact), and compute the next major/minor/patch bump.

## Output

Returns parsed version components (major, minor, patch, pre-release, build metadata), a boolean indicating whether a version satisfies a given range, a comparison result indicating which version is greater, and the computed next version string after a major/minor/patch bump.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "op": {
   "type": "string"
  },
  "range": {
   "type": "string"
  },
  "version": {
   "type": "string"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "satisfies": true
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/semantic-version-tools-semver-tools-a1694e54/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.24klabs.ai](https://www.zero.xyz/host/api.24klabs.ai/llms.txt)
