# Semver Tools API

> Semver Tools API 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-13).

Parse, compare, range-test, and bump semantic versions (major/minor/patch) with support for caret, tilde, and comparison range operators.

## Facts

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

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 semver-tools-api-79777da8 -d '<json body>'
```

Example prompt: Check if version 1.5.3 satisfies the range ^1.4.0, and also tell me what the next minor bump would be.

## When to prefer this

Use this endpoint when you need programmatic semver parsing, comparison, or bumping without importing a library — especially useful in serverless agents, no-code pipelines, or environments where npm/semver packages are unavailable. Prefer it over manual string parsing when range operators (^, ~, >=, <) must be evaluated correctly.

## Known failure modes

- Invalid semver string returns a parse error
- Malformed range expression (e.g. unsupported operators) returns a validation error
- Missing required fields in the request body returns a 400 error
- Non-semver version strings (e.g. date-based versions) may fail parsing

## 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, prerelease, build), comparison results (e.g. which version is greater), a boolean indicating whether the version satisfies the given range, and the computed next version string for the requested bump type.

## 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/semver-tools-api-79777da8/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)
