{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/subcenter-io/json-schema/subcenter-io-tool-input-schema.json",
  "title": "ToolInput",
  "x-generated": "2026-11-26",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/subcenter-io-openapi.json#/components/schemas/ToolInput",
  "type": "object",
  "properties": {
    "name": {
      "type": "string"
    },
    "cost": {
      "type": "string",
      "description": "Price per cadence in cost_currency"
    },
    "cost_currency": {
      "type": "string"
    },
    "cadence": {
      "type": "string",
      "enum": [
        "week",
        "month",
        "quarter",
        "year"
      ]
    },
    "renewal_date": {
      "type": "string",
      "format": "date"
    },
    "seats": {
      "type": [
        "integer",
        "null"
      ]
    },
    "trial": {
      "type": "boolean"
    },
    "vat_rate": {
      "type": [
        "number",
        "null"
      ]
    },
    "prices_include_vat": {
      "type": "boolean"
    },
    "notice_days": {
      "type": "integer",
      "description": "Days of notice before renewal to cancel"
    },
    "auto_renews": {
      "type": "boolean"
    },
    "remind_days": {
      "type": "integer",
      "enum": [
        0,
        1,
        3,
        7,
        14,
        30
      ]
    },
    "category": {
      "type": [
        "string",
        "null"
      ]
    },
    "owner_email": {
      "type": [
        "string",
        "null"
      ],
      "description": "A member's email; null for no owner"
    },
    "owner_membership_id": {
      "type": [
        "string",
        "null"
      ]
    },
    "payment_method": {
      "type": "string"
    },
    "billing_account": {
      "type": "string"
    },
    "notes": {
      "type": "string"
    },
    "allocations": {
      "type": "array",
      "description": "Client shares. Percent 0 removes the client.",
      "items": {
        "type": "object",
        "properties": {
          "client_id": {
            "type": "string"
          },
          "percent": {
            "type": "number"
          }
        }
      }
    }
  }
}