{"uid":"cap_TrmOuJ-VBzAcYnZLYdv8f","slug":"delx-commerce-semver-compare-lite-bcdbc8ee","name":"Delx Commerce — Semver Compare Lite","description":"Pay-per-result APIs for agents. No signup. Exact price. Verifiable delivery. USDC on Base + Solana via x402.","url":"https://commerce.delx.ai/api/v1/x402/semver-compare-lite?utm_source=zero.xyz","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_WdwnNlJ3MCimQSd-MQbGC","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 and returns a numeric comparison result (-1, 0, or 1) indicating their relative order.","exampleAgentPrompt":"Compare semantic version 1.4.2 against 2.0.0 and tell me which one is greater.","exampleUseCases":[{"title":"Dependency upgrade check in CI pipeline","prompt":"I need to know if the installed package version 3.1.0 is older than the required version 3.2.1 — can you compare them and tell me if an upgrade is needed?"},{"title":"Release gating based on version order","prompt":"Before we deploy, check whether the current release version 0.9.8 is less than the minimum required version 1.0.0 so we can decide if it should be blocked."},{"title":"Sorting two candidate versions in a changelog tool","prompt":"I have two version tags from our repo: v2.3.0 and v2.3.0-beta.1 — compare them and tell me which one comes first semantically."}],"resultDescription":"Returns a JSON object with 'ok' (boolean success flag), 'cmp' (integer: -1 if a < b, 0 if a == b, 1 if a > b), and 'schema' (a versioned schema identifier string like 'delx/util-semver-compare-lite/v1').","failureModes":["Malformed or non-semver input strings may return an error or unexpected cmp result","Missing required fields 'a' or 'b' will likely produce a validation error","Pre-release and build metadata edge cases (e.g. 1.0.0-alpha vs 1.0.0) may not be handled in the 'lite' variant","Payment failure via x402 protocol will prevent the call from completing"],"whenToPreferThis":"Choose this endpoint when you need a lightweight, pay-per-call semver comparison without setting up an SDK or authentication — ideal for agent workflows that sporadically need version ordering logic, or when you want verifiable, auditable computation paid in USDC with no subscription overhead.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-02T03:04:51.731Z","isFirstParty":false,"canonicalSlug":"delx-commerce-semver-compare-lite-bcdbc8ee"}