# MoneyTools Semver Compare & Range Check

> MoneyTools Semver Compare & Range Check is a paid API for AI agents from tools.moneytools.dev, paid per call via x402, $0.001/call, status unknown (last checked 2026-11-05).

Parse and compare semantic versions, check a version against a semver range, find the max satisfying version, and sort a list of versions.

## Facts

- Endpoint: GET https://tools.moneytools.dev/v1/semver?utm_source=zero.xyz
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-05
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/moneytools-semver-compare-range-check-f81dd88e
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_bOx4cZICDW0E-GZ1jGp5Y

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 moneytools-semver-compare-range-check-f81dd88e
```

Example prompt: Can you check if version 1.4.2 satisfies the semver range ^1.2.0, and also tell me which is greater between 1.4.2 and 1.10.0?

## When to prefer this

Choose this endpoint when you need programmatic semver parsing and comparison logic without bundling a semver library into your stack. Ideal for CI/CD pipelines, dependency bots, or any agent workflow that needs to reason about package versions, resolve upgrade constraints, or validate release compatibility on the fly. At $0.001/call it is cost-effective for occasional checks without infrastructure overhead.

## Known failure modes

- Invalid version string provided — returns error without charge
- Malformed range expression (e.g. unsupported operators) — returns parsing error
- Missing required 'version' query parameter — returns validation error
- Free tier (10/day) exhausted and no valid payment method — returns HTTP 402 PAYMENT-REQUIRED
- Network error or timeout — no charge applied on failure

## How this service works

Semver compare / range check: Parse and compare semantic versions, check a version against a range (^1.2, ~2.0, >=1 <2), max satisfying version and sort a list. Free tier 10/day; then $0.001 via x402 (HTTP 402 + PAYMENT-REQUIRED) or X-API-Key credits. Not charged on failure. $0.001 USDC per call via x402 on Base. Run by MoneyTools.

## Output

A JSON object containing the result of the requested semver operation (comparison outcome, boolean range satisfaction, max satisfying version, or sorted list), plus payment metadata indicating whether a charge was applied, the network, amount in USD, and transaction hash if paid.

## 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": {
     "const": "http"
    },
    "method": {
     "const": "GET"
    },
    "queryParams": {
     "type": "object",
     "required": [],
     "properties": {
      "range": {
       "type": "string",
       "examples": [
        "^1.2.0"
       ],
       "description": "range"
      },
      "compare": {
       "type": "string",
       "examples": [
        "1.10.0"
       ],
       "description": "other version"
      },
      "version": {
       "type": "string",
       "examples": [
        "1.4.2"
       ],
       "description": "version"
      },
      "versions": {
       "type": "string",
       "description": "comma list"
      }
     }
    }
   }
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "json"
    },
    "example": {
     "type": "object",
     "properties": {
      "payment": {
       "type": "object",
       "properties": {
        "charged": {
         "type": "boolean"
        },
        "network": {
         "type": "string"
        },
        "amountUsd": {
         "type": "string"
        },
        "transaction": {
         "type": [
          "string",
          "null"
         ]
        }
       }
      },
      "freeTier": {
       "type": "object"
      },
      "_moneytools": {
       "type": "object",
       "description": "optional plan / partner hints"
      }
     },
     "description": "Tool-specific JSON result (see llms.txt / openapi.json). Always includes payment info.",
     "additionalProperties": true
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json"
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/moneytools-semver-compare-range-check-f81dd88e/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from tools.moneytools.dev](https://www.zero.xyz/host/tools.moneytools.dev/llms.txt)
