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

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

## Facts

- Endpoint: POST https://one-search.one-engine.workers.dev/v3/numeric/clamp/t2?utm_source=zero.xyz
- Price: $0.0007/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-6710fb77
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_RKGXmQkwIoejVKfZbqE4X

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-6710fb77 -d '<json body>'
```

Example prompt: I have this list of sensor readings [120, -5, 300, 47, 999] and I need to clamp them all between 0 and 255, rounded to 0 decimal digits — can you run that through ONE Engine's numeric clamp?

## When to prefer this

Choose this endpoint when you need a cheap, low-latency, pay-per-call numeric clamp operation for up to 1000 values at once, especially in autonomous agent pipelines where you want to avoid importing math libraries or writing custom code. Ideal when you also need combined scaling (factor), shifting (offset), and digit rounding in a single call.

## Known failure modes

- Input array exceeds 1000 elements — rejected with validation error
- Non-finite values (NaN, Infinity) in the values array cause rejection
- Missing required 'values' field returns a 400-level error
- Invalid types for numeric fields (e.g. string instead of number) cause schema validation failure
- Payment failure via x402 returns 402 Payment Required

## 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 each input value to the specified [min, max] range, with optional scaling by a factor, shifting by an offset, and rounding to a given number of decimal digits.

## 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-6710fb77/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)
