# 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.0065/call, status unknown (last checked 2026-10-02).

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

## Facts

- Endpoint: POST https://one-search.one-engine.workers.dev/v3/numeric/clamp/t7?utm_source=zero.xyz
- Price: $0.0065/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-8845eb88
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_B1-rrUrZTuzJmcM7u64QJ

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-8845eb88 -d '<json body>'
```

Example prompt: Clamp these sensor readings [−5.2, 0.8, 14.3, 99.1, −0.4] so nothing falls below 0 or above 10, rounded to 2 decimal places.

## When to prefer this

Choose this endpoint when you need a fast, pay-per-call serverless clamp operation on a numeric array without standing up your own infrastructure — especially useful in autonomous agent pipelines on Base/x402 where micro-payments are natural and you want to avoid managing compute resources. Ideal for small-to-medium arrays (up to 1000 values) needing simultaneous clamp, scale, offset, and rounding in one call.

## Known failure modes

- Array exceeds 1000 element limit — request rejected
- Non-finite values (NaN, Infinity) in input array — validation error
- Missing required 'values' field — 400 bad request
- Payment not included or insufficient — 402 Payment Required
- min greater than max — undefined or error behavior

## 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 clamped (and optionally scaled, offset, and rounded) numeric values for each input element, with all values constrained to the specified [min, max] range.

## 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-8845eb88/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)
