Update Config
update_configValidate and save dashboard UI configuration JSON, checking required keys, KPI/chart/filter structure, and SQL syntax before writing the file and creating a backup.
Instructions
Update the UI configuration file with validated JSON.
This tool validates the complete ui_config.json structure before saving:
Checks required keys: modulos, filtros_globales, column_mapping
Validates each module has id, nombre, and proper kpis/graficos/tablas
Validates each KPI has sql and label
Validates each chart has sql, tipo, and titulo
Validates each filter has nombre, columna, and tabla
Validates all SQL queries for syntax errors
Auto-fills missing optional fields (brand_name, footer, empty_state, etc.)
Creates a backup of the previous config (.json.bak)
⚠️ BEFORE calling this tool, you MUST:
Review your JSON carefully — especially chart
colorfields (column name, NOT hex).Ensure all SQL queries use the correct table name and column names.
After saving, call validate_config() to verify all queries execute correctly.
Fix any errors reported by validate_config() before telling the user it's ready.
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": {
"json_string": "<json_string>"
},
"name": "update_config"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| json_string | Yes | Valid JSON string with complete ui_config.json structure. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |