Secret Scan (gitleaks)
secret_scanDetect exposed secrets in codebases using entropy-based analysis. Scan the working tree or full git history to find credentials that remain vulnerable even after deletion.
Instructions
Entropy-based secret detection via gitleaks. Set includeHistory=true to scan every commit — secrets in git history stay exploitable until rotated, even after deletion from HEAD.
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": {
"path": "<path>"
},
"name": "secret_scan"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Absolute path to the repository root | |
| includeHistory | No | Scan full git history, not just the working tree |