{"uid":"cap_EYnqTuhyb70fpdryCxF0f","slug":"delx-semver-compare-lite-69ed2e0f","name":"Delx SemVer Compare Lite","description":"Compare two semver triples (-1,0,1). Call when you decide upgrade direction for agent packages. Returns cmp and ok for $0.001 USDC via x402 on Base. No network, no keys, no retention; first-party local JSON only. Results are advisory; the caller owns budgets, auth, and production controls.","url":"https://api.delx.ai/api/v1/x402/semver-compare-lite","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"a":{"type":"string","description":"Input field: a."},"b":{"type":"string","description":"Input field: b."}}},"responseSchema":{"type":"json","example":{"ok":true,"cmp":-1,"schema":"delx/util-semver-compare-lite/v1"}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.001","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.001/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_0i8lAfg6DYnas6pTDorxS","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.001","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Compares two semantic version strings (a vs b) and returns a comparison result (-1, 0, or 1) indicating which version is older, equal, or newer.","exampleAgentPrompt":"Compare semver 1.4.2 against 2.0.0 and tell me which direction I should upgrade — is 1.4.2 older, the same, or newer than 2.0.0?","exampleUseCases":[{"title":"Agent package upgrade decision","prompt":"Before I upgrade my agent runtime, compare version 3.1.4 to 3.2.0 and tell me if 3.1.4 is behind so I know whether to proceed with the upgrade."},{"title":"Dependency freshness check","prompt":"I have a library pinned at 0.9.11 but the latest release is 0.9.9 — can you compare those two semver strings and confirm which one is actually newer?"},{"title":"CI pipeline version gating","prompt":"In my release pipeline I need to know if the build artifact version 2.5.0 is the same as, older than, or newer than the previously deployed version 2.4.99 — run a semver compare for me."}],"resultDescription":"Returns a JSON object with a 'cmp' field set to -1 (a is older than b), 0 (a equals b), or 1 (a is newer than b), plus an 'ok' boolean confirming the operation succeeded. No external network calls or data retention occur.","failureModes":["Malformed semver string (e.g. missing patch segment, non-numeric parts) may return an error or unexpected result","Empty or null input for either 'a' or 'b' will likely result in a validation failure","Payment failure via x402 on Base will prevent the call from completing","Version strings with pre-release labels (e.g. 1.0.0-alpha) may not be handled as expected if the service only supports plain triples"],"whenToPreferThis":"Choose this endpoint when you need a lightweight, stateless, no-dependency semver ordering check — especially in agent pipelines where you want to avoid importing a full semver library or making network calls to package registries. Ideal for determining upgrade direction between two known version strings without any authentication setup. At $0.001 USDC per call it is cost-effective for automated orchestration loops.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T13:11:49.544Z","isFirstParty":false}