data_register
Turn a local file or folder into a SQL-queryable dataset. Registers CSV, Excel, Parquet, JSON, SQLite and returns schema with profile.
Instructions
Register a local file or folder so it can be queried with SQL: CSV/TSV, Parquet, JSON/NDJSON, Excel, SQLite.
path is an absolute path on this computer (e.g. C:\Users\me\ventas.xlsx).
The dataset name defaults to the file name made SQL-safe ("Ventas 2024"
becomes Ventas_2024) - use the returned name. Excel registers one
dataset per sheet ("__"), SQLite one per table, a folder
all files matching options.glob (default "*.csv"). CSV options:
delimiter, header, encoding (utf-8/utf-16/latin-1; auto-detected when
omitted, so Windows-1252 exports work without setting anything),
date_format (e.g. "%d/%m/%Y"; two-digit-year day-first dates like
"13/02/25" are auto-detected already), decimal_separator and
thousands_separator. Spanish-style numbers ("-1.150,00", "51,05") are
detected automatically and become exact numbers - the result lists them
under numbers_converted; pass decimal_separator="." to keep such a
column as text, or both separators to force another convention.
Excel also takes skip_rows (a title row above the real header is
detected and skipped automatically; set this to override).
Returns the schema and profile (like data_describe); a single-row result
with nested list columns also gets a hint suggesting UNNEST.
Re-registering the same path refreshes it. Not read-only: it copies the
data into the local catalogue (the original file is never modified).
Keywords: load this file, open this spreadsheet, register dataset, import CSV, read Excel, cargar este archivo, abrir esta hoja de cálculo, registrar datos, importar CSV, leer Excel.
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": {
"path": "<path>"
},
"name": "data_register"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | ||
| path | Yes | ||
| options | No |