{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/repowise-dev/json-schema/repowise-dev-mcp-tool-surface-response-schema.json",
  "title": "McpToolSurfaceResponse",
  "description": "The full tool surface for a repo plus its current override.",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/repowise-dev-mcp-api-openapi.yml#/components/schemas/McpToolSurfaceResponse",
  "properties": {
    "repo_id": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Repo Id"
    },
    "is_workspace": {
      "type": "boolean",
      "title": "Is Workspace"
    },
    "override": {
      "anyOf": [
        {
          "items": {
            "type": "string"
          },
          "type": "array"
        },
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Override"
    },
    "tools": {
      "items": {
        "$ref": "#/$defs/McpToolInfo"
      },
      "type": "array",
      "title": "Tools"
    }
  },
  "type": "object",
  "required": [
    "is_workspace",
    "tools"
  ],
  "$defs": {
    "McpToolInfo": {
      "properties": {
        "name": {
          "type": "string",
          "title": "Name"
        },
        "description": {
          "type": "string",
          "title": "Description"
        },
        "tier": {
          "type": "string",
          "title": "Tier"
        },
        "default": {
          "type": "boolean",
          "title": "Default"
        },
        "default_single_repo": {
          "type": "boolean",
          "title": "Default Single Repo"
        },
        "default_workspace": {
          "type": "boolean",
          "title": "Default Workspace"
        },
        "eligible": {
          "type": "boolean",
          "title": "Eligible"
        },
        "eligible_single_repo": {
          "type": "boolean",
          "title": "Eligible Single Repo"
        },
        "eligible_workspace": {
          "type": "boolean",
          "title": "Eligible Workspace"
        },
        "requires_workspace": {
          "type": "boolean",
          "title": "Requires Workspace"
        },
        "enabled": {
          "type": "boolean",
          "title": "Enabled"
        },
        "recipes": {
          "items": {
            "$ref": "#/$defs/McpToolRecipeInfo"
          },
          "type": "array",
          "title": "Recipes"
        },
        "artifact_type": {
          "type": "string",
          "title": "Artifact Type"
        },
        "presentation": {
          "type": "string",
          "title": "Presentation"
        },
        "safety": {
          "type": "string",
          "title": "Safety"
        },
        "evidence_basis": {
          "type": "string",
          "title": "Evidence Basis"
        }
      },
      "type": "object",
      "required": [
        "name",
        "description",
        "tier",
        "default",
        "default_single_repo",
        "default_workspace",
        "eligible",
        "eligible_single_repo",
        "eligible_workspace",
        "requires_workspace",
        "enabled",
        "artifact_type",
        "presentation",
        "safety",
        "evidence_basis"
      ],
      "title": "McpToolInfo",
      "description": "One tool in the configurable surface, with the flags a UI needs."
    },
    "McpToolRecipeInfo": {
      "properties": {
        "name": {
          "type": "string",
          "title": "Name"
        },
        "call": {
          "type": "string",
          "title": "Call"
        },
        "requires": {
          "items": {
            "type": "string"
          },
          "type": "array",
          "title": "Requires"
        }
      },
      "type": "object",
      "required": [
        "name",
        "call",
        "requires"
      ],
      "title": "McpToolRecipeInfo"
    }
  }
}