{
  "format": "delx/intent-card/v1",
  "id": "json-number-coerce-api",
  "intent": "JSON Number Coerce for an agent workflow",
  "title": "JSON Number Coerce API for agents",
  "description": "JSON Number Coerce: JSON Number Coerce coerces explicit numeric strings while reporting rejected values from bounded caller-supplied values without an external provider. Call JSON Number Coerce 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 Number Coerce 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 Number Coerce API",
    "JSON Number Coerce for agents",
    "pay per result API",
    "x402 API",
    "no API key"
  ],
  "updated_at": "2026-08-23",
  "canonical_url": "https://commerce.delx.ai/intents/json-number-coerce-api",
  "machine_url": "https://commerce.delx.ai/intents/json-number-coerce-api.json",
  "recommendation": {
    "tool_name": "util_json_number_coerce",
    "service_name": "JSON Number Coerce",
    "method": "POST",
    "resource": "https://api.delx.ai/api/v1/x402/json-number-coerce",
    "price_usdc": "0.001",
    "payment_protocols": [
      "x402",
      "mpp"
    ],
    "input_schema": {
      "$schema": "https://json-schema.org/draft/2020-12/schema",
      "type": "object",
      "properties": {
        "values": {
          "type": "array",
          "maxItems": 256,
          "items": {
            "type": "string",
            "maxLength": 8192
          },
          "description": "Values supplied to JSON Number Coerce; used only for this bounded calculation and processed in memory without retention."
        }
      },
      "required": [
        "values"
      ],
      "additionalProperties": false
    },
    "example_input": {
      "values": [
        "1",
        "2.5",
        "bad"
      ]
    },
    "example_output": {
      "schema": "delx/util-json-number-coerce/v1",
      "operation": "data_batch:json_number_coerce",
      "status": "advisory",
      "result": {
        "values": [
          1,
          2.5
        ],
        "rejected": [
          "bad"
        ]
      },
      "evidence": {
        "input_sha256": "b08932be9b3a6478f77ce565e226057d6faaec761236079792dd3b4913f103be",
        "retained": false,
        "external_calls": 0
      }
    },
    "agentcash": {
      "buy": "npx agentcash@latest fetch https://api.delx.ai/api/v1/x402/json-number-coerce -m POST -H 'x-delx-source: intent-card-json-number-coerce-api' --max-amount 0.001 -b '{\"values\":[\"1\",\"2.5\",\"bad\"]}'",
      "max_amount_usdc": "0.001"
    }
  },
  "attribution": {
    "header": "x-delx-source",
    "value": "intent-card-json-number-coerce-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-number-coerce"
  }
}
