MCP server for data analysis with database connectivity, SQL query execution, schema inspection, data profiling, and chart generation capabilities
This server has significant gaps in definition quality. While all 12 tools are registered and have descriptions, the descriptions are often too brief (10-50 chars), parameter descriptions are minimal or missing, input schemas lack proper type constraints, and output schemas are completely undocumented. Error handling is present but generic. The tool portfolio itself shows some design issues: naming is generally clear but 'sample_rows_tool' and 'run_query_tool' have redundant '_tool' suffixes, and there's no clear separation between database-specific tools and dataset-specific tools. Most tools fall into the 35-50 range individually.
Analyze database schema and detect relationships between tables
Firstly create a session, then connect a user database to it with the specified session ID.
Create a new analysis session. Sessions allow the AI agent to store: database connections, cached query results, temporary datasets
Generate a visualization from query results.
Fetches the database schema: tables and their columns.
Simple test tool to verify the server works.
List uploaded datasets
Output schemas completely undocumented. Tools return dicts with 'status', 'data', 'message', or 'rows' fields, but the actual structure of nested objects is never specified. LLMs cannot reliably extract or chain results.
Descriptions are too brief (10-50 chars) and lack WHEN/WHY context. E.g. 'Fetches the database schema: tables and their columns.' (56 chars) does not explain when to call it relative to other schema tools (analyze_schema, get_schema are similar). LLMs cannot disambiguate.
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 | 42 | - | v1 |
Profile a database table to understand data distribution.
Run SQL queries on uploaded datasets
Run a SQL query against the connected database and return results.
Sample rows from a specified table.
Upload CSV/Excel/JSON dataset for analysis
Many parameters lack descriptions or have minimal descriptions. E.g. 'run_query_tool' accepts 'sql' with description 'SQL SELECT query to execute (only SELECT and WITH queries allowed)' but does not document max query length, timeout behavior, or result limits. 'sample_rows_tool' has limit parameter but no statement of bounds (docs say max 50, not visible in schema).
Session-based state management (session_id required for most tools) is not documented as a prerequisite. Many tools require 'session_id with a connected database' but there is no clear onboarding guide: must call create_session() first, then connect_database_tool(), then other tools. This dependency is implicit and will cause agent confusion.
Naming inconsistency: 'sample_rows_tool', 'run_query_tool', 'generate_chart_tool', 'upload_dataset' all have redundant '_tool' suffix or inconsistent patterns. Most tools drop the suffix (get_schema, profile_table, analyze_schema, list_datasets, query_dataset, create_session, hello). Standardize to verb_noun without '_tool'.
Error handling is generic. Tools return {'status': 'error', 'message': str(e)} with raw exception strings. LLMs cannot distinguish retryable errors (connection timeout) from user-fixable errors (invalid SQL). No recovery guidance or actionable error messages.
Parameter types are present in schema but constraints are missing. E.g. 'limit' in sample_rows_tool is integer but no min/max specified in schema (docs mention max 50, not enforced in code). 'chart_type' accepts string but no enum constraint. LLMs will pass invalid values (limit=999999, chart_type='banana').
Semantic overlap between tools. 'get_schema' (tables and columns), 'analyze_schema' (relationships between tables), and 'profile_table' (data distribution) all expose schema-related operations but descriptions do not clarify the distinction or call order. 'list_datasets' and 'query_dataset' operate on uploaded data; 'run_query_tool' operates on connected databases, no clear separation in naming or description.