apex_add_ribbon_stats
Add a horizontal ribbon of stat cards to an APEX page, using SQL queries to display key metrics with custom icons, colors, and suffixes.
Instructions
Add a horizontal ribbon of stat cards with icons and colors.
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": {
"page_id": "<page_id>",
"region_name": "<region_name>",
"metrics": "<metrics>"
},
"name": "apex_add_ribbon_stats"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| metrics | Yes | List of stat dicts (3–6): - "label": Stat label - "sql": SQL returning single scalar value - "icon": Font Awesome class - "color": Icon/value color - "suffix": Unit suffix | |
| page_id | Yes | Target page ID. | |
| bg_color | No | Ribbon background color (hex or CSS value). | #f8f9fa |
| sequence | No | Display order on page. | |
| custom_css | No | ||
| region_name | Yes | Internal region name. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |