{"uid":"cap_IbkDalLiscjWmk5EjnO2Q","slug":"delx-clamp-6a651333","name":"Delx Clamp","description":"Clamp a number between min and max for $0.002 USDC for $0.002 USDC. Call when you need this bounded result without an API key or subscription. Returns machine-readable JSON via x402 on Base or Solana. Limitation: results cover only the supplied input or one bounded public endpoint at request time; callers must verify before acting.","url":"https://api.delx.ai/api/v1/x402/clamp?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input","output"],"properties":{"input":{"type":"object","required":["type","bodyType","body"],"properties":{"body":{"type":"object","additionalProperties":true},"type":{"type":"string","const":"http"},"method":{"enum":["POST","PUT","PATCH"],"type":"string"},"bodyType":{"enum":["json","form-data","text"],"type":"string"}},"additionalProperties":false},"output":{"type":"object","required":["type","example"],"properties":{"type":{"type":"string","const":"json"},"example":{"type":"object","additionalProperties":true}}}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.002","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.002/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_2z-o25F95qN1G_BE6Wp26","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.002","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 between a specified minimum and maximum bound, returning the constrained result.","exampleAgentPrompt":"Clamp the number 150 so it stays between 0 and 100.","exampleUseCases":[{"title":"Sanitizing user input percentage","prompt":"A user just entered 115 as a percentage value — clamp it between 0 and 100 so it's a valid percentage."},{"title":"Bounding a sensor reading","prompt":"I have a temperature sensor reading of -12 but valid range is 0 to 50 — clamp it to that range for me."},{"title":"Constraining a score to display scale","prompt":"My scoring algorithm returned 7.8 but the display only supports values from 1 to 5 — clamp it down to the 1–5 range."}],"resultDescription":"Returns the clamped numeric value: the original number if it falls within [min, max], the min if the number is below min, or the max if the number is above max.","failureModes":["Missing required parameters (number, min, or max) results in an error response","Non-numeric inputs cause a validation error","Min greater than max may return an error or undefined behavior","Payment failure for the $0.001 USDC fee may block the request"],"whenToPreferThis":"Use this endpoint when you need a simple, reliable numeric clamping operation with minimal overhead, especially in agent workflows that already use x402 micropayments and need consistent, serverless math utilities without spinning up custom code.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-20T18:44:51.650Z","isFirstParty":false,"canonicalSlug":"delx-clamp-6a651333"}