Load a dataset into Postgres
load_datasetLoad a dataset into the caller's own Postgres database, as POST /v1/datasets/{id}/load does.
Signed-in callers only. Plan first: with `apply` false (the default) it says which tables would be
loaded, parents first, with their rows, and checks the host, writing nothing. Show the person the
plan; call again with `apply=True` only once they agree. The load runs in one transaction and reads
every table's rows and keys back.
Args:
dataset_id: from generate_dataset.
url: postgres://user:pass@host:5432/db?sslmode=require. Used for this call alone, never
stored or returned. A private or unencrypted host is refused.
schema: the Postgres schema the tables go in.
apply: false: the plan; true: load it.
replace: replace this dataset's tables where they already exist (only those tables).
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_id": "<dataset_id>",
"url": "<url>"
},
"name": "load_dataset"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | ||
| apply | No | ||
| schema | No | misata | |
| replace | No | ||
| dataset_id | Yes |