{"uid":"cap_0LWv4M5EHD2JKbXE_099V","slug":"delx-commerce-probability-clamp-utility-b87ca763","name":"Delx Commerce — Probability Clamp Utility","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/prob-clamp?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"prob":{"type":"number","description":"Input field: prob."}}},"responseSchema":{"type":"json","example":{"prob":0.999999999,"input":1.2,"schema":"delx/util-prob-clamp/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_VWi6C7lsvnjwoDMZM6IKp","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":"Clamps a numeric input to a valid probability value in the range [0, 1]","exampleAgentPrompt":"Clamp the value 1.2 to a valid probability — make sure it stays within the 0 to 1 range.","exampleUseCases":[{"title":"Sanitizing raw model confidence scores","prompt":"My model output a confidence score of 1.35 — can you clamp that down to a valid probability so I can use it safely downstream?"},{"title":"Normalizing negative probability estimates","prompt":"I have a probability estimate of -0.05 from a calculation that went slightly negative. Can you clamp it to a proper 0-to-1 range?"},{"title":"Validating probability before storing","prompt":"Before I store this probability value of 0.9999999999, can you run it through a clamp to make sure it's a clean, valid probability?"}],"resultDescription":"Returns a JSON object containing the clamped probability value (guaranteed to be in [0,1]), the original input value, and a schema identifier string ('delx/util-prob-clamp/v1') for verifiable delivery tracking.","failureModes":["Missing or non-numeric 'prob' field in request body returns a validation error","Network or payment failure (x402 USDC payment not completed) blocks the request","Extremely large or non-finite values (NaN, Infinity) may cause unexpected behavior depending on server-side handling"],"whenToPreferThis":"Choose this endpoint when you need a simple, cheap, verifiable utility call to clamp a single numeric value into a valid probability range [0,1] without any local computation setup. Useful in agent pipelines where you want pay-per-result accountability and cryptographic delivery proof via x402 on Base or Solana, rather than implementing clamping logic yourself.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-02T01:49:11.009Z","isFirstParty":false,"canonicalSlug":"delx-commerce-probability-clamp-utility-b87ca763"}