Skip to main content
Glama

Mark a GA4 event as a key event

mark_key_event

Mark a GA4 custom event (e.g. connect_success or first_tool_call_success, already flowing in via src/analytics/measurementProtocol.ts and GTM) as a key event - together with create_google_ads_link, the prerequisite for Google to automatically sync it into a Google Ads conversion action (there's no API call to trigger that sync; it happens once both exist). Once synced, see update_ga4_conversion_action (Google Ads connector) to set it as a primary MAXIMIZE_CONVERSIONS goal. Needs the analytics scope; a connection made before that scope was requested will refuse this until reconnected (see needsReconsent).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
propertyNo
eventNameYesThe GA4 event name to mark, exactly as it appears in GA4 (case-sensitive).
countingMethodNoDefault ONCE_PER_EVENT - counts every occurrence, not just the first per session.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.5/5.0
Behavior5/5

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

Adds substantial context beyond the annotations: it requires the analytics scope, can hard-fail on stale connections pending reconsent, and clarifies there is no API call to trigger the sync (it happens implicitly once both resources exist). Annotations only cover read/write and open-world hints.

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

Conciseness4/5

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

The purpose is front-loaded in the first clause, and the remaining sentences carry prerequisites and downstream steps rather than filler. It is dense with nested parentheticals, which slightly taxes readability but each part earns its place.

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 mutation tool with no output schema, it covers the key operational context: required scope, reconsent failure mode, implicit sync behavior, and downstream tooling. It stops short of describing what the call returns or how to confirm success.

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 coverage is 67%: eventName and countingMethod are already documented in the schema, and the description only adds illustrative example values for eventName. The 'property' parameter remains undocumented in both schema and description, so the description does not fully compensate.

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 and resource: marking a GA4 custom event as a key event, with concrete event-name examples. It also situates itself relative to siblings (create_google_ads_link, update_ga4_conversion_action) so an agent can identify it without opening a schema.

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?

Spells out when to use it: together with create_google_ads_link as the prerequisite for Google Ads conversion sync, plus the follow-on step via update_ga4_conversion_action. It also names the exclusion condition — a connection made before the analytics scope was requested will refuse until reconnected.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources