{
  "format": "delx/intent-card/v1",
  "id": "arr-compact-api",
  "intent": "Array Compact for an agent workflow",
  "title": "Array Compact API for agents",
  "description": "Drop null/empty values from a list. Call when you clean agent arrays before serialization. Returns compacted items, count, removed for $0.001 USDC via x402 on Base. No network, no keys, no retention; first-party local JSON only. Results are advisory; the caller owns budgets, auth, and production controls.",
  "keywords": [
    "Array Compact API",
    "Array Compact for agents",
    "pay per result API",
    "x402 API",
    "no API key"
  ],
  "updated_at": "2026-08-07",
  "canonical_url": "https://commerce.delx.ai/intents/arr-compact-api",
  "machine_url": "https://commerce.delx.ai/intents/arr-compact-api.json",
  "recommendation": {
    "tool_name": "util_arr_compact",
    "service_name": "Delx Array Compact",
    "method": "POST",
    "resource": "https://api.delx.ai/api/v1/x402/arr-compact",
    "price_usdc": "0.001",
    "payment_protocols": [
      "x402",
      "mpp"
    ],
    "input_schema": {
      "type": "object",
      "properties": {
        "items": {
          "description": "Input field: items.",
          "type": "array"
        }
      },
      "required": [
        "items"
      ],
      "additionalProperties": true
    },
    "example_input": {
      "items": [
        1,
        null,
        "",
        2,
        [],
        {}
      ]
    },
    "example_output": {
      "schema": "delx/util-arr-compact/v1",
      "items": [
        1,
        2
      ],
      "count": 2,
      "removed": 4
    },
    "agentcash": {
      "buy": "npx agentcash@latest fetch https://api.delx.ai/api/v1/x402/arr-compact -m POST -H 'x-delx-source: intent-card-arr-compact-api' --max-amount 0.001 -b '{\"items\":[1,null,\"\",2,[],{}]}'",
      "max_amount_usdc": "0.001"
    }
  },
  "attribution": {
    "header": "x-delx-source",
    "value": "intent-card-arr-compact-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/arr-compact"
  }
}
