{
  "annotations": {
    "idempotentHint": false,
    "readOnlyHint": true,
    "title": "List code scanning alerts"
  },
  "description": "List code scanning alerts in a GitHub repository.",
  "inputSchema": {
    "properties": {
      "owner": {
        "description": "The owner of the repository.",
        "type": "string"
      },
      "page": {
        "description": "Page number for pagination (min 1)",
        "minimum": 1,
        "type": "number"
      },
      "perPage": {
        "description": "Results per page for pagination (min 1, max 100)",
        "maximum": 100,
        "minimum": 1,
        "type": "number"
      },
      "ref": {
        "description": "The Git reference for the results you want to list.",
        "type": "string"
      },
      "repo": {
        "description": "The name of the repository.",
        "type": "string"
      },
      "severity": {
        "description": "Filter code scanning alerts by severity",
        "enum": [
          "critical",
          "high",
          "medium",
          "low",
          "warning",
          "note",
          "error"
        ],
        "type": "string"
      },
      "state": {
        "default": "open",
        "description": "Filter code scanning alerts by state. Defaults to open",
        "enum": [
          "open",
          "closed",
          "dismissed",
          "fixed"
        ],
        "type": "string"
      },
      "tool_name": {
        "description": "The name of the tool used for code scanning.",
        "type": "string"
      }
    },
    "required": [
      "owner",
      "repo"
    ],
    "type": "object"
  },
  "name": "list_code_scanning_alerts"
}