SafePrompt

v0.1.1
dev.safeprompt/mcp Checked 3 days ago Published 1 month ago

Detect 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.

ParameterTypeDescription
prompt *stringThe untrusted text to validate.
sensitivitystringOptional. 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.

ParameterTypeDescription
prompts *arrayArray of untrusted texts to validate (max 100).
sensitivitystringOptional. 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'…