{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/oracle/json-schema/oracle-database-tools-mcp-server-schema.json",
  "title": "DatabaseToolsMcpServer",
  "description": "Allows the creation, configuration and management of an MCP server.",
  "x-generated": "2026-11-25",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/oracle-databasetools-api-openapi.yml#/components/schemas/DatabaseToolsMcpServer",
  "properties": {
    "accessTokenExpiryInSeconds": {
      "default": 3600,
      "description": "Access token expiry in seconds",
      "maximum": 31622400,
      "minimum": 60,
      "type": "integer"
    },
    "builtInRoles": {
      "description": "Built-in roles associated with the MCP Server.",
      "items": {
        "$ref": "#/$defs/DatabaseToolsMcpServerBuiltInRole"
      },
      "maxItems": 40,
      "minItems": 0,
      "type": "array"
    },
    "compartmentId": {
      "description": "The [OCID](/Content/General/Concepts/identifiers.htm) of the compartment containing the Database Tools MCP server.",
      "maxLength": 255,
      "minLength": 1,
      "type": "string"
    },
    "customRoles": {
      "description": "Custom roles associated with the MCP Server.",
      "items": {
        "$ref": "#/$defs/DatabaseToolsMcpServerCustomRole"
      },
      "maxItems": 40,
      "minItems": 0,
      "type": "array"
    },
    "databaseToolsConnectionId": {
      "description": "The [OCID](/Content/General/Concepts/identifiers.htm) of the related Database Tools connection.",
      "maxLength": 255,
      "minLength": 1,
      "type": "string",
      "x-obmcs-cli-param": "connection-id"
    },
    "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 server.",
      "maxLength": 400,
      "minLength": 0,
      "type": "string"
    },
    "displayName": {
      "description": "A meaningful, human-readable label displayed to end users. Not required to be unique and can be changed after creation. Do not include confidential information.",
      "maxLength": 255,
      "minLength": 1,
      "type": "string"
    },
    "endpoints": {
      "description": "Invoke endpoints for the MCP server.",
      "items": {
        "$ref": "#/$defs/DatabaseToolsMcpServerEndpoint"
      },
      "maxItems": 1,
      "minItems": 0,
      "type": "array"
    },
    "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 server.",
      "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 server.",
      "enum": [
        "CREATING",
        "UPDATING",
        "ACTIVE",
        "DELETING",
        "DELETED",
        "FAILED",
        "NEEDS_ATTENTION"
      ],
      "type": "string",
      "x-obmcs-top-level-enum": "#/definitions/DatabaseToolsMcpServerLifecycleState"
    },
    "locks": {
      "description": "Locks associated with this resource.",
      "items": {
        "$ref": "#/$defs/ResourceLock"
      },
      "maxItems": 2,
      "type": "array"
    },
    "refreshTokenExpiryInSeconds": {
      "default": 604800,
      "description": "Refresh token expiry in seconds",
      "maximum": 31622400,
      "minimum": 60,
      "type": "integer"
    },
    "relatedResource": {
      "$ref": "#/$defs/DatabaseToolsMcpServerRelatedResource"
    },
    "runtimeIdentity": {
      "default": "AUTHENTICATED_PRINCIPAL",
      "description": "Specifies the identity used when accessing OCI resources at runtime. AUTHENTICATED_PRINCIPAL to use the caller’s identity (On-Behalf-Of token), or RESOURCE_PRINCIPAL to use the MCP Server’s resource principal (RPST).\n",
      "enum": [
        "AUTHENTICATED_PRINCIPAL",
        "RESOURCE_PRINCIPAL"
      ],
      "type": "string",
      "x-obmcs-top-level-enum": "#/definitions/DatabaseToolsMcpServerRuntimeIdentity"
    },
    "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 server type.",
      "enum": [
        "DEFAULT"
      ],
      "type": "string",
      "x-obmcs-top-level-enum": "#/definitions/DatabaseToolsMcpServerType"
    }
  },
  "required": [
    "id",
    "compartmentId",
    "type",
    "displayName",
    "databaseToolsConnectionId",
    "lifecycleState",
    "timeCreated",
    "timeUpdated",
    "runtimeIdentity",
    "relatedResource"
  ],
  "type": "object",
  "$defs": {
    "DatabaseToolsMcpServerBuiltInRole": {
      "description": "Built-in MCP server roles",
      "properties": {
        "description": {
          "description": "The description of the built-in role.",
          "maxLength": 400,
          "minLength": 1,
          "type": "string"
        },
        "displayName": {
          "description": "The display name of the built-in role.",
          "maxLength": 100,
          "minLength": 1,
          "type": "string"
        }
      },
      "required": [
        "displayName",
        "description"
      ],
      "type": "object"
    },
    "DatabaseToolsMcpServerCustomRole": {
      "description": "DatabaseToolsMcpServerCustomRole.",
      "properties": {
        "description": {
          "description": "The description of the custom role.",
          "maxLength": 400,
          "minLength": 1,
          "type": "string"
        },
        "displayName": {
          "description": "The display name of the custom role.",
          "maxLength": 100,
          "minLength": 1,
          "pattern": "^[a-zA-Z_][a-zA-Z0-9_\\.-]{0,99}$",
          "type": "string"
        }
      },
      "required": [
        "displayName",
        "description"
      ],
      "type": "object"
    },
    "DatabaseToolsMcpServerEndpoint": {
      "description": "The details of an MCP server endpoint.",
      "properties": {
        "endpoint": {
          "description": "The URI endpoint of the MCP server",
          "maxLength": 255,
          "minLength": 1,
          "type": "string"
        },
        "type": {
          "description": "The MCP server type",
          "enum": [
            "DEFAULT"
          ],
          "type": "string",
          "x-obmcs-top-level-enum": "#/definitions/DatabaseToolsMcpServerType"
        }
      },
      "type": "object"
    },
    "DatabaseToolsMcpServerRelatedResource": {
      "description": "A related resource",
      "properties": {
        "entityType": {
          "description": "The resource entity type.",
          "enum": [
            "AUTONOMOUSDATABASE",
            "DATABASE",
            "PLUGGABLEDATABASE",
            "MYSQLDBSYSTEM"
          ],
          "type": "string",
          "x-obmcs-top-level-enum": "#/definitions/DatabaseToolsMcpServerRelatedResourceEntityType"
        },
        "identifier": {
          "description": "The [OCID](/Content/General/Concepts/identifiers.htm) of the related resource.",
          "maxLength": 255,
          "minLength": 1,
          "type": "string"
        }
      },
      "required": [
        "entityType",
        "identifier"
      ],
      "type": "object"
    },
    "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"
    }
  }
}