{"uid":"cap_v8cDsHUgeuHcIbqCRFyJS","slug":"one-engine-number-clamp-0a5eaa6a","name":"ONE Engine Number Clamp","description":"Low-cost pay-per-call utility APIs for autonomous agents using x402 on Base.","url":"https://one-search.one-engine.workers.dev/v1/number/clamp?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"max":{"type":"number"},"min":{"type":"number"},"value":{"type":"number"}}},"responseSchema":{"type":"json","example":{"value":100}},"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_wkMpXLAiOPwX2-vsScPnc","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 value to a specified minimum and maximum range, returning the bounded result.","exampleAgentPrompt":"Clamp the value 145 so it stays between 0 and 100.","exampleUseCases":[{"title":"Bounding user-input slider values","prompt":"A user typed in 250 for a volume slider that should only go from 0 to 100 — clamp it so it stays within that range."},{"title":"Constraining sensor readings to valid range","prompt":"I'm getting a temperature sensor reading of -15 but the valid range is 0 to 75 — clamp it to the nearest valid value."},{"title":"Enforcing score limits in a game","prompt":"A player scored 1050 points but the max score allowed is 999 and the minimum is 0 — clamp the score to stay within those bounds."}],"resultDescription":"Returns a JSON object with a single 'value' field containing the clamped number — i.e. min if the input was below min, max if above max, or the original value if already within range.","failureModes":["Missing required fields (value, min, or max) may result in an error or undefined behavior","Non-numeric inputs will likely cause a validation error","min greater than max may produce unexpected results","Payment failure via x402 will block the request"],"whenToPreferThis":"Use this endpoint when you need a dead-simple, pay-per-call numeric clamp operation without spinning up your own math library or compute environment. Ideal for autonomous agents that need occasional bounded-value operations without infrastructure overhead. At $0.001 USDC per call it is cost-effective for low-frequency utility math in agent pipelines.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-02T12:43:57.641Z","isFirstParty":false,"canonicalSlug":"one-engine-number-clamp-0a5eaa6a"}