{"uid":"cap_oORTuLMNexr0ERZqHYh_S","slug":"one-engine-numeric-clamp-t1-6e447b32","name":"ONE Engine Numeric Clamp (t1)","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/t1?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.0005","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.0005/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.0005","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.0005","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_cgwUMeiIbYWFjVjhYl3RP","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.0005","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 specified min/max bounds, with optional scaling, offsetting, rounding, and digit precision controls.","exampleAgentPrompt":"Clamp these numbers [−50, 12.7, 300, 0.5, 99, 1000] to a min of 0 and max of 100, then round each result to 2 decimal places.","exampleUseCases":[{"title":"Sanitize sensor data to valid range","prompt":"I have these temperature sensor readings: [−10, 22.3, 105, 37.8, 200, 15] — clamp them all to stay between 0 and 100 degrees and round to 1 decimal place."},{"title":"Normalize scores for leaderboard display","prompt":"Take these raw scores [−500, 0, 250, 1000, 750, 1200] and clamp them between 0 and 1000, then scale by a factor of 0.1 so they fit a 0–100 display range."},{"title":"Enforce percentage bounds on model outputs","prompt":"These model confidence values [1.5, 0.85, −0.1, 0.42, 1.02, 0.99] need to be clamped between 0 and 1 and rounded to 4 digits."}],"resultDescription":"Returns a JSON object containing the transformed numeric array with each value clamped to the specified min/max range, optionally scaled by the given factor, shifted by the offset, and rounded to the specified number of decimal digits.","failureModes":["Array exceeds 1000 element limit — request rejected","Non-finite values (NaN, Infinity) in input array cause validation failure","Missing required 'values' field returns error response","Malformed JSON body returns parsing error","Payment not included or insufficient USDC triggers x402 payment-required response"],"whenToPreferThis":"Choose this endpoint when you need a cheap, pay-per-call numeric clamping operation on up to 1000 values without setting up a local compute environment. Ideal for agents that occasionally need to sanitize, normalize, or bound numeric arrays as part of a larger pipeline, especially when combined with other ONE Engine utility calls billed via x402 on Base.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-02T12:44:17.544Z","isFirstParty":false,"canonicalSlug":"one-engine-numeric-clamp-t1-6e447b32"}