{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/stormmcp/json-schema/stormmcp-toolkit-response-schema.json",
  "title": "ToolkitResponse",
  "description": "A user's toolkit with its members (MCPG-1130).",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/stormmcp-dynamicgateway-api-openapi.yml#/components/schemas/ToolkitResponse",
  "type": "object",
  "properties": {
    "id": {
      "type": "string",
      "description": "Gets or sets the toolkit identifier.",
      "format": "uuid"
    },
    "name": {
      "type": "string",
      "description": "Gets or sets the toolkit name."
    },
    "description": {
      "type": [
        "null",
        "string"
      ],
      "description": "Gets or sets the optional description."
    },
    "enabled": {
      "type": "boolean",
      "description": "Gets or sets a value indicating whether the toolkit master switch is on."
    },
    "members": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/ToolkitMemberResponse"
      },
      "description": "Gets or sets the toolkit members."
    },
    "createdAt": {
      "type": "string",
      "description": "Gets or sets the creation timestamp.",
      "format": "date-time"
    },
    "updatedAt": {
      "type": "string",
      "description": "Gets or sets the update timestamp.",
      "format": "date-time"
    }
  },
  "$defs": {
    "DynamicToolPreferenceMode": {
      "type": "integer",
      "description": "Specifies how a user's dynamic gateway should expose upstream tools for a library."
    },
    "ToolkitMemberResponse": {
      "type": "object",
      "properties": {
        "libraryId": {
          "type": "string",
          "description": "Gets or sets the library identifier.",
          "format": "uuid"
        },
        "toolMode": {
          "description": "Gets or sets the tool preference mode.",
          "$ref": "#/$defs/DynamicToolPreferenceMode"
        },
        "selectedToolNames": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "Gets or sets the canonical selected upstream tool names."
        },
        "sortOrder": {
          "pattern": "^-?(?:0|[1-9]\\d*)$",
          "type": [
            "integer",
            "string"
          ],
          "description": "Gets or sets the display sort order within the toolkit.",
          "format": "int32"
        }
      },
      "description": "One library's membership in a toolkit (MCPG-1130)."
    }
  }
}