A standalone MCP server that provides prompt injection detection capabilities via the Model Context Protocol. It connects to the Prompt Inspector backend API to perform text analysis.
Single tool 'detect' has a clear, well-structured description (194 chars) and properly typed input schema with a string parameter. However, the tool lacks output schema documentation, the description mentions 'human-readable result with attached JSON summary' but does not specify the actual response structure (fields, types). No error handling guidance is provided. The tool name 'detect' is a weak verb; 'detect_prompt_injection' would be more explicit per naming patterns. Parameter description is adequate but could specify constraints (e.g., max length, non-empty validation).
Detect potential prompt injection or malicious content in the given text. This tool analyzes the provided text using Prompt Inspector's multi-layer detection engine (sensitive word matching + semantic vector search + optional LLM review) and returns a human-readable result with an attached JSON summary.
Output schema not documented. Description mentions 'JSON summary' but does not specify response fields, types, or structure. LLMs cannot plan downstream operations without knowing what fields to extract.
Tool name 'detect' is a weak, generic verb. Should be 'detect_prompt_injection' or 'analyze_prompt_injection' to clearly signal the action and domain per naming conventions.
No error handling guidance. If text is empty, too long, or the backend API fails, the tool provides no recovery hints. Error responses should guide the LLM on retry strategy or alternative actions.
Parameter 'text' lacks format constraints. Description says 'non-empty string' but does not specify max length, character restrictions, or encoding. Unbounded strings can cause API timeouts or failures.
Inferred effective spec: <=2025-11-25.
| Scored | Grade | Overall | Spec posture | Rubric |
|---|---|---|---|---|
| 2026-09-23 | D | 59 | <=2025-11-25 | v2 |
No tool annotations (readOnlyHint, destructiveHint, idempotentHint). The 'detect' tool is read-only and idempotent, these hints should be declared to help agents reason about safety and retry behavior.