SafePrompt
v0.1.1Detect prompt injection, jailbreaks, and code injection in untrusted text before it reaches an LLM.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
validate_prompt Validate a prompt for injection attacks
Check a single piece of untrusted text (a user message, a retrieved RAG document, tool output, etc.) for prompt injection, jailbreaks, instruction-override, data-exfiltration, and code injection BEFORE passing it to an LLM. Returns a safe/unsafe verdict with confidence, threat category, and reasoning. Call this on any untrusted input you are about to feed to a model.
| Parameter | Type | Description |
|---|---|---|
prompt * | string | The untrusted text to validate. |
sensitivity | string | Optional. Omit to use the account default. 'no_judgement' blocks only clear attacks, for apps whose users tell the AI exactly what to write. 'balanced' is an older name for it. 'strict' and 'lenient'… |
validate_prompts Batch-validate multiple prompts
Validate many pieces of untrusted text in one call (processed in parallel server-side). Use for bulk pre-screening, indexing pipelines, or checking a batch of retrieved documents. Returns one verdict per input, in order.
| Parameter | Type | Description |
|---|---|---|
prompts * | array | Array of untrusted texts to validate (max 100). |
sensitivity | string | Optional. Omit to use the account default. 'no_judgement' blocks only clear attacks, for apps whose users tell the AI exactly what to write. 'balanced' is an older name for it. 'strict' and 'lenient'… |