# PennyRail Number Clamp

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

Clamps a numeric value to a specified range (min/max bounds), returning the nearest boundary if the input falls outside it

## Facts

- Endpoint: POST https://pennyrail.vercel.app/api/p/nano/number.clamp--clamp-number
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/pennyrail-number-clamp-33c83a3a
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_DuoiQ19kFDhwbpaxy5kwA

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-33c83a3a -d '<json body>'
```

Example prompt: Clamp the number 147.3 so it stays within the range of 0 to 100 — use PennyRail's number clamp utility.

## When to prefer this

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.

## Known failure modes

- 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

## How this service works

Machine-readable settlement service

## Output

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.

## 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-33c83a3a/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)
