metrika_apply_goal
Create or update a Yandex Metrika goal idempotently, then read back the result to confirm the change.
Instructions
Autonomously create or update a Metrika goal (idempotent, readback).
Deleting a goal needs a human approval: metrika_manage_prepare(operation='goal_delete').
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": {
"operation": "<operation>",
"counter_id": "<counter_id>"
},
"name": "metrika_apply_goal"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| params | No | ||
| goal_id | No | ||
| operation | Yes | ||
| counter_id | Yes | ||
| idempotency_key | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||