# Delx Clamp Int

> Delx Clamp Int is a paid API for AI agents from api.delx.ai, paid per call via x402, $0.001/call, status unknown (last checked 2026-09-13).

Clamps an integer value into a specified inclusive min/max range, returning the bounded result as deterministic JSON

## Facts

- Endpoint: POST https://api.delx.ai/api/v1/x402/clamp-int
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-13
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/delx-clamp-int-ebb5efbe
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_2nb_brYsPfJlo5Ru8wi8s

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 delx-clamp-int-ebb5efbe -d '<json body>'
```

Example prompt: Clamp the value 150 to be within the range 0 to 100.

## When to prefer this

Use this endpoint when you need a lightweight, stateless, deterministic integer clamp without shipping any math logic or runtime dependency. Ideal for agent preflight checks, input normalization, or enforcing numeric bounds before downstream writes. Prefer over rolling your own logic when operating in a sandboxed or restricted environment where external libraries aren't available.

## Known failure modes

- Missing required fields (value, min, or max) result in a validation error
- min greater than max produces an invalid range error
- Non-integer inputs are rejected as type errors
- Payment failure (x402) results in a 402 response before computation occurs

## How this service works

Clamp an integer into an inclusive min/max range — first-party local utility for agent preflight and proven micro-utils expansion. Returns deterministic machine-readable JSON for $0.001 USDC via x402 on Base. Execution is first-party, local-only, stateless, and memory-only with no paid upstream, no input retention, no web search, no live RPC, and no mediagen. Results are advisory; the caller owns authorization, budgets, and production controls. Sibling of Delx routes that already converted exte…

## Output

Returns a deterministic JSON object containing the clamped integer result — the value if already within [min, max], min if the value is below the range, or max if the value exceeds the range. No state is retained and the result is machine-readable.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "max": {
   "type": "integer",
   "description": "Input field: max."
  },
  "min": {
   "type": "integer",
   "description": "Input field: min."
  },
  "value": {
   "type": "integer",
   "description": "Input field: value."
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "ok": true,
  "max": 100,
  "min": 0,
  "value": 150,
  "schema": "delx/util-clamp-int/v1",
  "clamped": 100,
  "was_clamped": true
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/delx-clamp-int-ebb5efbe/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.delx.ai](https://www.zero.xyz/host/api.delx.ai/llms.txt)
