{"uid":"cap_XOHp2qO0HVphUKYeN4ZUb","slug":"coco-semver-comparison-tool-a51727f6","name":"CoCo Semver Comparison Tool","description":"Zach Riehn's lab: an about-me and portfolio, a news desk, The Atelier for AI experiments, Launch Lab for XRP research, and Fracture for games.","url":"https://cocoeatsai.com/area4/agent/tools/semver?utm_source=zero.xyz","method":"GET","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input","output"],"properties":{"input":{"type":"object","required":["type","method","queryParams"],"properties":{"type":{"const":"http"},"method":{"enum":["GET"]},"queryParams":{"type":"object","properties":{"a":{"type":"string"},"b":{"type":"string"}}}},"additionalProperties":false},"output":{"type":"object","required":["type","example"],"properties":{"type":{"const":"json"},"example":{"type":"object","required":["a"],"properties":{"a":{"type":"string"}}}}}}},"responseSchema":{"type":"json","example":{"a":"1.2.3","b":"1.3.0","compare":-1,"meaning":"a < b","difference":"minor"},"exampleNote":"Computed offline with demonstration inputs; time/random values are illustrative."},"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_4_EB7xzfn6Ym2PpIydESf","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 relationship, numeric difference indicator, and version component difference type","exampleAgentPrompt":"Compare these two versions for me — is 1.2.3 older or newer than 1.3.0, and is the difference a major, minor, or patch change?","exampleUseCases":[{"title":"Release pipeline version gate","prompt":"I need to know if version 2.1.0 is newer than 2.0.5 and whether it's a minor or patch bump — we only auto-deploy patch releases."},{"title":"Dependency upgrade impact check","prompt":"Can you compare lodash versions 4.17.15 and 4.17.21 and tell me if lodash went through a major, minor, or patch change between those two?"},{"title":"CI version ordering validation","prompt":"Our build artifact is tagged 3.0.0-beta.1 and the last release was 2.9.9 — compare those two semver strings and tell me which is greater and what kind of version difference it is."}],"resultDescription":"Returns a JSON object containing both input versions (a, b), a numeric compare value (-1, 0, or 1 indicating a < b, a == b, or a > b), a human-readable 'meaning' string (e.g. 'a < b'), and a 'difference' field indicating the version component type of the change (e.g. 'major', 'minor', 'patch').","failureModes":["Invalid or non-semver strings may produce unexpected results or errors","Missing required query parameters a or b returns a malformed request error","Pre-release or build metadata semver variants may not be fully supported","Network or service unavailability returns a non-200 HTTP error"],"whenToPreferThis":"Use this endpoint when you need a quick, deterministic semantic version comparison with structured output including the difference type (major/minor/patch). Prefer this over string comparison or custom logic when you need both ordering (-1/0/1) and semantic classification of the version gap in a single call.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-19T12:44:35.326Z","isFirstParty":false,"canonicalSlug":"coco-semver-comparison-tool-a51727f6"}