scan_pipeline_directory
Recursively scan a repository folder of PySpark, SQL, and Databricks notebook files to audit lakehouse quality, compute aggregate health scores, and report per-file findings offline.
Instructions
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.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"directory_path": "<directory_path>"
},
"name": "scan_pipeline_directory"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| recursive | No | Whether to scan subdirectories recursively (default: true). | |
| directory_path | Yes | Local filesystem path to the pipeline repository or folder. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| reports | No | Per-file audit reports. | |
| clean_files | Yes | Number of files with zero findings. | |
| flagged_files | Yes | Number of files with at least one finding. | |
| overall_score | Yes | Composite health score from 0 (worst) to 100 (clean). | |
| target_directory | No | Directory path that was audited. | |
| total_files_scanned | Yes | Total pipeline files analyzed. |