deep_scan
Analyze code with LLM-powered security review to uncover IDOR, business logic flaws, race conditions, auth bypass, and privilege escalation that pattern-matching misses.
Instructions
LLM-powered deep security analysis for vulnerabilities that pattern-matching cannot detect: IDOR, business logic flaws, race conditions, stale auth, mass assignment, privilege escalation. Defaults to Claude Haiku 4.5 (~cents per scan); pass model: 'sonnet' for deeper analysis at higher cost. Requires ANTHROPIC_API_KEY or OPENAI_API_KEY env var.
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": "<code>",
"language": "<language>"
},
"name": "deep_scan"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | Yes | Code to analyze | |
| focus | No | Focus area — narrows the prompt to a specific vulnerability class | all |
| model | No | LLM model. haiku = fast & cheap (default), sonnet = deeper analysis | haiku |
| format | No | Output format | markdown |
| context | No | Additional context (e.g., 'This is a payment endpoint') | |
| language | Yes | Programming language | |
| maxBytes | No | Max prompt size in bytes — caps cost. Code over this limit is truncated. | |
| existingFindings | No | Already-detected findings to avoid duplicating |