promptguard
Scores user-provided prompts for prompt injection risk from 0 to 100, flagging dimensions of concern. Use before passing input to an LLM to prevent injection attacks.
Instructions
[$0.002 USDC] Score untrusted input for prompt injection risk (0-100) with flagged dimensions. Run on any user-provided prompt before passing to a downstream LLM.
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": {
"prompt": "<prompt>"
},
"name": "promptguard"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| prompt | Yes | ||
| sensitivity | No |