watch
Profiles tables and detects anomalies against stored baselines, returning severity and hints per table. Pass table names to limit scope or omit to check saved or all tables.
Instructions
Profile tables and detect anomalies against the stored baseline.
Returns the anomalies found (type, severity, message per table), capped.
Each also carries column, metric, baseline, current, change_pct
and a fixed hint on where to look, null when one does not apply.
Pass tables to limit scope, or omit to watch the tables saved with
scherlok connect --table, else everything. A table with no
prior baseline gets the new-table checks instead (empty_table,
all_null_column, duplicate_key as WARNING, constant_column as INFO),
and its baseline is set for next time. A table with a CRITICAL anomaly
keeps its baseline, so the anomaly is reported again on every call until
the data recovers or a person runs scherlok accept; WARNING and INFO
findings are learned. With baselines locked, nothing is learned.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "watch"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tables | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||