load_dataset
Download and parse a CVM dataset or period into the local cache, reusing fresh archives and building only missing partitions so SQL queries can run.
Instructions
Download and parse a dataset/period into the local cache.
This is the non-destructive counterpart of refresh_cache: it reuses
archives that are still fresh and only builds the partitions that are
missing. Call it before run_query so the SQL layer has the tables (and
periods) it needs, and use describe_dataset(detail=True) for column
meanings.
Heavy optional tables (dfp/itr parecer) are skipped unless named in
table or include_optional is true.
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": "load_dataset"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| table | No | Optional table; omit for all tables in the dataset. | |
| period | No | Year (YYYY) or month (YYYYMM); comma-separated values are accepted. Defaults to the latest published period. Use '*' for every period. | |
| dataset | Yes | Dataset id from list_datasets, e.g. 'dfp', 'fi_inf_diario'. | |
| include_optional | No | Also build the heavy optional tables (DFP/ITR `parecer`, which is free text and ~15 MB per year). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |