{
  "format": "delx/intent-card/v1",
  "id": "json-depth-check-api",
  "intent": "JSON Depth Check for an agent workflow",
  "title": "JSON Depth Check API for agents",
  "description": "JSON Depth Check: JSON Depth Check measures JSON nesting depth against a caller budget from bounded caller-supplied values without an external provider. Call JSON Depth Check before an agent hands structured data or a batch plan to a downstream tool with a stricter contract. Returns the bounded transformation or validation finding with counts, normalized values, and a versioned result contract for JSON Depth Check as versioned deterministic JSON. Price: $0.001 USDC via x402 on Base. First-party, stateless, memory-only execution with no paid upstream, live RPC, web search, credentials, custody, signing, media generator, or input retention. Honest limit: Processes bounded caller-supplied data in memory only; it performs no file fetch, database write, code execution, or retention. Advisory output only; the buyer owns authorization, payment policy, and production decisions.",
  "keywords": [
    "JSON Depth Check API",
    "JSON Depth Check for agents",
    "pay per result API",
    "x402 API",
    "no API key"
  ],
  "updated_at": "2026-08-23",
  "canonical_url": "https://commerce.delx.ai/intents/json-depth-check-api",
  "machine_url": "https://commerce.delx.ai/intents/json-depth-check-api.json",
  "recommendation": {
    "tool_name": "util_json_depth_check",
    "service_name": "JSON Depth Check",
    "method": "POST",
    "resource": "https://api.delx.ai/api/v1/x402/json-depth-check",
    "price_usdc": "0.001",
    "payment_protocols": [
      "x402",
      "mpp"
    ],
    "input_schema": {
      "$schema": "https://json-schema.org/draft/2020-12/schema",
      "type": "object",
      "properties": {
        "value": {
          "type": "object",
          "maxProperties": 128,
          "additionalProperties": true,
          "description": "Value supplied to JSON Depth Check; used only for this bounded calculation and processed in memory without retention."
        },
        "maximum_depth": {
          "type": "integer",
          "description": "Maximum Depth supplied to JSON Depth Check; used only for this bounded calculation and processed in memory without retention."
        }
      },
      "required": [
        "value",
        "maximum_depth"
      ],
      "additionalProperties": false
    },
    "example_input": {
      "value": {
        "a": {
          "b": [
            1,
            2
          ]
        }
      },
      "maximum_depth": 5
    },
    "example_output": {
      "schema": "delx/util-json-depth-check/v1",
      "operation": "data_batch:json_depth_check",
      "status": "pass",
      "result": {
        "depth": 3,
        "within_budget": true
      },
      "evidence": {
        "input_sha256": "5e44e9f3ca3a7644d94366cd0375126198b9408327e0f22b573182f0b3a699d3",
        "retained": false,
        "external_calls": 0
      }
    },
    "agentcash": {
      "buy": "npx agentcash@latest fetch https://api.delx.ai/api/v1/x402/json-depth-check -m POST -H 'x-delx-source: intent-card-json-depth-check-api' --max-amount 0.001 -b '{\"value\":{\"a\":{\"b\":[1,2]}},\"maximum_depth\":5}'",
      "max_amount_usdc": "0.001"
    }
  },
  "attribution": {
    "header": "x-delx-source",
    "value": "intent-card-json-depth-check-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/json-depth-check"
  }
}
