scan_secrets
Detect leaked credentials, API keys, and tokens in text. Returns detailed scan results with pattern IDs and positions to block or flag exposed secrets.
Instructions
Scan text for leaked credentials, API keys, tokens, and other secrets. Returns a full ScanResult with per-match details including pattern id, family, and character positions.
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": {
"text": "<text>"
},
"name": "scan_secrets"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | The text to scan for secrets | |
| blockOnAny | No | When true (default), any detected secret causes a BLOCK decision | |
| minEntropy | No | Minimum Shannon entropy required for high-entropy pattern matches (default: 4.0) |