Change how a goal is shown
update_goalRename a goal for the dashboard (display_name), give it a colour, hide it from dashboards, or make it the #1 KPI (kpi: true). The event name never changes, so code, funnels and alerts keep working. Send only what changes; null resets display_name or color. Colours: #8FE3C8 (Mint), #6FB8FF (Sky), #CFE8FF (Ice), #FFC46B (Amber), #FF7E6B (Coral), #B9A3FF (Violet), #FF9EC7 (Rose), #C8E86B (Lime). Get names from list_goals.
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": {
"name": "<name>"
},
"name": "update_goal"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| kpi | No | true = show this goal as the #1 KPI on the overview; false = back to revenue if it is the KPI now. | |
| name | Yes | The goal (event) name from list_goals. | |
| site | No | Site domain (example.com), id or public id (tb_…). Optional with a site key, or when the account has one site. | |
| color | No | ||
| hidden | No | ||
| display_name | No |