metrica.hf.create_goal
Create a conversion goal in Yandex Metrica for a specified counter. Supports pro-mode write access and optional dry-run preview.
Instructions
Human-friendly: create a Metrica goal (pro-only, apply=true).
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": {
"counter_id": "<counter_id>",
"goal": "<goal>",
"apply": "<apply>"
},
"name": "metrica.hf.create_goal"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| goal | Yes | Raw goal object as per Metrica Management API. | |
| apply | Yes | ||
| dry_run | No | ||
| account_id | No | Project profile id (resolves to Direct Client-Login and optional Metrica counter defaults). | |
| counter_id | Yes |