Detect Columns
detect_columnsIdentifies which columns in a loaded DuckDB table map to logical roles by matching CSV field names against a synonym dictionary, helping agents understand data before generating dashboard config.
Instructions
Detect which columns map to which roles for a loaded table.
Uses the _ROLES synonym dictionary to match physical CSV columns to logical roles (e.g. "branch" → "sucursal", "total_usd" → "monto"). The MCP agent can use this to understand the data before generating config.
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": {
"table_name": "<table_name>"
},
"name": "detect_columns"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| table_name | Yes | Table name in DuckDB. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |