{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/oracle/json-schema/oracle-database-tools-mcp-toolset-schema.json",
  "title": "DatabaseToolsMcpToolset",
  "description": "Allows the creation, configuration and management of an MCP Toolset.",
  "x-generated": "2026-11-25",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/oracle-databasetools-api-openapi.yml#/components/schemas/DatabaseToolsMcpToolset",
  "properties": {
    "compartmentId": {
      "description": "The [OCID](/Content/General/Concepts/identifiers.htm) of the compartment to move the Database Tools MCP Toolset to.",
      "maxLength": 255,
      "minLength": 1,
      "type": "string"
    },
    "databaseToolsMcpServerId": {
      "description": "The [OCID](/Content/General/Concepts/identifiers.htm) of the related Database Tools McpServer.",
      "maxLength": 255,
      "minLength": 1,
      "type": "string"
    },
    "definedTags": {
      "additionalProperties": {
        "additionalProperties": {
          "description": "The value of the tag. Only string, integer and boolean types are supported.\n",
          "type": "object"
        },
        "description": "Key-value pair representing predefined tags' keys and values scoped to a namespace.\nExample: `{\"bar-key\": \"value\"}`\n",
        "type": "object"
      },
      "description": "Defined tags for this resource. Each key is predefined and scoped to a namespace.\nExample: `{\"foo-namespace\": {\"bar-key\": \"value\"}}`\n",
      "type": "object"
    },
    "description": {
      "description": "A human readable description of the Database Tools MCP toolset.",
      "maxLength": 400,
      "minLength": 0,
      "type": "string"
    },
    "displayName": {
      "description": "A user-friendly name. Does not have to be unique and can be updated. Avoid entering confidential information.",
      "maxLength": 255,
      "minLength": 1,
      "type": "string"
    },
    "freeformTags": {
      "additionalProperties": {
        "type": "string"
      },
      "description": "Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only.\nExample: `{\"bar-key\": \"value\"}`\n",
      "type": "object"
    },
    "id": {
      "description": "The [OCID](/Content/General/Concepts/identifiers.htm) of the Database Tools MCP Toolsets.",
      "maxLength": 255,
      "minLength": 1,
      "type": "string"
    },
    "lifecycleDetails": {
      "description": "A message describing the current state in more detail. For example, this message can be used to provide actionable information for a resource in the Failed state.",
      "maxLength": 255,
      "minLength": 1,
      "type": "string"
    },
    "lifecycleState": {
      "description": "The current state of the Database Tools MCP Toolset.",
      "enum": [
        "CREATING",
        "UPDATING",
        "ACTIVE",
        "DELETING",
        "DELETED",
        "FAILED"
      ],
      "type": "string",
      "x-obmcs-top-level-enum": "#/definitions/DatabaseToolsMcpToolsetLifecycleState"
    },
    "locks": {
      "description": "Locks associated with this resource.",
      "items": {
        "$ref": "#/$defs/ResourceLock"
      },
      "maxItems": 2,
      "type": "array"
    },
    "systemTags": {
      "additionalProperties": {
        "additionalProperties": {
          "description": "The value of the tag. Only string, integer and boolean types are supported.\n",
          "type": "object"
        },
        "description": "Key-value pair representing system tags' keys and values scoped to a namespace.\nExample: `{\"bar-key\": \"value\"}`\n",
        "type": "object"
      },
      "description": "Usage of system tag keys. These predefined keys are scoped to namespaces.\nExample: `{\"orcl-cloud\": {\"free-tier-retained\": \"true\"}}`\n",
      "type": "object"
    },
    "timeCreated": {
      "description": "The time the Database Tools MCP server was created. An RFC3339 formatted datetime string.",
      "format": "date-time",
      "type": "string"
    },
    "timeUpdated": {
      "description": "The time the Database Tools MCP server was updated. An RFC3339 formatted datetime string.",
      "format": "date-time",
      "type": "string"
    },
    "type": {
      "description": "The Database Tools MCP Toolset type.",
      "enum": [
        "CUSTOM_SQL_TOOL",
        "BUILT_IN_SQL_TOOLS",
        "CUSTOMIZABLE_REPORTING_TOOLS",
        "GENAI_SQL_ASSISTANT"
      ],
      "type": "string",
      "x-obmcs-top-level-enum": "#/definitions/DatabaseToolsMcpToolsetType"
    },
    "version": {
      "description": "The MCP toolset version",
      "type": "integer",
      "x-obmcs-cli-param": "toolset-version"
    }
  },
  "required": [
    "id",
    "version",
    "compartmentId",
    "type",
    "displayName",
    "databaseToolsMcpServerId",
    "lifecycleState",
    "timeCreated",
    "timeUpdated"
  ],
  "type": "object",
  "$defs": {
    "ResourceLock": {
      "description": "Resource locks are used to prevent certain APIs from being called for the resource.\nA full lock prevents both updating the resource and deleting the resource. A delete\nlock prevents deleting the resource.\n",
      "properties": {
        "compartmentId": {
          "description": "The compartment ID of the lock.",
          "type": "string"
        },
        "message": {
          "description": "A message added by the creator of the lock. This is typically used to give an\nindication of why the resource is locked.\n",
          "type": "string"
        },
        "relatedResourceId": {
          "description": "The id of the resource that is locking this resource. Indicates that deleting this resource will remove the lock.\n",
          "type": "string"
        },
        "timeCreated": {
          "description": "When the lock was created.",
          "format": "date-time",
          "type": "string"
        },
        "type": {
          "description": "Type of the lock.",
          "enum": [
            "FULL",
            "DELETE"
          ],
          "type": "string"
        }
      },
      "required": [
        "type",
        "compartmentId"
      ],
      "type": "object"
    }
  }
}