create_kpi
Build a KPI visual in QuickSight from column, aggregation, and title parameters. Use to add metric cards to analysis sheets.
Instructions
Create a KPI visual from simple parameters.
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": {
"analysis_id": "<analysis_id>",
"sheet_id": "<sheet_id>",
"title": "<title>",
"column": "<column>",
"aggregation": "<aggregation>",
"dataset_identifier": "<dataset_identifier>"
},
"name": "create_kpi"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| title | Yes | Display title (e.g., "Total Contracts"). | |
| column | Yes | Column name (e.g., "FLIP_TOKEN"). | |
| sheet_id | Yes | The sheet to add the KPI to. | |
| aggregation | Yes | SUM, COUNT, AVG, MIN, MAX, or DISTINCT_COUNT. | |
| analysis_id | Yes | The QuickSight analysis ID. | |
| format_string | No | Display format (e.g., "#,##0", "$#,##0.00", "0.0%"). Leave empty for default formatting. | |
| conditional_format | No | JSON string of color rules. Example: '[{"condition": ">= 100", "color": "#2CAF4A"}, {"condition": "< 50", "color": "#DE3B00"}]' Leave empty for no conditional formatting. | |
| dataset_identifier | Yes | The dataset identifier. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||