{"uid":"cap_TF42kKFk_QPiZrUYVb5lW","slug":"kevaremesh-semver-compare-25bfa27c","name":"KEVAREMESH SemVer Compare","description":"Buyer-first MCP procurement gateway that discovers, compares and routes live x402 APIs without making the buyer choose a provider.","url":"https://kevaremesh-web.vercel.app/api/x402/semver-compare?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"a":{"type":"string","maxLength":256},"b":{"type":"string","maxLength":256}}},"responseSchema":{"type":"json","example":{"result":{"a":"1.2.3","b":"1.3.0","spec":"SemVer 2.0.0","a_parsed":{"build":[],"major":"1","minor":"2","patch":"3","prerelease":[]},"b_parsed":{"build":[],"major":"1","minor":"3","patch":"0","prerelease":[]},"relation":"lt","comparison":-1,"equal_precedence":false,"build_metadata_affects_precedence":false},"product":"kevaremesh_semver_compare_v2","service":"KEVAREMESH","tool_name":"kevaremesh_semver_compare","limitations":["Strict SemVer 2.0.0 with optional leading v"],"generated_at":"2026-09-18T00:00:00.000Z"}},"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":"down","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_2_4ikgV_8a-b9ftebaQ0T","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 their ordering relationship (lt, eq, gt) with full parsed components per SemVer 2.0.0","exampleAgentPrompt":"Compare versions 1.2.3 and 1.3.0 for me — which one is greater according to SemVer 2.0.0, and give me the full breakdown of each version's components?","exampleUseCases":[{"title":"Dependency upgrade decision check","prompt":"Is version 2.1.0-beta.1 less than or greater than 2.1.0? I need to know the SemVer ordering before I decide whether to upgrade the library."},{"title":"CI pipeline version gate","prompt":"In my build pipeline I need to confirm that the new release tag 3.5.2 is strictly greater than the previous tag 3.5.1 — can you compare them and tell me the relation?"},{"title":"Changelog ordering validation","prompt":"Can you tell me the SemVer relationship between 1.0.0-alpha and 1.0.0? I want to make sure my changelog lists them in the right order."}],"resultDescription":"Returns a JSON object containing both input versions, their fully parsed components (major, minor, patch, prerelease array, build metadata array), a 'relation' string ('lt', 'eq', or 'gt'), a numeric comparison value (-1, 0, or 1), an equal_precedence boolean, and a build_metadata_affects_precedence flag. Also includes service metadata such as product name, tool name, limitations, and generation timestamp.","failureModes":["Non-SemVer input strings (e.g. CalVer or loose version like '1.2') will likely fail or return an error — only strict SemVer 2.0.0 with optional leading 'v' is supported","Missing required fields 'a' or 'b' will cause a validation error","Strings exceeding 256 characters will be rejected","Payment failure or insufficient USDC balance returns HTTP 402"],"whenToPreferThis":"Choose this endpoint when you need a strictly spec-compliant SemVer 2.0.0 comparison with full parsed output (major, minor, patch, prerelease, build metadata) rather than a simple string sort. Ideal for automated pipelines, dependency resolution logic, or any context where prerelease precedence rules matter. Prefer it over ad-hoc string comparison or regex-based approaches when correctness per the SemVer 2.0.0 specification is required.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-26T12:26:42.241Z","isFirstParty":false,"canonicalSlug":"kevaremesh-semver-compare-25bfa27c"}