Plan a GA4 key event
ga4_plan_key_event_createPlan to mark a GA4 event as a key event by returning a confirmation token; apply the change later after user approval.
Instructions
PLAN (nothing is written): mark an event as a key event of the client's GA4 property. Returns the plan with a confirmation_token; apply it with google_apply after the user agreed. No automatic rollback (deleting a key event is not offered in this version: remove it in GA4 Admin > Key events).
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": {
"event_name": "<event_name>"
},
"name": "ga4_plan_key_event_create"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| client_id | No | Client id from clients_list. Required when several clients are registered; empty uses the only client | |
| event_name | Yes | GA4 event name to mark as a key event, e.g. generate_lead | |
| property_id | No | Numeric GA4 property id of the client (empty: the configured one) | |
| counting_method | No | Count every event, or once per session | ONCE_PER_EVENT |