manage_custom_rules
Create, modify, and manage custom security rules for code analysis and compliance validation within project boundaries.
Instructions
Manage custom security rules
Input Schema
Name | Required | Description | Default |
---|---|---|---|
action | Yes | Action to perform | |
rule | No | Rule definition for add/update | |
ruleId | No | Rule ID for update/remove/enable/disable |
Input Schema (JSON Schema)
{
"properties": {
"action": {
"description": "Action to perform",
"enum": [
"list",
"add",
"update",
"remove",
"enable",
"disable",
"stats",
"validate"
],
"type": "string"
},
"rule": {
"description": "Rule definition for add/update",
"properties": {
"category": {
"enum": [
"security",
"performance",
"maintainability",
"style"
],
"type": "string"
},
"createdBy": {
"type": "string"
},
"description": {
"type": "string"
},
"enabled": {
"type": "boolean"
},
"excludePatterns": {
"items": {
"type": "string"
},
"type": "array"
},
"filePatterns": {
"items": {
"type": "string"
},
"type": "array"
},
"messageTemplate": {
"type": "string"
},
"name": {
"type": "string"
},
"pattern": {
"type": "string"
},
"references": {
"items": {
"type": "string"
},
"type": "array"
},
"remediation": {
"type": "string"
},
"severity": {
"enum": [
"critical",
"high",
"medium",
"low",
"informational"
],
"type": "string"
}
},
"type": "object"
},
"ruleId": {
"description": "Rule ID for update/remove/enable/disable",
"type": "string"
}
},
"required": [
"action"
],
"type": "object"
}