Educational repository containing multiple MCP server implementations: Video Games Store (SQLite database queries), Gmail Manager (email management with OAuth), and Gmail Manager with JWT Authorization (granular role-based access control)
This server has critical structural issues. Tool definitions lack proper descriptions (many under 20 chars or generic), schemas are present but minimal, and there are 6 duplicate tool registrations (list_emails and send_email appear 3 times each). The SQL tools have basic descriptions but no parameter validation guidance. Gmail tools have longer docstrings but include example values in descriptions (anti-pattern). No error handling guidance, no output schemas documented, and no tool annotations. The codebase shows functional implementations but the MCP interface is poorly designed for LLM consumption.
Describe the structure of a specific table.
Execute a SQL query and return the results. Only SELECT queries are allowed.
Lista los emails recientes del usuario Args: max_results: Número máximo de emails a retornar (default: 10) query: Filtro de búsqueda de Gmail (ej: "from:[email protected]", "is:unread") Returns: Lista de emails con id, asunto, remitente y snippet
Lista los emails recientes del usuario Args: max_results: Número máximo de emails a retornar (default: 10) query: Filtro de búsqueda de Gmail (ej: "from:[email protected]", "is:unread") Returns: Lista de emails con id, asunto, remitente y snippet
Lista los emails recientes del usuario Args: max_results: Número máximo de emails a retornar (default: 10) query: Filtro de búsqueda de Gmail (ej: "from:[email protected]", "is:unread") Returns: Lista de emails con id, asunto, remitente y snippet
Duplicate tool registrations: list_emails and send_email each registered 3 times. This creates ambiguity for LLM tool selection and violates single-responsibility principle.
No output schemas documented. Tools return complex objects (list of dicts, nested email structures) but LLMs have no formal schema to understand response structure for downstream chaining.
Example values embedded in descriptions (e.g., 'from:[email protected]', 'is:unread'). LLMs reuse examples literally rather than adapting to context, causing failed queries.
No error handling guidance. ejecutar_consulta validates SELECT-only but returns generic ValueError. No recovery hints for LLM (e.g., 'Try a simpler query' or 'Check table names with listar_tablas').
Inferred effective spec: <=2025-11-25.
| Scored | Grade | Overall | Spec posture | Rubric |
|---|---|---|---|---|
| 2026-09-23 | D | 51 | <=2025-11-25 | v2 |
List all tables in the database.
Envía un email desde la cuenta del usuario Args: to: Dirección de email del destinatario subject: Asunto del email body: Cuerpo del mensaje en texto plano Returns: Confirmación con el ID del mensaje enviado
Envía un email desde la cuenta del usuario Args: to: Dirección de email del destinatario subject: Asunto del email body: Cuerpo del mensaje en texto plano Returns: Confirmación con el ID del mensaje enviado
Envía un email desde la cuenta del usuario Args: to: Dirección de email del destinatario subject: Asunto del email body: Cuerpo del mensaje en texto plano Returns: Confirmación con el ID del mensaje enviado
SQL injection risk in describir_tabla: f-string interpolation of table name into PRAGMA query. No input sanitization despite accepting user-provided table names.