# Sindri Semver Compare

> Sindri Semver Compare is a paid API for AI agents from ppu43fkyhimq5fiqpmo42eh5ri0yypid.lambda-url.us-east-1.on.aws, paid per call via x402, $0.01/call, status unknown (last checked 2026-10-02).

Compares two semantic version strings (e.g. '1.2.3' vs '1.2.4') and returns which is greater, lesser, or equal using standard semver rules.

## Facts

- Endpoint: POST https://ppu43fkyhimq5fiqpmo42eh5ri0yypid.lambda-url.us-east-1.on.aws/semverCompare?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-02
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/sindri-semver-compare-e522d012
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_S2N77Objdq8PTI7XeGPSf

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 sindri-semver-compare-e522d012 -d '<json body>'
```

Example prompt: Which is the newer version — '2.1.0' or '2.0.9'? Compare them using semver rules and tell me which one is greater.

## When to prefer this

Use this endpoint when you need a reliable, rules-compliant semver comparison without implementing the logic yourself — ideal for CI/CD pipelines, dependency checkers, release automation, or any agent workflow that needs to determine version ordering programmatically. Prefer this over rolling your own string comparison, which can mishandle pre-release tags or numeric segment padding.

## Known failure modes

- Malformed version string (e.g. '1.a.3') causes a parse error or 400-level response
- Missing required field (versionA or versionB) results in a validation error
- Pre-release tag edge cases (e.g. '1.0.0-alpha' vs '1.0.0') may not be supported if implementation is partial
- Network timeout on the Lambda URL under cold-start conditions

## How this service works

Compares two semantic version strings and reports which is greater, lesser, or equal, using the standard semver comparison rules.

## Output

Returns a structured result indicating the comparison outcome between versionA and versionB — specifically whether versionA is greater than, less than, or equal to versionB, according to standard semantic versioning (semver) precedence rules.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "versionA": {
   "type": "string",
   "description": "First semantic version, e.g. \"1.2.3\"."
  },
  "versionB": {
   "type": "string",
   "description": "Second semantic version, e.g. \"1.2.4\"."
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/sindri-semver-compare-e522d012/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from ppu43fkyhimq5fiqpmo42eh5ri0yypid.lambda-url.us-east-1.on.aws](https://www.zero.xyz/host/ppu43fkyhimq5fiqpmo42eh5ri0yypid.lambda-url.us-east-1.on.aws/llms.txt)
