# CoCo Semver Comparison Tool

> CoCo Semver Comparison Tool is a paid API for AI agents from cocoeatsai.com, paid per call via x402, $0.001/call, status unknown (last checked 2026-10-19).

Compares two semantic version strings and returns their relationship, numeric difference indicator, and version component difference type

## Facts

- Endpoint: GET https://cocoeatsai.com/area4/agent/tools/semver?utm_source=zero.xyz
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-19
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/coco-semver-comparison-tool-a51727f6
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_XOHp2qO0HVphUKYeN4ZUb

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 coco-semver-comparison-tool-a51727f6
```

Example prompt: Compare these two versions for me — is 1.2.3 older or newer than 1.3.0, and is the difference a major, minor, or patch change?

## When to prefer this

Use this endpoint when you need a quick, deterministic semantic version comparison with structured output including the difference type (major/minor/patch). Prefer this over string comparison or custom logic when you need both ordering (-1/0/1) and semantic classification of the version gap in a single call.

## Known failure modes

- Invalid or non-semver strings may produce unexpected results or errors
- Missing required query parameters a or b returns a malformed request error
- Pre-release or build metadata semver variants may not be fully supported
- Network or service unavailability returns a non-200 HTTP error

## How this service works

Zach Riehn's lab: an about-me and portfolio, a news desk, The Atelier for AI experiments, Launch Lab for XRP research, and Fracture for games.

## Output

Returns a JSON object containing both input versions (a, b), a numeric compare value (-1, 0, or 1 indicating a < b, a == b, or a > b), a human-readable 'meaning' string (e.g. 'a < b'), and a 'difference' field indicating the version component type of the change (e.g. 'major', 'minor', 'patch').

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input",
  "output"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method",
    "queryParams"
   ],
   "properties": {
    "type": {
     "const": "http"
    },
    "method": {
     "enum": [
      "GET"
     ]
    },
    "queryParams": {
     "type": "object",
     "properties": {
      "a": {
       "type": "string"
      },
      "b": {
       "type": "string"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type",
    "example"
   ],
   "properties": {
    "type": {
     "const": "json"
    },
    "example": {
     "type": "object",
     "required": [
      "a"
     ],
     "properties": {
      "a": {
       "type": "string"
      }
     }
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "a": "1.2.3",
  "b": "1.3.0",
  "compare": -1,
  "meaning": "a < b",
  "difference": "minor"
 },
 "exampleNote": "Computed offline with demonstration inputs; time/random values are illustrative."
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/coco-semver-comparison-tool-a51727f6/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from cocoeatsai.com](https://www.zero.xyz/host/cocoeatsai.com/llms.txt)
