Policy and safety middleware for MCP servers — authorization, rate limits, confirmation gates, audit logging, and PII redaction.
This is a middleware/policy library, not a traditional MCP server with rich tool definitions. The three example tools (list_contacts, delete_contact, admin_purge) have minimal descriptions and incomplete schemas. list_contacts and admin_purge have empty input schemas ({}), violating the requirement that every parameter be described. delete_contact has one parameter with a description, but the tool descriptions themselves are generic (10-15 chars, well below the 50-200 char baseline for LLM-optimized descriptions). No output schemas are documented. The library itself is well-engineered (policy evaluation, rate limiting, audit logging), but the example tools do not meet production quality standards for agent interaction.
Delete everything
Delete a contact
List all contacts
Tool descriptions are too short (10-15 chars). LLM-optimized descriptions should be 50-200 chars, explaining WHAT the tool does, WHEN to use it, and any prerequisites.
list_contacts and admin_purge have empty input schemas ({}). Even tools with no parameters should document their output schema so LLMs know what to expect.
No output schemas documented for any tool. LLMs cannot plan downstream calls or extract data without knowing the response structure.
delete_contact and admin_purge are destructive operations but lack confirmation or dry-run support. Agents can accidentally delete data without a safety gate.
Inferred effective spec: <=2025-11-25.
| Scored | Grade | Overall | Spec posture | Rubric |
|---|---|---|---|---|
| 2026-09-23 | F | 36 | <=2025-11-25 | v2 |
No error handling guidance. Tools do not return actionable error messages telling the LLM what to do if a call fails (retry, ask user, or abort).