xlsx_data_clean
Scan .xlsx files for data-quality issues such as NA variants, merged-cell residue, type-coercion errors, stray rows, mojibake, and duplicate headers, then flag or fix them.
Instructions
Use this when you need to scan for the common data-grime issues (NA variants, merged-cell residue, type-coercion mistakes, stray header/footer rows, mojibake, duplicate headers) and either flag or fix them.
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": {
"file_path": "<file_path>"
},
"name": "xlsx_data_clean"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | diagnose (default): return findings only, file untouched. execute: apply deterministic fixes; cleaned bytes returned in _meta.file_b64. | |
| sheets | No | Restrict to these sheet names. Default: all sheets. | |
| options | No | Detector tunables. | |
| out_path | No | Optional save path for cleaned output (execute mode). | |
| detectors | No | Subset of detectors to run. Default: all 7 (na_variant, merged_cell_residue, type_coercion_mistake, trailing_row_noise, header_row_not_first, encoding_glitch, duplicate_header). | |
| file_path | Yes | Absolute path to the .xlsx file. Pass the path string AS-IS — do NOT read, open, or base64-encode the file; the client handles all file I/O. The base64 surface in this connector is OUTPUT-only (_meta.file_b64). | |
| overrides | No | Per-detector / per-scope skip / flag_only / force overrides. | |
| accept_findings | No | Execute mode only — finding IDs to apply. Default: all. | |
| reject_findings | No | Execute mode only — finding IDs to skip. |