Change a funnel
update_funnelChange a funnel's name, whether it is a goal, and its goal_value; what you omit stays. Steps and trait_scope never change: a different step means a new funnel. A goal's conversions (visitor-days reaching its last step that day) show per source and campaign in list_sources and list_campaigns; unmarking keeps the funnel and its history. At most 5 goals per project, and a goal still uses a funnels slot. goal_value: none, fixed (an amount per conversion, applied to past days too) or detail (an attrs.KEY of the last step's event summed as revenue, counted only from the day it is set). Amounts are decimal strings in the project's currency (get_project). Pass run_id from start_setup_run so this undoes together with the rest of the setup; leave it out (never "") to start a new chat run, whose run_id is returned and should go on every later change.
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": {
"funnel_id": "<funnel_id>"
},
"name": "update_funnel"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | The new name, at most 100 characters. Omit to keep it. | |
| run_id | No | The setup run this change belongs to, from start_setup_run. Omit to start a new chat run (its id is returned). | |
| is_goal | No | true marks the funnel as a goal, false unmarks it (the funnel and its history stay). Omit to keep it. | |
| project | No | Project ID, from list_projects. Required when this connection covers more than one project; may be left out when it covers one (and with an API key, which belongs to one project). | |
| funnel_id | Yes | Funnel ID, from list_funnels. | |
| goal_value | No | The new value of a conversion, replacing the current one ({kind: none} removes it). Omit to keep it. |