{
  "name": "JudgmentKit",
  "version": "0.1.0",
  "transport": "streamable-http",
  "capabilities": {
    "tools": [
      {
        "name": "analyze_implementation_brief",
        "description": "Analyze an implementation-heavy UI brief and return an activity-centered judgment packet before UI generation or styling.",
        "inputSchema": {
          "type": "object",
          "required": [
            "brief"
          ],
          "properties": {
            "brief": {
              "type": "string",
              "minLength": 1,
              "description": "Implementation-heavy UI brief to translate into activity-centered guidance."
            }
          },
          "additionalProperties": false
        }
      },
      {
        "name": "create_activity_model_review",
        "description": "Create a reviewable activity model candidate from a UI brief, with guardrails and targeted questions before UI generation.",
        "inputSchema": {
          "type": "object",
          "required": [
            "brief"
          ],
          "properties": {
            "brief": {
              "type": "string",
              "minLength": 1,
              "description": "UI brief or implementation-heavy request to turn into a reviewable activity model candidate."
            }
          },
          "additionalProperties": false
        }
      },
      {
        "name": "recommend_surface_types",
        "description": "Recommend a purpose-based UI surface type from activity evidence before workflow review or frontend implementation.",
        "inputSchema": {
          "type": "object",
          "required": [
            "brief"
          ],
          "properties": {
            "brief": {
              "type": "string",
              "minLength": 1,
              "description": "Source UI brief to classify by activity and purpose."
            },
            "activity_review": {
              "type": "object",
              "description": "Optional activity review packet returned by create_activity_model_review."
            }
          },
          "additionalProperties": false
        }
      },
      {
        "name": "recommend_ui_workflow_profiles",
        "description": "Recommend optional UI workflow guidance profiles for a source brief without applying them automatically.",
        "inputSchema": {
          "type": "object",
          "required": [
            "brief"
          ],
          "properties": {
            "brief": {
              "type": "string",
              "minLength": 1,
              "description": "Source UI brief to classify for optional workflow guidance profiles."
            }
          },
          "additionalProperties": false
        }
      },
      {
        "name": "review_activity_model_candidate",
        "description": "Review an externally proposed activity model candidate against the source brief and JudgmentKit guardrails.",
        "inputSchema": {
          "type": "object",
          "required": [
            "brief",
            "candidate"
          ],
          "properties": {
            "brief": {
              "type": "string",
              "minLength": 1,
              "description": "Source UI brief the proposed candidate should be grounded in."
            },
            "candidate": {
              "type": "object",
              "description": "Externally proposed activity model candidate with activity_model, interaction_contract, and optional disclosure_policy."
            }
          },
          "additionalProperties": false
        }
      },
      {
        "name": "review_ui_workflow_candidate",
        "description": "Review an externally proposed UI workflow candidate against the source brief, activity review, and JudgmentKit guardrails.",
        "inputSchema": {
          "type": "object",
          "required": [
            "brief",
            "candidate"
          ],
          "properties": {
            "brief": {
              "type": "string",
              "minLength": 1,
              "description": "Source UI brief the proposed workflow candidate should be grounded in."
            },
            "candidate": {
              "type": "object",
              "description": "Externally proposed UI workflow candidate with workflow, primary_ui, handoff, and diagnostics."
            },
            "profile_id": {
              "type": "string",
              "description": "Optional guidance profile id, such as operator-review-ui."
            },
            "surface_review": {
              "type": "object",
              "description": "Optional surface recommendation packet returned by recommend_surface_types."
            },
            "surface_type": {
              "type": "string",
              "description": "Optional selected surface type, such as workbench, marketing, setup_debug_tool, or operator_review."
            }
          },
          "additionalProperties": false
        }
      },
      {
        "name": "create_ui_implementation_contract",
        "description": "Create an implementation contract for generated UI, using repo evidence, external UI system evidence, or JudgmentKit portable defaults.",
        "inputSchema": {
          "type": "object",
          "properties": {
            "repo_name": {
              "type": "string",
              "description": "Optional repository or product name for traceability."
            },
            "target_stack": {
              "type": "string",
              "description": "Optional frontend stack, such as vanilla JS, React, or server-rendered HTML."
            },
            "external_authority": {
              "type": "string",
              "description": "Optional named UI authority when a repo already has a product UI system or primitive catalog."
            },
            "repo_evidence": {
              "type": "array",
              "items": {
                "type": "string"
              },
              "description": "Optional source evidence such as helper names, contract files, or local checks."
            },
            "approved_primitives": {
              "type": "array",
              "items": {
                "type": "string"
              },
              "description": "Optional allowed primitives. Defaults to the portable no-system primitive set."
            },
            "static_rules": {
              "type": "array",
              "items": {
                "type": "string"
              },
              "description": "Optional static enforcement rules or local commands."
            },
            "browser_qa_checks": {
              "type": "array",
              "items": {
                "type": "string"
              },
              "description": "Optional browser QA checks required before final handoff."
            }
          },
          "additionalProperties": false
        }
      },
      {
        "name": "review_ui_implementation_candidate",
        "description": "Review generated UI or code evidence against an active UI implementation contract.",
        "inputSchema": {
          "type": "object",
          "required": [
            "candidate",
            "implementation_contract"
          ],
          "properties": {
            "candidate": {
              "description": "Generated UI candidate as code text or structured evidence containing primitives_used, states_covered, static_checks, and browser_qa."
            },
            "implementation_contract": {
              "type": "object",
              "description": "Implementation contract returned by create_ui_implementation_contract or equivalent repo-local packet."
            }
          },
          "additionalProperties": false
        }
      },
      {
        "name": "create_ui_generation_handoff",
        "description": "Create a UI generation handoff from a ready UI workflow review packet and a UI implementation contract, blocking non-ready reviews.",
        "inputSchema": {
          "type": "object",
          "required": [
            "workflow_review",
            "implementation_contract"
          ],
          "properties": {
            "workflow_review": {
              "type": "object",
              "description": "UI workflow review packet returned by review_ui_workflow_candidate or equivalent library API."
            },
            "implementation_contract": {
              "type": "object",
              "description": "UI implementation contract returned by create_ui_implementation_contract or an equivalent repo-local contract packet."
            }
          },
          "additionalProperties": false
        }
      },
      {
        "name": "create_frontend_generation_context",
        "description": "Create adapter-layer frontend implementation context from a ready UI generation handoff and selected surface type.",
        "inputSchema": {
          "type": "object",
          "required": [
            "ui_generation_handoff"
          ],
          "properties": {
            "ui_generation_handoff": {
              "type": "object",
              "description": "Ready UI generation handoff returned by create_ui_generation_handoff."
            },
            "surface_review": {
              "type": "object",
              "description": "Optional surface recommendation packet returned by recommend_surface_types."
            },
            "surface_type": {
              "type": "string",
              "description": "Optional selected surface type, such as marketing, workbench, setup_debug_tool, or operator_review."
            },
            "frontend_context": {
              "type": "object",
              "description": "Optional project frontend context such as runtime, UI library, project rules, approved component families, and entrypoints."
            },
            "verification": {
              "type": "object",
              "description": "Optional verification expectations such as commands, browser checks, and states to verify."
            }
          },
          "additionalProperties": false
        }
      },
      {
        "name": "create_frontend_implementation_skill_context",
        "description": "Create gated frontend implementation skill context from a ready frontend generation context, optional design-system adapter, and verification expectations.",
        "inputSchema": {
          "type": "object",
          "required": [
            "frontend_generation_context"
          ],
          "properties": {
            "frontend_generation_context": {
              "type": "object",
              "description": "Ready frontend generation context returned by create_frontend_generation_context."
            },
            "design_system_adapter": {
              "type": "object",
              "description": "Optional renderer adapter evidence such as UI library name, package, components, role, and constraints."
            },
            "target_client": {
              "type": "string",
              "description": "Optional MCP client or agent surface this instruction context is intended for."
            },
            "instruction_format": {
              "type": "string",
              "description": "Optional instruction format. Supported values: structured_markdown or markdown."
            }
          },
          "additionalProperties": false
        }
      }
    ],
    "prompts": []
  },
  "public_route": {
    "role": "mcp_endpoint_and_metadata",
    "hosted_mcp_endpoint": true,
    "usage": "Connect an MCP Streamable HTTP client to this URL. GET without an SSE Accept header returns this metadata."
  }
}
