{
  "format": "delx/intent-card/v1",
  "id": "clamp-int-api",
  "intent": "Clamp Int for an agent workflow",
  "title": "Clamp Int API for agents",
  "description": "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 externally (random, hash, URL, FX families).",
  "keywords": [
    "Clamp Int API",
    "Clamp Int for agents",
    "pay per result API",
    "x402 API",
    "no API key"
  ],
  "updated_at": "2026-08-07",
  "canonical_url": "https://commerce.delx.ai/intents/clamp-int-api",
  "machine_url": "https://commerce.delx.ai/intents/clamp-int-api.json",
  "recommendation": {
    "tool_name": "util_clamp_int",
    "service_name": "Delx Clamp Int",
    "method": "POST",
    "resource": "https://api.delx.ai/api/v1/x402/clamp-int",
    "price_usdc": "0.001",
    "payment_protocols": [
      "x402",
      "mpp"
    ],
    "input_schema": {
      "type": "object",
      "properties": {
        "value": {
          "description": "Input field: value.",
          "type": "integer"
        },
        "min": {
          "description": "Input field: min.",
          "type": "integer"
        },
        "max": {
          "description": "Input field: max.",
          "type": "integer"
        }
      },
      "required": [
        "value"
      ],
      "additionalProperties": true
    },
    "example_input": {
      "value": 150,
      "min": 0,
      "max": 100
    },
    "example_output": {
      "schema": "delx/util-clamp-int/v1",
      "ok": true,
      "value": 150,
      "min": 0,
      "max": 100,
      "clamped": 100,
      "was_clamped": true
    },
    "agentcash": {
      "buy": "npx agentcash@latest fetch https://api.delx.ai/api/v1/x402/clamp-int -m POST -H 'x-delx-source: intent-card-clamp-int-api' --max-amount 0.001 -b '{\"value\":150,\"min\":0,\"max\":100}'",
      "max_amount_usdc": "0.001"
    }
  },
  "attribution": {
    "header": "x-delx-source",
    "value": "intent-card-clamp-int-api"
  },
  "evidence": {
    "paid_openapi": "https://api.delx.ai/openapi.x402.json",
    "governed_portfolio": "https://api.delx.ai/x402-portfolio.json",
    "live_contract": "https://api.delx.ai/api/v1/x402/clamp-int"
  }
}
