Build Kpi Config
build_kpi_configBuilds a complete KPI configuration dictionary for ui_config.json from SQL, label, icon, format, and hex card color inputs so dashboard KPI cards render correctly.
Instructions
Build a complete KPI config dict for ui_config.json.
Note: The color field in KPIs IS a hex color for the card background
(e.g. "#246bfd"). This is different from charts where color is a column name.
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": {
"kpi_json": "<kpi_json>"
},
"name": "build_kpi_config"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| kpi_json | Yes | JSON string with KPI parameters: { "sql": "SELECT SUM(total_usd) FROM sales", "label": "Total Sales", "icono": "payments", "formato": "money", "color": "#246bfd" } |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |