{"uid":"cap_o3ilfjJsnRMBwWqGSUq65","slug":"pennyrail-number-clamp-bound-number-c2713571","name":"PennyRail Number Clamp / Bound Number","description":"Machine-readable settlement service","url":"https://pennyrail.vercel.app/api/p/nano/number.clamp--bound-number?utm_source=zero.xyz","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_ch5negUKFVHrZscHllPfD","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 within a specified minimum and maximum bound, returning the constrained result","exampleAgentPrompt":"Clamp the number 157.3 so it stays within the range of 0 and 100.","exampleUseCases":[{"title":"Clamp sensor reading to valid range","prompt":"I have a temperature sensor reading of -12.5 degrees but the valid range is 0 to 50 — can you clamp it so it fits within those bounds?"},{"title":"Bound user-submitted score input","prompt":"A user submitted a score of 9999, but scores should only go from 1 to 10. Can you clamp that value to fit within the allowed range?"},{"title":"Constrain animation progress value","prompt":"My animation progress value is 1.35 but it needs to stay between 0 and 1 — clamp it for me."}],"resultDescription":"Returns a numeric value that has been clamped to the specified range — if the input was below the minimum it returns the minimum, if above the maximum it returns the maximum, otherwise returns the original value unchanged.","failureModes":["Missing or malformed input object returns a validation error","Non-numeric values in the input may cause computation failure","Min greater than max may produce undefined or error behavior","Payment failure via x402 protocol blocks execution with 402 status"],"whenToPreferThis":"Use this endpoint when you need a simple, stateless numeric clamping operation executed as a paid micro-service call, particularly in agent workflows that already use the x402 payment protocol and PennyRail infrastructure. Prefer over implementing locally when consistency of behavior across distributed agent nodes is important.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-20T12:39:25.270Z","isFirstParty":false,"canonicalSlug":"pennyrail-number-clamp-bound-number-c2713571"}