clean_spreadsheet
Repair data quality errors in a spreadsheet by applying safe cleaning rules and save the cleaned file to a specified output path. Optionally target rules like deduplication or trimming.
Instructions
Repair data quality errors in a spreadsheet and save the cleaned file to output_path.
Overwrites any existing file at `output_path`. Optional `rules` can filter specific
operations or categories (e.g. ["drop_duplicates", "trim"]). When omitted, safe and
high-confidence repairs are applied automatically.
Args:
file_path: Path to the source spreadsheet to clean.
output_path: Destination path where the cleaned file will be written (overwrites if exists).
rules: Optional list of specific cleaning rule identifiers to apply; defaults to all safe rules.
Returns:
JSON string with before/after quality score delta, row counts, output path, and operation log.
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>",
"output_path": "<output_path>"
},
"name": "clean_spreadsheet"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| rules | No | ||
| file_path | Yes | ||
| output_path | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |