{"uid":"cap_WPMk8QGNFyvi6i5IBWSN4","slug":"one-engine-numeric-clamp-t3-24d86048","name":"ONE Engine Numeric Clamp (T3)","description":"Low-cost pay-per-call utility APIs for autonomous agents using x402 on Base.","url":"https://one-search.one-engine.workers.dev/v3/numeric/clamp/t3?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","required":["values"],"properties":{"max":{"type":"number"},"min":{"type":"number"},"size":{"type":"integer"},"digits":{"type":"integer"},"factor":{"type":"number"},"offset":{"type":"number"},"values":{"type":"array","description":"Finite numbers, maximum 1000"}}},"responseSchema":{"type":"object","additionalProperties":true},"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_AWVmsqmlWPZlyTp62KH82","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 an array of numbers to a specified min/max range, optionally applying scaling, rounding, and offset transformations.","exampleAgentPrompt":"Clamp these values [3.7, -12, 0.5, 105, 8.2] to be between 0 and 10, rounded to 2 decimal places.","exampleUseCases":[{"title":"Clamping sensor readings to valid range","prompt":"I have these temperature sensor readings: [22.4, -999, 37.1, 150.0, 25.6] — clamp them all between 0 and 50 and round to 1 decimal place."},{"title":"Normalizing ML confidence scores","prompt":"Can you clamp these model confidence scores [1.3, 0.0, -0.2, 0.87, 1.05, 0.44] to the range 0 to 1, keeping 4 decimal places?"},{"title":"Constraining financial values with scaling","prompt":"Take these raw bid prices [0.5, 12.3, 7.8, 99.9, 3.2], apply a factor of 1.1 and an offset of -1, then clamp everything between 0 and 20."}],"resultDescription":"Returns a JSON object containing the transformed array of numbers after clamping to [min, max], with optional scaling by factor, shifting by offset, and rounding to the specified number of digits. Output size can be controlled via the size parameter.","failureModes":["Empty or missing 'values' array returns an error","Array exceeds 1000 elements — rejected with validation error","Non-finite values (NaN, Infinity) in input cause failure","Invalid type for numeric parameters (e.g. string instead of number)","Payment failure via x402 prevents processing","Malformed JSON body returns 400-level error"],"whenToPreferThis":"Use this endpoint when you need a cheap, fast, pay-per-call numeric clamping operation as part of an autonomous agent workflow, especially when you also need compound transformations (scaling, offset, rounding) applied in the same call. Prefer it over writing custom code when operating in x402-enabled agentic pipelines on Base that benefit from micropayment-gated utility APIs.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-02T12:43:50.799Z","isFirstParty":false,"canonicalSlug":"one-engine-numeric-clamp-t3-24d86048"}