# ONE Engine Numeric Clamp

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

Clamps an array of numbers to a specified min/max range, with optional scaling, offset, rounding, and size controls.

## Facts

- Endpoint: POST https://one-search.one-engine.workers.dev/v3/numeric/clamp/t6?utm_source=zero.xyz
- Price: $0.004/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-numeric-clamp-34a108db
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_A0_Bu2nEfnDlMWi9w2rDH

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-numeric-clamp-34a108db -d '<json body>'
```

Example prompt: Clamp these sensor readings [−50, 0, 42, 105, 999, −3] so no value falls outside 0 to 100, round results to 1 decimal place.

## When to prefer this

Choose this endpoint when you need a lightweight, pay-per-call numeric clamping and transformation operation without standing up your own compute. Ideal for agent pipelines that occasionally need to sanitize or normalize small batches of numbers (up to 1000) before passing them to downstream tools, and where paying $0.004 USDC per call via x402 on Base is preferable to self-hosting math utilities.

## Known failure modes

- values array missing or empty — required field not provided
- values array exceeds 1000 elements — hard limit enforced
- non-finite values (NaN, Infinity) in input array — endpoint may reject or return errors
- min greater than max — logically invalid range causing unexpected behavior
- payment not provided or insufficient — 402 Payment Required response
- malformed JSON body — 400 Bad Request

## How this service works

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

## Output

Returns a JSON object containing the transformed array of numbers after clamping to the specified min/max bounds, with optional scaling by a factor, shifting by an offset, and rounding to a given number of decimal digits. The output size can be limited via the size parameter.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "required": [
  "values"
 ],
 "properties": {
  "max": {
   "type": "number"
  },
  "min": {
   "type": "number"
  },
  "size": {
   "type": "integer"
  },
  "digits": {
   "type": "integer"
  },
  "factor": {
   "type": "number"
  },
  "offset": {
   "type": "number"
  },
  "values": {
   "type": "array",
   "description": "Finite numbers, maximum 1000"
  }
 }
}
```

## Response schema (JSON Schema)

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

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/one-engine-numeric-clamp-34a108db/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)
