Skip to main content
Glama
kLOsk

AdLoop: Google Ads, Reddit Ads & GA4

Draft removing an Analytics key event

draft_delete_key_event
Destructive

Draft removing a GA4 key event so it stops counting as a conversion in future data; returns a preview and plan_id, with no changes until confirmed.

Instructions

Draft removing a GA4 key event so the event no longer counts as a conversion, returning a PREVIEW.

The event itself keeps firing and stays in event reports; only its key-event status goes, for future data (key events already recorded are not reclassified). The draft resolves the event name against the property's key events (keyEvents.list), so the preview names the exact key event, its counting method and create time; an unknown name returns the existing key events, and one GA4 marks as not deletable is refused. Returns a preview with a plan_id and warnings; nothing changes until confirm_and_apply applies it (GA4 Admin API keyEvents.delete).

Google Analytics Data API: https://developers.google.com/analytics/devguides/reporting/data/v1 and Admin API: https://developers.google.com/analytics/devguides/config/admin/v1

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
event_nameYesEvent name of the key event to remove, exactly as listed by list_key_events (e.g. "sign_up"). Required.
property_idNoNumeric GA4 property ID, with or without the "properties/" prefix. If empty, uses the default from config.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.27.1

TDQS

A4.6/5.0
Behavior5/5

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

Annotations already declare destructiveHint=true and readOnlyHint=false, yet the description adds substantial non-obvious behavior: the event keeps firing and stays in event reports, only future key-event status is removed, historical key events are not reclassified, the preview names the exact event/counting method/create time, and resolution runs against keyEvents.list.

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?

Front-loaded with the core verb and PREVIEW outcome, then lays out effects and error behavior. Dense but each sentence carries distinct information; the API URL tail is the only low-value addition.

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

Completeness5/5

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

With an output schema present and annotations covering safety, the description is complete: it covers intent, side effects, resolution behavior, and the confirm/apply gate. An agent would need nothing further to call it correctly.

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

Parameters4/5

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

Schema coverage is 100%, so the baseline is 3, but the description adds resolution semantics beyond the schema: event_name is matched against the property's key events and an unknown name returns the existing key events rather than erroring. That meaningfully supplements the schema's field descriptions.

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+resource+scope: drafting the removal of a GA4 key event, returning a PREVIEW. It clearly distinguishes itself from sibling draft_key_event (likely create/update) and from confirm_and_apply, which the description names as the applying counterpart.

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

Usage Guidelines4/5

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

It explains the draft-then-confirm workflow ('nothing changes until confirm_and_apply applies it'), and describes edge conditions: unknown names return existing key events, and non-deletable events are refused. It does not explicitly name when to prefer this over alternatives like draft_key_event or list_key_events, but the context is clear.

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

Deploy Server

Other Tools