AI agent guardrails MCP server -- input validation, output filtering, policy enforcement, audit logging
Guardrails MCP server presents a security-focused tool set with clear naming and moderate schema coverage. However, it exhibits significant gaps in parameter descriptions, output schema documentation, and error handling guidance. Tool names correctly start with action verbs (validate_, filter_, check_, get_, add_, remove_, update_), which is a strength. All 8 tools have non-empty descriptions (10-120 chars), meeting the basic bar but falling short of the LLM-optimized 50-200 char target. Parameter schemas are present for all tools with proper type definitions, but 5 of 8 tools lack descriptions for critical parameters. Output schemas are entirely undocumented, the rubric requires documentation of return types (100% of A+ tools have documented return types), and this server provides none in the visible source. Error handling is minimal; there is no evidence of recovery guidance, error categorization (retryable vs. fatal), or suggestions for next steps. The write operations (update_config, add_policy, remove_policy) lack confirmation/dry-run patterns and permission gate documentation. Rate limiting and input size constraints are implemented at the engine level but not surfaced in parameter descriptions. Overall, the server is functional but falls into the 'fair to poor' category due to incomplete parameter documentation, missing output schema docs, and lack of agent-friendly error recovery patterns.
Add a custom security policy
Evaluate text against security policies
Filter output text to redact sensitive data (PII, secrets, credentials)
Retrieve audit logs with optional filtering
Get current engine statistics — active users, request counts, blocked requests
Remove a custom security policy by name
Update guardrails engine configuration
No output schemas documented for any tool. LLMs cannot infer what fields to expect in responses, preventing reliable chaining and forcing manual response parsing.
Parameter descriptions missing or minimal: 'limit' in get_audit_logs is undescribed; 'event_type' in get_audit_logs lacks guidance; get_stats has empty properties object with no parameter descriptions.
No error handling or recovery guidance. Tools do not document what errors are retryable, what causes failures, or how agents should respond. E.g., add_policy with invalid regex should suggest 'pattern must be a valid regex'.
Inferred effective spec: <=2025-11-25.
| Scored | Grade | Overall | Spec posture | Rubric |
|---|---|---|---|---|
| 2026-09-22 | C | 65 | <=2025-11-25 | v2 |
| 2026-03-09 | F | 46 | 2024-11-05+ | v1 |
Validate and sanitize input text for prompt injection, malicious code, and PII
Destructive operations lack confirmation or dry-run patterns. update_config, add_policy, and remove_policy can modify state without agent confirmation, risking unintended policy changes.
Tool descriptions do not explain prerequisites or when to use alternative tools. 'Validate and sanitize input' does not clarify how it differs from check_policy or when an agent should call both.
Permission gates not documented. update_config, add_policy, and remove_policy are write operations but lack scope declarations or permission requirement documentation (e.g., 'requires write:policies scope').
Rate limiting and input size constraints are enforced at engine level but not surfaced in parameter descriptions. Users/agents do not know max_tokens_per_request or max_requests_per_minute limits upfront.
Tool descriptions are below the 50-200 character LLM-optimized range. Most are 60-120 chars, missing crucial context about when to call them and what side effects occur.