fabric_run_table_maintenance
Perform table maintenance on a lakehouse table using OPTIMIZE, V-Order, or VACUUM to improve query performance and manage storage.
Instructions
Run table maintenance (OPTIMIZE / V-Order / VACUUM) on a lakehouse table (long-running).
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": {
"lakehouseId": "<lakehouseId>",
"tableName": "<tableName>"
},
"name": "fabric_run_table_maintenance"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| lakehouseId | Yes | Lakehouse ID | |
| tableName | Yes | Table to maintain | |
| schemaName | No | Schema name (schema-enabled lakehouses) | |
| optimize | No | Run OPTIMIZE | |
| vOrder | No | Apply V-Order during optimize | |
| vacuumRetentionDays | No | VACUUM retention in days | |
| workspace | No | Workspace ID (defaults to FABRIC_DEFAULT_WORKSPACE) |