Modern Databricks App Template - FastAPI backend with React TypeScript frontend, featuring MCP server integration for executing Databricks SQL queries, listing warehouses, and browsing DBFS
The Databricks MCP server has 4 tools with basic structure but inconsistent quality. Tool naming follows verb_noun patterns (health, execute_dbsql, list_warehouses, list_dbfs_files), which is appropriate. However, parameter descriptions are thin, schemas lack depth, and error handling is minimal. The execute_dbsql tool is the most complex but its parameter descriptions omit critical details about format, constraints, and dependencies. Descriptions average ~50-80 chars, which is below the 194-char baseline for A+ tools. No tool annotations (readOnlyHint/destructiveHint) are present despite all tools being read-only. Output schemas are not formally documented in the source code.
Execute a SQL query on Databricks SQL warehouse.
Check the health of the MCP server and Databricks connection.
List files and directories in DBFS (Databricks File System).
List all SQL warehouses in the Databricks workspace.
Output schemas not documented. No tool returns a formal schema specification. LLMs cannot predict the structure of results (field names, types, pagination) and must guess or infer from trial calls.
execute_dbsql parameter descriptions lack actionable constraints. 'SQL query to execute' does not specify: Can it be DML (INSERT/UPDATE/DELETE)? Must it be read-only? What timeout? What's the max query length? What error handling for invalid SQL?
No tool annotations present. All 4 tools are marked Risk: READ_ONLY in metadata but no readOnlyHint annotation in the tool definition. This prevents MCP clients from making smart decisions about retry behavior or user confirmation.
| Scored | Grade | Overall | Spec posture | Rubric |
|---|---|---|---|---|
| 2026-09-22 | D | 57 | 2026-07-28+ | v2 |
| 2026-03-09 | F | 38 | - | v1 |
Parameter warehouse_id in execute_dbsql has optional=false in the schema but description says 'optional, uses env var if not provided'. This is contradictory. Resolver behavior (env fallback) is undocumented and forces LLMs to guess whether to pass the param or omit it.
list_warehouses and list_dbfs_files accept no pagination parameters (limit, offset, cursor). If a Databricks workspace has hundreds of warehouses or deeply nested DBFS paths, results are unbounded and will blow the context window.
Error handling in execute_dbsql returns dict {'success': False, 'error': '...'} for missing warehouse_id, but code also uses exception handling (try/except not visible in snippet). No guidance on retry logic, user-fixable vs fatal errors, or actionable recovery steps.
No batch operations offered. If an LLM needs to list multiple DBFS paths or execute multiple SQL queries, it must call list_dbfs_files or execute_dbsql N times instead of one batch call. Wastes tokens and latency.