{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/prowl-chat/json-schema/prowl-chat-pricing-response-schema.json",
  "title": "PricingResponse",
  "description": "The public price list. Takes no credential, and publishes no margin.",
  "x-generated": "2026-11-22",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/prowl-chat-openapi.json#/components/schemas/PricingResponse",
  "properties": {
    "tools": {
      "items": {
        "$ref": "#/$defs/PricingRow"
      },
      "type": "array",
      "title": "Tools"
    },
    "count": {
      "type": "integer",
      "title": "Count",
      "description": "Rows returned, after the `limit` was applied."
    },
    "total_tools": {
      "type": "integer",
      "title": "Total Tools",
      "description": "Rows available before the limit."
    },
    "price_note": {
      "type": "string",
      "title": "Price Note",
      "description": "What the price figure means to a caller."
    }
  },
  "type": "object",
  "required": [
    "tools",
    "count",
    "total_tools",
    "price_note"
  ],
  "$defs": {
    "PricingRow": {
      "properties": {
        "tool_name": {
          "type": "string",
          "title": "Tool Name"
        },
        "provider": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Provider"
        },
        "category": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Category"
        },
        "estimated_billed_usd": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "null"
            }
          ],
          "title": "Estimated Billed Usd",
          "description": "What a representative call debits from your wallet. Computed at runtime; the actual debit follows the live provider cost."
        },
        "reference_billed_usd": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "null"
            }
          ],
          "title": "Reference Billed Usd",
          "description": "Set instead of `estimated_billed_usd` when the provider meters from its response: the representative rate for that endpoint group, with the same markup applied. The debit follows the live response."
        },
        "cost_source": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Cost Source",
          "description": "How the figure was derived — a published rate card, or a measurement."
        }
      },
      "type": "object",
      "required": [
        "tool_name"
      ],
      "title": "PricingRow",
      "description": "What one tool costs the caller. Never what it costs us."
    }
  }
}