FileDashboard MCP
v1.0.1Privacy-first Excel, CSV, PDF & Word visual comparison, ML anomaly & DuckDB SQL SEP-1865 MCP App
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
open_file_dashboard FileDashboard
Launch the interactive SEP-1865 FileDashboard visual cockpit UI for a human user needing an all-in-one visual exploration workspace or a built-in demo scenario ('procurement_audit', 'contract_diff', 'expenses_forecast'). Use ONLY when the user explicitly asks to open the visual dashboard or view a demo; do NOT call this for automated file loading or targeted single-purpose analyses — use ingest_workspace_files to mount user files, then reconcile_cross_files, detect_data_anomalies, query_workspace_sql, or compare_documents. Strictly read-only on disk (applies local GDPR/KVKK PII masking). Ret…
| Parameter | Type | Description |
|---|---|---|
file_paths | Optional list of local file paths (CSV, TSV, Excel, JSON, Parquet, PDF, Word, TXT/MD) to ingest read-only when opening the visual cockpit. | |
scenario | Optional built-in demo dataset to preload: 'procurement_audit', 'contract_diff', or 'expenses_forecast'. Ignored when file_paths is provided. |
ingest_workspace_files Ingest Local Files with PII Shield
Run first in a programmatic workflow (before reconcile_cross_files, detect_data_anomalies, query_workspace_sql, or compare_documents) and prefer over open_file_dashboard whenever loading local files without explicitly launching the visual cockpit UI. Reads local CSV, TSV, Excel (.xlsx), JSON, Parquet, PDF, Word (.docx), or TXT/MD files strictly read-only into the in-memory DuckDB workspace with automatic local GDPR/KVKK PII masking, then computes initial reconciliation, IsolationForest anomalies, trend forecast, and document diff. Returns ingestion timing plus structured DashboardSnapshot (tab…
| Parameter | Type | Description |
|---|---|---|
file_paths * | array | One or more local file paths (CSV, TSV, .xlsx, JSON, Parquet, PDF, .docx, TXT/MD) to ingest into the in-memory DuckDB workspace. |
reset_workspace | boolean | When True (default), clears previously mounted tables and documents before loading; set False to append files into the active workspace. |
reconcile_cross_files Fuzzy Reconcile Two Tables
Prefer this focused tool over open_file_dashboard whenever you only need to match rows and quantify numeric variances across two already-mounted tables (call ingest_workspace_files first if user files are not loaded; do not use for prose/contract comparison — use compare_documents instead). Uses RapidFuzz entity normalization across left_table and right_table (including PDF tables vs. Excel sheets), auto-detecting key and value columns if omitted and flagging percentage variances >= variance_flag_pct. Strictly read-only; returns variance summary plus structured DashboardSnapshot with reconci…
| Parameter | Type | Description |
|---|---|---|
left_table * | string | Exact name of the baseline mounted table in DuckDB. |
right_table * | string | Exact name of the comparison mounted table in DuckDB. |
left_key_col | Optional join/entity key column in left_table (auto-detected if omitted). | |
left_value_col | Optional numeric metric column in left_table (auto-detected if omitted). | |
right_key_col | Optional join/entity key column in right_table (auto-detected if omitted). | |
right_value_col | Optional numeric metric column in right_table (auto-detected if omitted). | |
variance_flag_pct | number | Percentage difference threshold to flag a row variance (default: 8.0). |
detect_data_anomalies Detect ML Anomalies (IsolationForest)
Prefer this focused tool over open_file_dashboard whenever you only need statistical or ML outlier detection on a single mounted table (call ingest_workspace_files first if user files are not loaded). Runs scikit-learn IsolationForest on table_name (auto-selecting the primary numeric value_column and label_column when omitted) using the contamination rate (default 0.05 = ~5% outliers). Strictly read-only; returns top flagged outliers with reasons plus structured DashboardSnapshot with anomalies (anomaly_count, total_rows, mean, std, points).
| Parameter | Type | Description |
|---|---|---|
table_name * | string | Exact name of the mounted DuckDB table to scan for outliers. |
contamination | number | Expected proportion of anomalies in the dataset (default: 0.05). |
label_column | Optional row label/identifier column for readable outlier output. | |
value_column | Optional numeric column to analyze (auto-detected if omitted). |
query_workspace_sql Run Read-Only DuckDB SQL
Prefer this focused tool over open_file_dashboard whenever you need custom ad-hoc aggregations, joins, or filtering across mounted tables (call ingest_workspace_files first if user files are not loaded). Executes strictly read-only DuckDB SQL (allows SELECT, WITH, DESCRIBE, and SUMMARIZE only; blocks DDL, writes, multi-statements, and external file functions) capped at max_rows. Returns row/column summary plus structured DashboardSnapshot and sqlResult (sql, columns, rows, row_count, truncated, elapsed_ms).
| Parameter | Type | Description |
|---|---|---|
sql * | string | Read-only DuckDB SQL statement (SELECT, WITH, DESCRIBE, or SUMMARIZE) referencing mounted workspace table names. |
max_rows | integer | Maximum number of result rows to return (default: 100). |
compare_documents Compare Two Documents & Numeric Shifts
Prefer this focused tool over open_file_dashboard whenever you only need clause-by-clause text, contract, or policy diffing between two already-mounted Word, PDF, or text documents (do not use for tabular CSV/Excel row reconciliation — use reconcile_cross_files instead). Surfaces exact changed currencies, percentages, durations, and numeric shifts. Strictly read-only; returns diff summary plus structured DashboardSnapshot with document_diff (similarity_pct, modified_count, added_count, removed_count, numeric_changes, clause_changes).
| Parameter | Type | Description |
|---|---|---|
left_doc * | string | Exact doc_id or filename of the baseline mounted document. |
right_doc * | string | Exact doc_id or filename of the updated mounted document. |
app_ingest_files UI Callback: Ingest Uploaded Local Files
App-only UI callback (hidden from model) to ingest one or more user-selected local files (base64-encoded bytes) directly from the SEP-1865 dashboard iframe into the in-memory DuckDB workspace with automatic GDPR/KVKK PII masking.
| Parameter | Type | Description |
|---|---|---|
files * | array | One or more uploaded files with filename and base64-encoded raw bytes. |
reset_workspace | boolean | When True (default), clears existing tables/docs before loading; False appends. |
app_load_scenario UI Callback: Load Demo Scenario
App-only UI callback (hidden from model) to load a built-in demo scenario inside the dashboard iframe.
| Parameter | Type | Description |
|---|---|---|
scenario | string | Built-in scenario key ('procurement_audit', 'contract_diff', or 'expenses_forecast'). |
app_clear_workspace UI Callback: Clear In-Memory Workspace
App-only UI callback (hidden from model) to reset the in-memory DuckDB workspace from the dashboard iframe.
app_run_sql UI Callback: Execute Read-Only SQL
App-only UI callback (hidden from model) to execute read-only DuckDB SQL from the dashboard iframe.
| Parameter | Type | Description |
|---|---|---|
sql * | string | Read-only DuckDB SQL query to run in the workspace. |
app_reconcile UI Callback: Reconcile Mounted Tables
App-only UI callback (hidden from model) to re-run table reconciliation from the dashboard iframe.
| Parameter | Type | Description |
|---|---|---|
left_table * | string | Baseline mounted table name. |
right_table * | string | Comparison mounted table name. |
variance_flag_pct | number | Percentage variance flag threshold (default: 8.0). |
app_detect_anomalies UI Callback: Detect ML Anomalies
App-only UI callback (hidden from model) to re-run IsolationForest anomaly scanning from the dashboard iframe.
| Parameter | Type | Description |
|---|---|---|
table_name * | string | Mounted table name to scan. |
contamination | number | Expected anomaly proportion (default: 0.05). |
value_column | Optional numeric column name. |