{"uid":"cap_YEF9J5QWvpQF-S7S_l9a0","slug":"delx-commerce-numeric-comparison-cmp-num-8bb377b6","name":"Delx Commerce — Numeric Comparison (cmp-num)","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/cmp-num?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"a":{"type":"integer","description":"Input field: a."},"b":{"type":"integer","description":"Input field: b."}}},"responseSchema":{"type":"json","example":{"a":2,"b":5,"cmp":-1,"schema":"delx/util-cmp-num/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__oKzaMp2citZSQp8H6e09","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 integers and returns a comparison result indicating their relative order (-1, 0, or 1).","exampleAgentPrompt":"Compare the numbers 2 and 5 for me — tell me whether the first is less than, equal to, or greater than the second.","exampleUseCases":[{"title":"Sorting pipeline step for agent","prompt":"I need to know if 42 is less than, equal to, or greater than 100 — give me a standardized comparison result so I can use it to sort items in my workflow."},{"title":"Threshold check in automated scoring","prompt":"Compare 87 and 90 for me — is the first number lower, equal, or higher than the second? I'm using this to flag whether a score passed a threshold."},{"title":"Tie-detection in ranked outputs","prompt":"Are 15 and 15 equal? Compare them and return whether it's a tie, or which one is bigger."}],"resultDescription":"Returns a JSON object containing the original inputs (a and b), a comparison value (cmp) of -1 if a < b, 0 if a == b, or 1 if a > b, and a schema identifier string ('delx/util-cmp-num/v1').","failureModes":["Missing or non-integer inputs may return a validation error","Payment failure via x402 protocol results in a 402 Payment Required response with no result","Network or service unavailability returns a 5xx error","Malformed request body (e.g. floats instead of integers) may cause unexpected behavior or rejection"],"whenToPreferThis":"Choose this endpoint when you need a simple, verifiable, pay-per-call numeric comparison with no signup friction, especially in agentic pipelines that already use x402/USDC micropayments on Base or Solana. It is ideal for lightweight sorting, ranking, or threshold logic steps within automated workflows where a minimal, standardized output format is required.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-02T04:40:07.057Z","isFirstParty":false,"canonicalSlug":"delx-commerce-numeric-comparison-cmp-num-8bb377b6"}