# WritersLogic Semver Range Checker

> WritersLogic Semver Range Checker is a paid API for AI agents from agents.writerslogic.com, paid per call via x402, $0.005/call, status unknown (last checked 2026-11-19).

Parses a dependency version range in npm, PEP 440, Cargo, or Maven syntax and tests up to 100 candidate versions against it, returning per-version satisfy/violate results with the highest match.

## Facts

- Endpoint: POST https://agents.writerslogic.com/api/v1/semver-check?utm_source=zero.xyz
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-19
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/writerslogic-semver-range-checker-c570b6a1
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_cKHj68l6K_siLFLspYn2u

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 writerslogic-semver-range-checker-c570b6a1 -d '<json body>'
```

Example prompt: Check which of these npm versions — 1.2.2, 1.3.0, 1.9.9, 2.0.0, 2.1.0 — satisfy the range ^1.2.3 || >=2.1, and tell me which is the highest match.

## When to prefer this

Use this endpoint when an AI agent needs to validate, filter, or compare dependency version strings against a range expression in any of the four major ecosystems (npm, PEP 440, Cargo, Maven) without needing to query a live registry or resolve a full dependency graph. Ideal for agents that write, review, or lint manifest files like package.json, requirements.txt, Cargo.toml, or pom.xml.

## Known failure modes

- Invalid or unparseable range string returns a parse error
- Ecosystem mismatch (e.g. npm caret syntax sent with pep440 ecosystem) causes incorrect evaluation
- More than 100 candidate versions submitted — excess versions may be rejected
- Malformed version strings in the candidates array return per-entry errors
- Omitting the ecosystem parameter may cause ambiguous or incorrect parsing

## How this service works

Pay-per-call agents settled in USDC on Base via x402. Every response carries a signed provenance envelope.

## Output

Returns a per-version list of satisfies or violates results (including which comparator failed for violations), the normalized canonical form of the input range, all candidate versions in sorted order, and the single highest version that satisfies the range.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "range": {
   "type": "string",
   "maxLength": 300,
   "description": "The range: npm '^1.2.3 || >=2', PEP 440 '>=1.0,<2', Cargo '>=1.2, <1.5', Maven '[1.0,2.0)'."
  },
  "versions": {
   "type": "array",
   "items": {
    "type": "string",
    "maxLength": 100
   },
   "maxItems": 100,
   "description": "Candidate versions to test; omit to only validate the range."
  },
  "ecosystem": {
   "enum": [
    "npm",
    "pep440",
    "cargo",
    "maven"
   ],
   "type": "string",
   "description": "Which range syntax and version ordering to apply."
  },
  "prereleases": {
   "type": "boolean",
   "description": "npm includePrerelease / PEP 440 prereleases=true. Default false (ecosystem default exclusion applies)."
  }
 }
}
```

## Response schema (JSON Schema)

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

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/writerslogic-semver-range-checker-c570b6a1/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agents.writerslogic.com](https://www.zero.xyz/host/agents.writerslogic.com/llms.txt)
