{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/algenta-ai/json-schema/algenta-ai-capability-catalog-entry-schema.json",
  "title": "CapabilityCatalogEntry",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/algenta-ai-capability-plane-api-openapi.yml#/components/schemas/CapabilityCatalogEntry",
  "properties": {
    "capability_id": {
      "type": "string",
      "title": "Capability Id"
    },
    "provider_id": {
      "type": "string",
      "title": "Provider Id"
    },
    "profile_id": {
      "type": "string",
      "title": "Profile Id"
    },
    "binding_id": {
      "type": "string",
      "title": "Binding Id"
    },
    "kind": {
      "$ref": "#/$defs/CapabilityKind"
    },
    "name": {
      "type": "string",
      "title": "Name"
    },
    "description": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Description"
    },
    "implementation_kind": {
      "$ref": "#/$defs/ImplementationKind"
    },
    "execution_owner": {
      "$ref": "#/$defs/ExecutionOwner"
    },
    "input_schema_ref": {
      "type": "string",
      "title": "Input Schema Ref"
    },
    "output_schema_ref": {
      "type": "string",
      "title": "Output Schema Ref"
    },
    "side_effect_class": {
      "$ref": "#/$defs/SideEffectClass"
    },
    "risk_level": {
      "$ref": "#/$defs/RiskLevel"
    },
    "required_policy": {
      "type": "string",
      "title": "Required Policy"
    },
    "replayability": {
      "$ref": "#/$defs/Replayability"
    },
    "approval_required": {
      "type": "boolean",
      "title": "Approval Required"
    },
    "trust_tier": {
      "type": "string",
      "title": "Trust Tier"
    },
    "manifest_hash": {
      "type": "string",
      "title": "Manifest Hash"
    },
    "artifact_affinities": {
      "items": {
        "type": "string"
      },
      "type": "array",
      "title": "Artifact Affinities"
    },
    "tags": {
      "items": {
        "type": "string"
      },
      "type": "array",
      "title": "Tags"
    },
    "required_binding_ids": {
      "items": {
        "type": "string"
      },
      "type": "array",
      "title": "Required Binding Ids"
    },
    "selected_tool_name": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Selected Tool Name"
    },
    "instruction_artifact_ref": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Instruction Artifact Ref"
    },
    "binding_status": {
      "$ref": "#/$defs/BindingStatus"
    },
    "discovered_at": {
      "anyOf": [
        {
          "type": "string",
          "format": "date-time"
        },
        {
          "type": "null"
        }
      ],
      "title": "Discovered At"
    },
    "customer_metadata": {
      "anyOf": [
        {
          "additionalProperties": true,
          "type": "object"
        },
        {
          "type": "null"
        }
      ],
      "title": "Customer Metadata"
    },
    "instruction_text": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Instruction Text"
    }
  },
  "additionalProperties": false,
  "type": "object",
  "required": [
    "capability_id",
    "provider_id",
    "profile_id",
    "binding_id",
    "kind",
    "name",
    "implementation_kind",
    "execution_owner",
    "input_schema_ref",
    "output_schema_ref",
    "side_effect_class",
    "risk_level",
    "required_policy",
    "replayability",
    "approval_required",
    "trust_tier",
    "manifest_hash",
    "binding_status"
  ],
  "$defs": {
    "BindingStatus": {
      "type": "string",
      "enum": [
        "unconfigured",
        "authorizing",
        "ready",
        "degraded",
        "quarantined"
      ],
      "title": "BindingStatus"
    },
    "CapabilityKind": {
      "type": "string",
      "enum": [
        "dataset",
        "mcp_tool",
        "mcp_resource",
        "mcp_prompt",
        "skill",
        "native_tool",
        "runtime_library"
      ],
      "title": "CapabilityKind"
    },
    "ExecutionOwner": {
      "type": "string",
      "enum": [
        "algenta_managed",
        "client_managed"
      ],
      "title": "ExecutionOwner"
    },
    "ImplementationKind": {
      "type": "string",
      "enum": [
        "callable",
        "instruction_only",
        "hybrid"
      ],
      "title": "ImplementationKind"
    },
    "Replayability": {
      "type": "string",
      "enum": [
        "deterministic",
        "artifact_backed",
        "non_replayable"
      ],
      "title": "Replayability"
    },
    "RiskLevel": {
      "type": "string",
      "enum": [
        "low",
        "medium",
        "high",
        "critical"
      ],
      "title": "RiskLevel"
    },
    "SideEffectClass": {
      "type": "string",
      "enum": [
        "read_only",
        "write_scoped",
        "write_external",
        "exec_external",
        "network_external"
      ],
      "title": "SideEffectClass"
    }
  }
}