{
  "$id": "https://betterstood.com/developers/v31/schemas/mcp/scenario_knowledge_update.input.schema.json",
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "additionalProperties": false,
  "properties": {
    "expectedRevision": {
      "exclusiveMinimum": 0,
      "maximum": 9007199254740991,
      "type": "integer"
    },
    "idempotencyKey": {
      "maxLength": 128,
      "minLength": 8,
      "type": "string"
    },
    "scenarioId": {
      "maxLength": 128,
      "minLength": 1,
      "type": "string"
    },
    "settings": {
      "additionalProperties": false,
      "properties": {
        "enabled": {
          "type": "boolean"
        },
        "maxResults": {
          "maximum": 10,
          "minimum": 1,
          "type": "integer"
        },
        "usageInstructions": {
          "anyOf": [
            {
              "maxLength": 1000,
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        }
      },
      "type": "object"
    }
  },
  "required": [
    "scenarioId",
    "expectedRevision",
    "idempotencyKey",
    "settings"
  ],
  "title": "scenario_knowledge_update input",
  "type": "object"
}
