add_dashboard_card
Add a card to the end of the account's home dashboard. Confirm the card with the user before calling this: everyone on the account sees it. Sources: built_in needs key; event_metric needs event_name_id and aggregation (plus attribute_name for sum and average); report needs report_id from list_reports and metric (a metric label from list_reports), and event_type_id for character reports.
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": {
"source": "<source>"
},
"name": "add_dashboard_card"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| key | No | built_in only: the built-in metric. | |
| label | No | Optional custom card title. | |
| metric | No | report only: the metric label as listed in the report catalog. | |
| source | Yes | Where the card's number comes from. | |
| display | No | number (one value with its change and a chart) or top_list (top 5). Defaults to number. | |
| filters | No | report only: narrow the card to some of the report's filter values. | |
| report_id | No | report only: a report id from the report catalog. | |
| aggregation | No | event_metric only. | |
| granularity | No | How the number card charts the range. Defaults to auto. | |
| event_name_id | No | event_metric only: id from list_event_names. | |
| event_type_id | No | report only, character reports: id from list_event_types. | |
| attribute_name | No | event_metric only: the numeric event attribute for sum and average. | |
| breakdown_attribute | No | event_metric only: the attribute a top_list card ranks by. |