# Delx Commerce Percent Clamp Utility

> Delx Commerce Percent 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 and returns the clamped result with a flag indicating whether clamping occurred

## Facts

- Endpoint: POST https://commerce.delx.ai/api/v1/x402/percent-clamp?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-percent-clamp-utility-5fe9e1e4
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_xoTTgTDnuCWdKQbd6W5hN

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-percent-clamp-utility-5fe9e1e4 -d '<json body>'
```

Example prompt: Clamp the value 120 to be between 0 and 100 — I need to know the clamped result and whether it was actually clamped.

## When to prefer this

Use this endpoint when an AI agent needs a verifiable, pay-per-use numeric clamping operation with guaranteed delivery confirmation via USDC on Base or Solana — particularly when auditability of the computation result matters or when integrating into a micropayment-native agent workflow. For pure in-process math, a local implementation is cheaper; choose this when you need on-chain verifiable computation provenance.

## Known failure modes

- Missing required fields (value, min, or max) returns a validation error
- Non-integer inputs may be rejected or coerced unexpectedly
- Payment failure via x402 protocol prevents execution
- min greater than max may produce undefined or error behavior

## 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 original value, the min/max bounds, the clamped output value, and a boolean 'was_clamped' flag indicating whether the input exceeded the bounds, plus an 'ok' status and schema identifier.

## 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": 120,
  "schema": "delx/util-percent-clamp/v1",
  "clamped": 100,
  "was_clamped": true
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/delx-commerce-percent-clamp-utility-5fe9e1e4/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)
