validate_threat_model_against_code
Analyze your codebase to identify which threats from your threat model are already mitigated, and generate a markdown validation report.
Instructions
Validate the threat model against the actual codebase.
This tool analyzes the codebase to determine which threats are already mitigated by existing security controls, and generates a comprehensive report.
Args: ctx: MCP context for logging and error handling code_directory: Directory containing code to analyze file_patterns: Optional list of file patterns to include (e.g., [".py", ".js"])
Returns: A markdown-formatted validation report
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"code_directory": "<code_directory>"
},
"name": "validate_threat_model_against_code"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file_patterns | No | ||
| code_directory | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |