MCP server for Odoo integration providing tools to search clients, products, and manage quotations via XML-RPC
This server presents three tools with Spanish names (buscar_cliente, buscar_producto, crear_cotizacion) that exhibit significant definition quality gaps. All tools have descriptions in the source code, but critical issues plague the schemas and parameters. The server uses FastMCP with STDIO transport, which limits remote accessibility. Tool naming does follow verb-noun convention in Spanish (buscar=search, crear=create), but parameter descriptions are sparse or missing entirely, and output schemas are completely undocumented. Error handling exists but is crude (plain strings), and there is no indication of structured output formatting for agents to parse reliably.
Busca clientes en Odoo cuyos nombres coincidan (parcialmente, sin importar mayúsculas/minúsculas) con el nombre proporcionado. Devuelve ID, Nombre, Email, Teléfono (máx 5).
Busca productos en Odoo cuyos nombres coincidan (parcialmente, sin importar mayúsculas/minúsculas) con el nombre proporcionado. Devuelve ID, Nombre, Código, Precio, Cant. Disponible (máx 5).
Crea una nueva cotización (Orden de Venta) en Odoo para un cliente específico con las líneas de producto dadas. Args: cliente_id (ID del cliente), lineas (Lista de dicts {'product_id': ID_PROD, 'product_uom_qty': CANTIDAD}). Returns: ID de la cotización creada o mensaje de error. Ejemplo lineas: [{'product_id': 40, 'product_uom_qty': 2}, {'product_id': 35, 'product_uom_qty': 1}]
Output schemas completely undocumented. Tools return plain string concatenations (e.g., 'Clientes encontrados para ...\n - ID: ..., Nombre: ...') rather than structured JSON objects. LLMs cannot reliably parse unstructured text responses, increasing hallucination risk and forcing manual parsing logic in downstream calls.
Input parameter 'lineas' in crear_cotizacion lacks type constraints and format guidance. Description states 'Lista de diccionarios con product_id y product_uom_qty' but does not specify if product_id must be an integer, what the valid range is for product_uom_qty, or whether an empty list is allowed. LLMs will guess at the structure.
No pagination support. Tools buscar_cliente and buscar_producto return hardcoded limit=5 but do not expose limit or offset parameters to the agent. If an agent needs more than 5 results, there is no way to fetch them. No next_cursor or total_count in responses either.
Inferred effective spec: <=2025-11-25.
| Scored | Grade | Overall | Spec posture | Rubric |
|---|---|---|---|---|
| 2026-09-22 | F | 45 | <=2025-11-25 | v2 |
| 2026-03-09 | F | 11 | - | v1 |
Error responses are unstructured strings with no actionable recovery guidance. Example: 'Error: No se pudo conectar con Odoo para buscar el cliente.' tells the LLM nothing about whether to retry, call a different tool, or ask the user. No error categorization (retryable vs user-fixable vs fatal).
No dry-run or confirmation step for destructive operation. crear_cotizacion modifies state (creates a sales order in Odoo) but offers no preview, confirmation, or rollback mechanism. An agent mistake results in an unwanted quote being created with no recovery path documented.
Parameter descriptions are minimal and do not include constraints. 'nombre_cliente' is described as 'Nombre del cliente a buscar' but lacks guidance on case sensitivity (though code shows ilike, which is case-insensitive), minimum/maximum length, special characters, or what happens if the input is empty (code returns a string message, not a structured error).
No tool annotations for read-only vs destructive operations. The MCP spec supports readOnlyHint, destructiveHint, and idempotentHint annotations. buscar_cliente and buscar_producto should be marked as read-only; crear_cotizacion should be marked as destructive. Without these hints, agents cannot reason about side effects or plan retry strategies.
Parameter 'cliente_id' in crear_cotizacion requires an integer ID, but no tool provides a way to look up cliente_id from a natural identifier (name, email, phone). This forces agents to first call buscar_cliente, extract the ID from a string response, parse it, and then call crear_cotizacion. The response parsing is error-prone because responses are unstructured.