Skip to main content
Glama

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault

No arguments

Instructions

Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.

This server publishes no instructions, or was last inspected before Glama recorded them.

Capabilities

Features and capabilities supported by this server

Protocol revision2025-11-25

CapabilityDetails
tools
{
  "listChanged": false
}
resources
{
  "subscribe": false,
  "listChanged": false
}

Tools

Functions exposed to the LLM to take actions

NameDescription
analyze_pyspark_sourceA

Statically analyze PySpark or Delta Live Tables (DLT) Python source code for Catalyst plan bloat, anti-patterns, skew risks, watermark reordering, and missing quarantine gates.

Usage Guidelines:

  • Use for individual Python (.py) source strings or pipeline scripts.

  • For SQL queries or DLT SQL statements, use analyze_sql_source instead.

  • For scanning entire directories or multiple repository files, use scan_pipeline_directory instead.

Behavior:

  • Runs 100% offline via local Python AST inspection. Does NOT connect to Databricks clusters, execute code, or require JVM/cloud credentials.

  • Deterministic and idempotent. Returns a structured JSON report containing finding counts and diagnostic items.

  • Syntax errors or invalid Python constructs are surfaced as diagnostic findings rather than raising unhandled exceptions.

analyze_sql_sourceA

Audit Databricks SQL or Delta Live Tables (DLT) SQL source code for quality expectation risks, Cartesian joins, schema drift traps, and optimization opportunities.

Usage Guidelines:

  • Use for individual SQL (.sql) query text or DLT SQL statements (e.g., CREATE STREAMING TABLE, expect_or_drop).

  • For PySpark Python pipelines, use analyze_pyspark_source instead.

  • For scanning an entire repository or folder of mixed SQL and Python files, use scan_pipeline_directory instead.

Behavior:

  • Pure offline static AST parsing via sqlglot. Does NOT execute queries, access databases, or connect to Databricks SQL warehouses.

  • Deterministic and idempotent. Returns a structured diagnostic report with violation counts and remediation advice.

  • Syntax errors are surfaced as structured diagnostic findings.

scan_pipeline_directoryA

Recursively scan a local repository or directory of PySpark (.py), SQL (.sql), and Databricks notebook (.ipynb) files to produce an aggregated lakehouse quality audit report.

Usage Guidelines:

  • Use to audit an entire repository, dbt/DLT project, or folder containing multiple pipeline files.

  • For auditing a single Python pipeline script, prefer analyze_pyspark_source.

  • For auditing an isolated SQL query, prefer analyze_sql_source.

Behavior:

  • Recursively inspects the filesystem at directory_path.

  • Completely offline; runs without cloud credentials, JVM, or active cluster connections.

  • Evaluates all supported files, computes individual and aggregate health scores (0-100), and reports per-file findings.

  • Individual file errors are captured inside per-file reports without halting the directory scan.

forecast_dbu_costA

Forecast Databricks DBU consumption and compute costs (Classic compute vs. Serverless) and recommend optimal worker sizing based on ingestion throughput and shuffle complexity.

Usage Guidelines:

  • Use during architectural sizing, capacity planning, and cost optimization before deploying Lakeflow or DLT pipelines.

  • For Delta Lake table storage layout and file size optimization, use audit_compaction_debt instead.

Behavior:

  • Pure deterministic mathematical calculation based on Databricks official DBU pricing and node SKU specifications.

  • Does NOT query Databricks billing APIs, account consoles, or live workspace compute.

  • Returns hourly, daily, and monthly DBU and USD cost projections across Classic and Serverless options with cluster node recommendations.

audit_compaction_debtA

Evaluate Delta Lake table file-size distribution for small-file fragmentation debt and synthesize targeted OPTIMIZE, ZORDER BY, Liquid Clustering, and TBLPROPERTIES SQL commands.

Usage Guidelines:

  • Use when troubleshooting slow Delta Lake queries, read amplification, or excessive metadata overhead.

  • Prerequisites: Obtain file sizes in bytes (e.g. from DESCRIBE DETAIL table_name, Delta transaction logs, or cloud storage inventory).

  • To forecast pipeline compute cluster DBU burn instead, use forecast_dbu_cost.

Behavior:

  • Purely analytical calculation; parses file size array and computes fragmentation statistics.

  • Does NOT connect to cloud object storage or execute the generated OPTIMIZE/ALTER TABLE statements against a live warehouse.

  • Returns small-file ratios, compaction urgency rating, and copy-pasteable SQL remediation scripts.

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription
Registered Diagnostic RulesCatalog of all static AST and Lakehouse diagnostic rules in dlt-doctor.

TDQS

A4.7/5.0

Scored across 5 tools

Disambiguation5/5

Each tool has a clearly distinct target: PySpark source, SQL source, directory scanning, Delta compaction debt, and DBU cost forecasting. The descriptions explicitly cross-reference alternatives when the scope might overlap, such as single-file analysis versus full-directory scanning.

Naming Consistency5/5

All names use a consistent snake_case verb_noun pattern: analyze_pyspark_source, analyze_sql_source, audit_compaction_debt, scan_pipeline_directory, and forecast_dbu_cost. The verbs are varied but predictable and readable.

Tool Count5/5

Five tools is well-scoped for an offline lakehouse pipeline audit toolkit. Each tool covers a distinct practical need, with no redundant or filler operations.

Completeness5/5

The surface covers the apparent domain well: single-file PySpark analysis, single-file SQL analysis, full-directory/repository scanning, Delta table compaction remediation, and DBU cost forecasting. The tools work together as a coherent advisory suite without obvious dead ends.

Maintenance

ActivityMaintained
ResponsivenessNo recent community issues