check_references
Detect orphaned references by listing values that point to missing rows in referenced datasets, checking declared and inferred foreign-key links.
Instructions
Find orphans: values that point at rows missing from the referenced dataset, such as orders whose customer does not exist.
Without column and references, checks every foreign key the database declares, plus links guessed from column names across loaded datasets (orders.customer_id -> customers.id).
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": {
"dataset": "<dataset>"
},
"name": "check_references"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Orphan row numbers to list. | |
| column | No | Column in this dataset that points at another dataset, such as 'customer_id'. | |
| dataset | Yes | A dataset name returned by load_dataset. | |
| references | No | What it points at, as 'dataset.column', such as 'customers.id'. Pass with column. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||