An MCP server that integrates WrenAI semantic engine with LLM agents for agentic analytics. Provides tools for querying data through semantic models, cubes, and SQL execution with optional long-term memory via Mem0.
Server has 9 tools with mixed quality. Most tools lack complete input schemas (only 4 of 9 have visible schemas). Descriptions vary from adequate (query_cube, run_sql) to vague (get_instructions, get_context). Parameter descriptions are present but often generic. No output schemas documented. Tool naming follows verb_noun convention (good), but several tools lack clarity on when to use them vs. alternatives. Error handling guidance is minimal. The system prompt compensates somewhat by instructing the agent on workflow, but tool definitions themselves are incomplete.
Inspect the generated physical SQL dialect translation without executing it
Validate logical SQL against the physical database without retrieving results
Find relevant models, columns, and relationships based on user's question
Obtain relevant business rules and instructions for data queries
Execute a query against a cube measure (preferred path for metric queries). Executes the query automatically and returns results.
Retrieve similar historical queries and their SQL examples based on user's question
Execute logical SQL query and retrieve rows. Use after dry_run validation passes.
get_instructions has no visible input schema and vague description ('Obtain relevant business rules'). LLM cannot determine what parameters to pass or when this tool differs from get_context.
No output schemas documented for any tool. LLMs cannot plan downstream calls or extract required fields (e.g., does query_cube return column names? result count?). Violates pattern:tool requirement.
query_cube accepts 'filters' as an untyped object with no description of valid filter syntax, operators, or examples. LLM must guess filter format, risking malformed queries.
Inferred effective spec: <=2025-11-25.
| Scored | Grade | Overall | Spec posture | Rubric |
|---|---|---|---|---|
| 2026-09-23 | D | 53 | <=2025-11-25 | v2 |
MANDATORY: Call this tool IMMEDIATELY when the user states a rule, preference, or instruction for future queries (e.g., 'I always want...', 'Never do...'). Do not validate the schema first.
Search long-term memory for facts or context from past conversations
save_user_preference_to_memory is a WRITE tool but has no confirmation/dry-run step. Description says 'MANDATORY: Call IMMEDIATELY' which pressures the agent into irreversible state changes without validation.
Error handling is absent from tool definitions. No guidance on retryability, user-fixable vs. fatal errors, or recovery steps. System prompt compensates partially but tool definitions should be self-contained.