# PennyRail Number Clamp – Limit Number to Range

> PennyRail Number Clamp – Limit Number to Range is a paid API for AI agents from pennyrail.vercel.app, paid per call via x402, $0.001/call, status unknown (last checked 2026-10-22).

Clamps a numeric value to a specified minimum/maximum range, returning the bounded result

## Facts

- Endpoint: POST https://pennyrail.vercel.app/api/p/nano/number.clamp--limit-number-range?utm_source=zero.xyz
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-22
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/pennyrail-number-clamp-limit-number-to-range-136edb4f
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_kRzmNK8ihXGrUOlkMjQHH

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability pennyrail-number-clamp-limit-number-to-range-136edb4f -d '<json body>'
```

Example prompt: Clamp the number 150 so it stays within the range of 0 to 100 — I need to make sure this value doesn't go out of bounds.

## When to prefer this

Use this endpoint when you need a simple, paid micro-service to clamp a number to a range without running your own compute, or when integrating into an x402 payment-gated workflow where all utility functions are sourced from the PennyRail ecosystem. Prefer local computation if latency or cost is a concern for high-frequency calls.

## Known failure modes

- Missing required 'input' field returns a validation error
- Non-numeric values in input may cause computation failure
- Min greater than max may produce undefined or error behavior
- Payment failure (402) if USDC balance insufficient
- Malformed JSON body returns 400 error

## How this service works

Machine-readable settlement service

## Output

Returns a JSON object containing the clamped numeric value, which equals the input number if it falls within the range, the minimum if the input is below it, or the maximum if the input exceeds it.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "object",
 "additionalProperties": true
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/pennyrail-number-clamp-limit-number-to-range-136edb4f/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from pennyrail.vercel.app](https://www.zero.xyz/host/pennyrail.vercel.app/llms.txt)
