Replace the tracking plan
update_tracking_planReplace the site's tracking plan with the given analytics.yaml text. The schema is strict: version: 1, project, integrations, events{name: {description (required), tags, revenue, props{name: {type: string|number|boolean, enum, required, description}}}}, dashboards.funnels[{name, steps}]. Event and prop names are lowercase snake_case, at most 64 characters. Returns added, removed and changed events, or the validation errors. Set dry_run to only validate.
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": {
"yaml": "<yaml>"
},
"name": "update_tracking_plan"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| site | No | Site domain (example.com), id or public id (tb_…). Optional with a site key, or when the account has one site. | |
| yaml | Yes | The full analytics.yaml text. | |
| dry_run | No |