scan_text
Analyze text for prompt injection, jailbreak attempts, data exfiltration, and social engineering threats using 42+ detection patterns to identify AI security risks.
Instructions
Scan text for prompt injection and security threats.
Analyzes the provided text using ClawGuard Shield's 42+ detection patterns to identify prompt injection attacks, jailbreak attempts, data exfiltration, social engineering, and other AI security threats.
Returns a scan result with:
is_clean: whether the text is safe
risk_score: threat level from 0 (safe) to 10 (critical)
severity: NONE, LOW, MEDIUM, HIGH, or CRITICAL
findings: list of detected threats with pattern names and descriptions
scan_id: unique identifier for this scan
Args: text: The text to scan for security threats. source: Optional source identifier for tracking (default: "mcp").
Returns: Scan result with clean/dirty status, risk score, and findings.
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_text"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | ||
| source | No | mcp |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||