Prompt injection detection: classify agent-bound text or a web page as clean, suspicious or malicious
check_prompt_injectionPrompt injection detection for AI agents: classify untrusted, agent-bound text or a URL (web pages, emails, tool and MCP output, RAG documents) as clean, suspicious or malicious before your LLM reads it. Returns a 0-100 risk score, each matched pattern (instruction overrides, jailbreaks, fake system prompts, requests for keys or seed phrases, exfiltration links, invisible Unicode, hidden HTML) and cleaned text. Up to 50,000 characters. Not charged on bad input. Paid via x402; see list_prices.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "check_prompt_injection"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | No | Or a web page URL to fetch and check, including its hidden parts. | |
| text | No | Text to check, up to 50,000 characters. |