{"uid":"cap_2nb_brYsPfJlo5Ru8wi8s","slug":"delx-clamp-int-ebb5efbe","name":"Delx Clamp Int","description":"Clamp an integer into an inclusive min/max range — first-party local utility for agent preflight and proven micro-utils expansion. Returns deterministic machine-readable JSON for $0.001 USDC via x402 on Base. Execution is first-party, local-only, stateless, and memory-only with no paid upstream, no input retention, no web search, no live RPC, and no mediagen. Results are advisory; the caller owns authorization, budgets, and production controls. Sibling of Delx routes that already converted exte…","url":"https://api.delx.ai/api/v1/x402/clamp-int","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"max":{"type":"integer","description":"Input field: max."},"min":{"type":"integer","description":"Input field: min."},"value":{"type":"integer","description":"Input field: value."}}},"responseSchema":{"type":"json","example":{"ok":true,"max":100,"min":0,"value":150,"schema":"delx/util-clamp-int/v1","clamped":100,"was_clamped":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_KYI0VZuvsF4aSmAYumnt6","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 integer value into a specified inclusive min/max range, returning the bounded result as deterministic JSON","exampleAgentPrompt":"Clamp the value 150 to be within the range 0 to 100.","exampleUseCases":[{"title":"Bounding user-supplied volume level","prompt":"I have a user-entered volume value of 120, but it must stay between 0 and 100 — clamp it to that range for me."},{"title":"Enforcing pagination limit","prompt":"Our page size came back as -5 from the form, and it needs to be between 1 and 50. Can you clamp that integer into the valid range?"},{"title":"Clamping a score before leaderboard write","prompt":"The computed game score is 9999 but our leaderboard only accepts scores between 0 and 1000 — clamp it before I write it to the board."}],"resultDescription":"Returns a deterministic JSON object containing the clamped integer result — the value if already within [min, max], min if the value is below the range, or max if the value exceeds the range. No state is retained and the result is machine-readable.","failureModes":["Missing required fields (value, min, or max) result in a validation error","min greater than max produces an invalid range error","Non-integer inputs are rejected as type errors","Payment failure (x402) results in a 402 response before computation occurs"],"whenToPreferThis":"Use this endpoint when you need a lightweight, stateless, deterministic integer clamp without shipping any math logic or runtime dependency. Ideal for agent preflight checks, input normalization, or enforcing numeric bounds before downstream writes. Prefer over rolling your own logic when operating in a sandboxed or restricted environment where external libraries aren't available.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-13T19:02:13.540Z","isFirstParty":false}