Tableau Workbook Auditor
v1.0.1Local-only Tableau .twbx audit: lineage, unused fields, duplicate calcs, SQL, version diffs
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
analyze_workbook Analyze a Tableau workbook
Parse a local Tableau workbook (.twbx or .twb) and return an overview: field counts, datasources, calculated-field names by type, parameter names, and raw fields. Parsing happens locally; the file is never uploaded. Start here, then use the other tools for details.
| Parameter | Type | Description |
|---|---|---|
path * | string | Absolute (or cwd-relative) path to a local Tableau workbook: .twbx or .twb |
list_calculated_fields List calculated fields with formulas
List every calculated field in the workbook with its formula, type (calculated / LOD / table calc), datasource, and what it directly depends on. Optionally filter by a case-insensitive substring of the field name or formula.
| Parameter | Type | Description |
|---|---|---|
path * | string | Absolute (or cwd-relative) path to a local Tableau workbook: .twbx or .twb |
filter | string | Optional case-insensitive substring to match against field names and formulas |
get_field Get one field in full detail
Full detail for a single field by name (brackets optional, case-insensitive): formula, type, direct dependencies, and every field that directly uses it.
| Parameter | Type | Description |
|---|---|---|
field * | string | Field name, e.g. "Profit Ratio" or "[Profit Ratio]" |
path * | string | Absolute (or cwd-relative) path to a local Tableau workbook: .twbx or .twb |
trace_dependencies Trace a field’s lineage
Trace what a field is built from (upstream, recursive tree down to raw columns and parameters) and everything that would be affected if it changed (downstream, transitive). The impact-analysis tool: use before editing a calculation.
| Parameter | Type | Description |
|---|---|---|
field * | string | Field name, e.g. "Profit Ratio" or "[Profit Ratio]" |
path * | string | Absolute (or cwd-relative) path to a local Tableau workbook: .twbx or .twb |
max_depth | integer | Maximum upstream recursion depth (default 10) |
list_parameters List parameters
List every parameter in the workbook: current value, datatype, allowed values, and which calculated fields use each one.
| Parameter | Type | Description |
|---|---|---|
path * | string | Absolute (or cwd-relative) path to a local Tableau workbook: .twbx or .twb |
get_lineage_graph Get the full lineage graph
The complete dependency graph as JSON: one node per field/parameter (with type) and one directed edge per dependency (source feeds target). Suitable for rendering or graph analysis.
| Parameter | Type | Description |
|---|---|---|
path * | string | Absolute (or cwd-relative) path to a local Tableau workbook: .twbx or .twb |
list_sql_queries List the SQL stored in the workbook
Extract every SQL statement the workbook contains: Custom SQL relations (with the full query text), Initial SQL run when a connection opens, stored-procedure references with their parameters, and RAWSQL_* calculated fields. Each entry names the datasource and the database connection (class, server, dbname) it targets. Note: queries Tableau auto-generates at runtime for live connections are not stored in the file, so they cannot be extracted.
| Parameter | Type | Description |
|---|---|---|
path * | string | Absolute (or cwd-relative) path to a local Tableau workbook: .twbx or .twb |
list_filters List the filters in the workbook
Every filter in the workbook, deduplicated across worksheets: the field it acts on (caption-resolved), filter kind (categorical / quantitative / relative-date), whether it is a context filter, which worksheets use it, selected member values when stored, and quantitative ranges. Includes a by_worksheet grouping and the distinct list of fields driving any filter. Data-source filters are marked "(data source filter)".
| Parameter | Type | Description |
|---|---|---|
path * | string | Absolute (or cwd-relative) path to a local Tableau workbook: .twbx or .twb |
list_worksheets List worksheets with their fields and filters
Every worksheet in the workbook with the fields it uses (caption-resolved, from its datasource dependencies) and the filters it applies (field, kind, context status). The per-sheet view of the workbook: use it to answer "what does this sheet depend on?" or "where is this field actually displayed?".
| Parameter | Type | Description |
|---|---|---|
path * | string | Absolute (or cwd-relative) path to a local Tableau workbook: .twbx or .twb |
diff_workbooks Compare two workbook versions
Semantic diff between two Tableau workbooks: calculations added, removed, renamed or edited (with the downstream fields each edit affects), plus changed parameters, filters, worksheets, dashboards, data sources and stored SQL. Formula reformatting is ignored, and a field that disappears while an identical formula appears under a new name is reported as a rename. Use this for release notes, code review of a workbook change, or answering "what changed and what does it break?".
| Parameter | Type | Description |
|---|---|---|
after * | string | Path to the later .twbx or .twb |
before * | string | Path to the earlier .twbx or .twb |
audit_workbook Audit a workbook for dead weight and performance
Find what is wrong with a workbook: fields and parameters nothing uses (each with a confidence level and the reason), duplicate calculations (identical formulas under different names, and the more dangerous same-name-different-formula case), and performance findings (heavy LODs, nested calculations, deep calculation chains, non-fixed dashboard sizing, live connections, and more). Use it before a cleanup, a migration, or a workbook review. Unused fields are reported with confidence rather than as certainties, because a field can be referenced in ways a file cannot show.
| Parameter | Type | Description |
|---|---|---|
path * | string | Absolute (or cwd-relative) path to a local Tableau workbook: .twbx or .twb |