Change a Data Set
dataset_updateChange a Data Set you own, by name: its SQL (or, for a SaaS source, its JSON source selection), description, refresh schedule, refresh mode, indexed columns or freshness window. Only the fields you pass change; the rest keep their values. A schedule is EITHER refreshIntervalSeconds OR refreshCron — passing one replaces whichever the Data Set had, and passing both as null makes it manual-refresh only. The cached table is not rebuilt by this call: it keeps its last build until the next refresh (an interval schedule fires straight away; a cron waits for its next occurrence; a manual one waits for you). Call dataset_refresh to rebuild it now. A Data Set shared with you can only be changed by its owner.
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": {
"name": "<name>"
},
"name": "dataset_update"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sql | No | New SQL to materialize, or for a SaaS source the JSON source-selection object as text. Omit to keep it. | |
| name | Yes | Name of the Data Set to change, from dataset_list | |
| syncKey | No | With Sync: the unique key column. null lets it pick. Omit to keep it. | |
| description | No | New description. "" clears it. Omit to keep it. | |
| refreshCron | No | 5-field UTC cron schedule, replacing any interval. null clears it. | |
| refreshMode | No | "auto": Sync when the query allows it, else reload every row. "sync": copy only changed rows (PostgreSQL, one table, a unique key and a changed-at timestamp in the result). "full": reload every row. "incremental": append rows past incrementalKey. Setting it again after Sync stopped tries Sync again. Omit to keep it. | |
| indexColumns | No | Columns to index on the cached table, replacing the current list. Omit to keep it. | |
| incrementalKey | No | The increasing column an incremental refresh reads past. Omit to keep it. | |
| syncChangedColumn | No | With Sync: the changed-at timestamp column. null lets it pick. Omit to keep it. | |
| freshnessWindowSeconds | No | How long a build stays fresh before a read triggers a lazy refresh. Omit to keep it. | |
| refreshIntervalSeconds | No | Refresh every N seconds (minimum 300), replacing any cron. null clears it. Omit both this and refreshCron to keep the current schedule. |