gk_scan
Perform best-effort CWE detection in code using regex heuristics and optional semgrep. Action-based results provide signal, not a full audit.
Instructions
Best-effort regex CWE heuristics (signal, not a pro audit); optional semgrep CLI. Pass action= and optional args={}. 2 actions; unknown action returns allowed list (saves schema tokens).
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": {
"action": "<action>"
},
"name": "gk_scan"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| args | No | ||
| action | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |