set_time_travel_retention
Set the time-travel retention period on a Fabric Data Warehouse and retrieve the effective setting. Rejects SQL Analytics Endpoints.
Instructions
Set the time-travel retention period on a warehouse.
Executes ALTER DATABASE CURRENT SET TIME_TRAVEL_RETENTION_PERIOD = <n> DAYS
and returns the effective settings read back after the change.
Only supported on Fabric Data Warehouses (not SQL Analytics Endpoints).
SQL Analytics Endpoints are rejected with a ToolError.
Args: workspace: Workspace name or GUID. item: Warehouse name or GUID. SQL Analytics Endpoints are rejected. days: Retention period in days. Must be in the range 1-120 (inclusive).
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": {
"workspace": "<workspace>",
"item": "<item>",
"days": "<days>"
},
"name": "set_time_travel_retention"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| days | Yes | ||
| item | Yes | ||
| workspace | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||