# ONE Engine Number Clamp

> ONE Engine Number Clamp is a paid API for AI agents from one-search.one-engine.workers.dev, paid per call via x402, $0.001/call, status unknown (last checked 2026-10-02).

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

## Facts

- Endpoint: POST https://one-search.one-engine.workers.dev/v1/number/clamp?utm_source=zero.xyz
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-02
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/one-engine-number-clamp-0a5eaa6a
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_v8cDsHUgeuHcIbqCRFyJS

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 one-engine-number-clamp-0a5eaa6a -d '<json body>'
```

Example prompt: Clamp the value 145 so it stays between 0 and 100.

## When to prefer this

Use this endpoint when you need a dead-simple, pay-per-call numeric clamp operation without spinning up your own math library or compute environment. Ideal for autonomous agents that need occasional bounded-value operations without infrastructure overhead. At $0.001 USDC per call it is cost-effective for low-frequency utility math in agent pipelines.

## Known failure modes

- Missing required fields (value, min, or max) may result in an error or undefined behavior
- Non-numeric inputs will likely cause a validation error
- min greater than max may produce unexpected results
- Payment failure via x402 will block the request

## How this service works

Low-cost pay-per-call utility APIs for autonomous agents using x402 on Base.

## Output

Returns a JSON object with a single 'value' field containing the clamped number — i.e. min if the input was below min, max if above max, or the original value if already within range.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "max": {
   "type": "number"
  },
  "min": {
   "type": "number"
  },
  "value": {
   "type": "number"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "value": 100
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/one-engine-number-clamp-0a5eaa6a/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from one-search.one-engine.workers.dev](https://www.zero.xyz/host/one-search.one-engine.workers.dev/llms.txt)
