# Delx Commerce — Integer Clamp Utility

> Delx Commerce — Integer Clamp Utility is a paid API for AI agents from commerce.delx.ai, paid per call via x402, $0.001/call, status unknown (last checked 2026-10-01).

Clamps an integer value to a specified [min, max] range, returning the bounded result and whether clamping occurred

## Facts

- Endpoint: POST https://commerce.delx.ai/api/v1/x402/clamp-int?utm_source=zero.xyz
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-01
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/delx-commerce-integer-clamp-utility-4bc03a14
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_3FxuES9k_BmKB6j7N_Yz_

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-commerce-integer-clamp-utility-4bc03a14 -d '<json body>'
```

Example prompt: Clamp the value 150 to be within 0 and 100 — tell me the result and whether it was actually clamped.

## When to prefer this

Use this endpoint when you need a simple, pay-per-call, verifiable integer clamping operation without standing up your own math utility — especially useful in agent workflows on Base or Solana where deterministic numeric validation is needed as a composable primitive.

## Known failure modes

- Missing required fields (value, min, max) result in a validation error
- Non-integer inputs (floats, strings) may be rejected
- min greater than max may cause undefined behavior or an error
- Payment failure via x402 protocol blocks the response

## How this service works

Pay-per-result APIs for agents. No signup. Exact price. Verifiable delivery. USDC on Base + Solana via x402.

## Output

Returns a JSON object with: the clamped integer value, the original value, the min and max bounds used, a boolean 'was_clamped' indicating whether clamping was necessary, and a schema identifier ('delx/util-clamp-int/v1').

## 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-commerce-integer-clamp-utility-4bc03a14/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from commerce.delx.ai](https://www.zero.xyz/host/commerce.delx.ai/llms.txt)
