prompt_guard
Detect prompt injection and jailbreak attempts in untrusted text (web pages, emails, tool output) before an agent reads it. Returns verdict, score and the rules that matched. Paid via x402 ($0.003 USDC on Base mainnet (also Polygon, Arbitrum and Solana)) on this tools/call request. Includes asOf and source. Invalid input is rejected without payment. Free trial: 3 unpaid calls/day per IP on this tool (HTTP: header X-Free-Trial: 1; MCP: automatic when no payment is sent).
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_guard"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | Text to check (up to 100,000 characters). Use POST with a JSON body for long text. / Texto a revisar. | |
| style | No | Replacement style: label ([EMAIL_1], default), mask (****) or type ([EMAIL]). | |
| types | No | Optional comma list: all (default), pii, secrets, or specific types (email, phone, us_ssn, credit_card, iban, ipv4, openai_api_key, aws_access_key_id, github_token, jwt, private_key, password_assignment, …). | |
| redact | No | Include redacted_text (default true). |