Skip to main content
Glama

Mark GA4 events as key events

ga_create_key_event
Idempotent

Marks GA4 events as key events (conversions) via API so they count in keyEvents metrics and conversion reports without waiting for traffic; supports counting method and dry runs.

Instructions

Mark events as key events (conversions) in a GA4 property, so they count in keyEvents metrics, conversion reports and Google Ads imports. The GA4 UI only offers a star next to events that have already appeared in the last days, so a freshly instrumented event has to wait for traffic; the API registers it at once, with the counting method chosen here. Events already marked are skipped. A standard property allows 30 key events; check ga_property_config keyEvents first. dryRun shows what exists and what would be created.

Input Schema

NameRequiredDescriptionDefault
dryRunNoList existing key events and the ones that would be created, without creating anything.
eventsYesEvents to mark as key events in this property.
propertyIdYesGA4 property ID, e.g. '123456789' (see ga_list_properties).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.12.0

TDQS

A4.4/5.0
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Adds real behavioral context beyond the annotations: the 30 key-event quota for standard properties, the skip-if-already-marked behavior (consistent with idempotentHint=true), and the fact that the counting method is fixed at creation time. It does not describe a rollback/undo path or what the response looks like, which keeps it from a 5.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Four sentences, front-loaded with the action and its payoff, then the UI-gap rationale, then quota/skip caveats, then dryRun. Every sentence carries information an agent would otherwise have to infer.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a mutating, idempotent, quota-limited tool with no output schema, the description covers purpose, limits, skip behavior and preview mode. The one remaining gap is the shape of the result (which events were created versus skipped), which dryRun only partially implies.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100%, so propertyId, events, countingMethod and dryRun are already well documented with examples and an enum for countingMethod. The description only restates counting method choice and dryRun at a high level, adding marginal semantics over the schema; baseline 3 applies.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb (mark) and resource (events as key events/conversions in a GA4 property) plus the downstream effect on keyEvents metrics, conversion reports and Google Ads imports. Easily distinguished from the neighboring GA tools like ga_property_config and ga_create_custom_dimension.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Gives an explicit when-to-use trigger (freshly instrumented event that hasn't yet appeared in the last days of traffic) versus the UI path, and an explicit prerequisite: check ga_property_config keyEvents first against the 30-key-event limit. It also notes that already-marked events are skipped and points at dryRun for a preview.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.