prompt_injection_check
Detect prompt injection and jailbreak attempts in untrusted text such as scraped web pages, emails and tool output. JSON body {text} (max 50,000 chars). Rule-based detection of instruction override phrasing, role spoofing tags, data leak links and hidden Unicode in 6 languages. Returns verdict safe, suspicious or malicious, a 0-100 score and matched spans. Text is not stored. Free tier: 25 calls/day per IP with header X-Free-Call: 1 (or ?free=1). Price $0.005 USDC per call via x402. Example output: {"verdict":"safe","score":0,"chars":56,"categories":{},"matches":[]}
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": "prompt_injection_check"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| free | No | Use the shared free allowance (25 successful calls per IP per UTC day across eligible tools). Defaults to false. | |
| text | Yes | Text to screen, max 50,000 characters |