{"uid":"cap_DuoiQ19kFDhwbpaxy5kwA","slug":"pennyrail-number-clamp-33c83a3a","name":"PennyRail Number Clamp","description":"Machine-readable settlement service","url":"https://pennyrail.vercel.app/api/p/nano/number.clamp--clamp-number","method":"POST","headers":{},"bodySchema":{"type":"object","required":["input"],"properties":{"input":{"type":"object"}}},"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_3PDVhEWS0zPfSb2pqe38K","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 to a specified range (min/max bounds), returning the nearest boundary if the input falls outside it","exampleAgentPrompt":"Clamp the number 147.3 so it stays within the range of 0 to 100 — use PennyRail's number clamp utility.","exampleUseCases":[{"title":"Sanitize user-entered percentage input","prompt":"I need to make sure this user-submitted value of 112 stays within 0 and 100 — can you clamp it to that range?"},{"title":"Bound sensor reading to valid range","prompt":"My temperature sensor returned -5.2 but valid readings are between 0 and 50 — clamp it to the nearest valid boundary for me."},{"title":"Constrain slider value in UI config","prompt":"The config slider value came in at 255 but it should only go up to 200 with a minimum of 10 — can you clamp it for me?"}],"resultDescription":"Returns the clamped numeric value: the original number if it falls within bounds, the minimum if it was below, or the maximum if it was above the specified range.","failureModes":["Missing or malformed 'input' object in request body returns a validation error","Non-numeric values passed as number, min, or max may result in errors or unexpected behavior","Payment failure (x402) prevents the call from being processed","Missing min or max bounds may cause the function to behave unexpectedly or return an error"],"whenToPreferThis":"Choose this endpoint when you need a simple, stateless numeric clamping operation via a paid micro-API. Useful in agentic workflows where you want a reliable, hosted math utility without running local code, or when you need a deterministic numeric constraint as a composable step in a larger pipeline.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T07:19:54.645Z","isFirstParty":false}