# PennyRail Number Clamp / Bound Number

> PennyRail Number Clamp / Bound Number 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-20).

Clamps a numeric value to within a specified minimum and maximum bound, returning the constrained result

## Facts

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

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-bound-number-c2713571 -d '<json body>'
```

Example prompt: Clamp the number 157.3 so it stays within the range of 0 and 100.

## When to prefer this

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.

## Known failure modes

- 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

## How this service works

Machine-readable settlement service

## Output

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.

## 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-bound-number-c2713571/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)
