{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/keepbal-com/json-schema/keepbal-com-tool-input-schema.json",
  "title": "ToolInput",
  "description": "Public tool input buckets. Inspect the tool for required fields and examples. Nested query values are rejected.",
  "x-generated": "2026-11-13",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/keepbal-com-openapi.yaml#/components/schemas/ToolInput",
  "type": "object",
  "properties": {
    "body": {
      "type": "object",
      "additionalProperties": true
    },
    "queryParams": {
      "type": "object",
      "additionalProperties": {
        "type": [
          "string",
          "number",
          "boolean",
          "null"
        ]
      }
    },
    "pathParams": {
      "type": "object",
      "additionalProperties": {
        "type": [
          "string",
          "number"
        ]
      }
    },
    "max_cost_usd": {
      "$ref": "#/$defs/SpendCap"
    }
  },
  "additionalProperties": false,
  "$defs": {
    "SpendCap": {
      "description": "Positive USD amount or decimal string. Sub-micro precision is truncated; the effective cap must be a positive safe integer in micro-USD, cover estimated cost, and fit the wallet reservation.",
      "oneOf": [
        {
          "type": "number",
          "minimum": 1e-06
        },
        {
          "type": "string",
          "pattern": "^[0-9]+(\\.[0-9]*)?([eE][+-]?[0-9]+)?$"
        }
      ]
    }
  }
}