tgtrack_update_goal
Update the name and value of a tracking goal in Metrika integration, with optional creation if the goal does not exist.
Instructions
Обновить цель интеграции (имя/значение цели в Метрике), опционально создать её.
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": {
"chatID": "<chatID>",
"linkID": "<linkID>",
"goalName": "<goalName>",
"goalValue": "<goalValue>"
},
"name": "tgtrack_update_goal"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| chatID | Yes | ||
| linkID | Yes | ||
| goalName | Yes | Имя цели (напр. userDidSubscribe / toTelegram / userDidOpenTelegram) | |
| goalValue | Yes | Новое значение идентификатора цели в Метрике | |
| needToCreateGoal | No | Создать цель в Метрике, если её ещё нет |