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

Clamps an array of numeric values between optional min/max bounds, with optional scaling, rounding, and offset transformation.

## Facts

- Endpoint: POST https://one-search.one-engine.workers.dev/v3/numeric/clamp/t8?utm_source=zero.xyz
- Price: $0.01/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-9679d4ba
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_8bSu9TjfrK8DlRkmC5kVY

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-9679d4ba -d '<json body>'
```

Example prompt: Clamp these values [150, -30, 72, 200, 55] to a min of 0 and max of 100, and round each result to 2 decimal places.

## When to prefer this

Use this endpoint when you need a pay-per-call, no-setup numeric clamping utility within an autonomous agent workflow — especially when combined with other ONE Engine math utilities on the same platform. Ideal for lightweight data normalization or bounding steps in a processing pipeline where infrastructure overhead should be zero.

## Known failure modes

- Missing required 'values' array returns a 400-level error
- Array exceeds 1000 elements limit causes rejection
- Non-finite numbers (NaN, Infinity) in the array may cause errors
- Payment failure via x402 returns 402 Payment Required
- Invalid types for min/max/factor/offset return schema validation errors

## 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 processed array of numbers, each clamped within the specified min/max bounds and optionally scaled by a factor, shifted by an offset, and rounded to the specified number of 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-9679d4ba/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)
