scan_prompt
Scans text for prompt injection, returning a decision trace with risk level, matched patterns, and recommended action. Supports contexts like user prompts, RAG documents, tool args, and A2A payloads.
Instructions
Scan a piece of text for prompt injection. Returns full decision trace.
context: where this text came from (user-prompt | rag-document | tool-arg | a2a-payload) Returns
safe,risk_level(none|low|medium|high|critical),patterns_matched(list of rule hits), andrecommended_action(allow | log | escalate | block).
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": {
"tenant_id": "<tenant_id>",
"text": "<text>"
},
"name": "scan_prompt"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tenant_id | Yes | ||
| text | Yes | ||
| context | No | user-prompt | |
| api_key | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |