44 lines
1.4 KiB
JSON
44 lines
1.4 KiB
JSON
[
|
|
{
|
|
"name": "render_dashboard",
|
|
"description": "Render an interactive data dashboard with metric cards. Pass an array of metrics, each with label, value, and optional change/change_type fields. The dashboard is rendered as an HTML card UI.",
|
|
"inputSchema": {
|
|
"type": "object",
|
|
"properties": {
|
|
"title": {
|
|
"type": "string",
|
|
"description": "Dashboard title, e.g. 'Sales Overview'"
|
|
},
|
|
"metrics": {
|
|
"type": "array",
|
|
"description": "Array of metric objects to display as cards",
|
|
"items": {
|
|
"type": "object",
|
|
"properties": {
|
|
"label": {
|
|
"type": "string",
|
|
"description": "Metric name, e.g. 'Revenue'"
|
|
},
|
|
"value": {
|
|
"type": "string",
|
|
"description": "Metric value, e.g. '$12,345'"
|
|
},
|
|
"change": {
|
|
"type": "string",
|
|
"description": "Change indicator, e.g. '+12.5%' or '-3.2%'"
|
|
},
|
|
"change_type": {
|
|
"type": "string",
|
|
"enum": ["up", "down", "neutral"],
|
|
"description": "Direction of change"
|
|
}
|
|
},
|
|
"required": ["label", "value"]
|
|
}
|
|
}
|
|
},
|
|
"required": ["title", "metrics"]
|
|
}
|
|
}
|
|
]
|