{"uid":"cap_8px2ox80rYtYZjMifaskQ","slug":"delx-percent-clamp-b49d8c4c","name":"Delx Percent Clamp","description":"Clamp a percentage-like number into a 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 e…","url":"https://api.delx.ai/api/v1/x402/percent-clamp","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":120,"schema":"delx/util-percent-clamp/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_UwKCRNJsxrer_yEDHRiSe","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 into a specified min/max percentage range and returns the bounded result as JSON","exampleAgentPrompt":"Clamp the value 112 so it stays between 0 and 100 — I need the bounded percentage result.","exampleUseCases":[{"title":"Cap progress percentage display","prompt":"I have a progress value of 108 that I want to show as a percentage — can you clamp it between 0 and 100 so it doesn't overflow the display?"},{"title":"Bound confidence score range","prompt":"My model returned a confidence score of -5, but valid scores must be between 10 and 90 — clamp it to that range for me."},{"title":"Enforce bandwidth utilization limits","prompt":"I calculated a bandwidth utilization of 135 but the allowed range is 0 to 100 percent — please clamp it to the valid range before I log it."}],"resultDescription":"Returns deterministic JSON containing the clamped value — the input value bounded to fall within the provided min and max range, unchanged if already within bounds.","failureModes":["Missing required fields (value, min, max) returns a validation error","min greater than max may return an error or undefined behavior","Non-integer inputs may be rejected given the integer schema","Payment failure via x402 prevents execution"],"whenToPreferThis":"Use this endpoint when you need a deterministic, stateless clamp operation on integer percentage-like values without writing inline logic — especially useful in agent preflight checks, pipeline sanitization steps, or micro-util workflows where you want a reliable machine-readable JSON result. Prefer over writing ad-hoc clamp logic when working within a Delx utility chain.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-16T01:04:41.311Z","isFirstParty":false}