Skip to main content
Glama

Google Ads & Meta Ads

Google Analytics: Delete Event Edit Rule

ga4_delete_event_edit_rule
DestructiveIdempotent

Delete one GA4 event edit (modify event) rule from a web stream of the user's connected Google Analytics property, so incoming events are no longer modified by it. Events already recorded stay. A rule that no longer exists is a no-op. dry_run previews. Run only after the user approved deleting this specific rule.

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": {
      "property_id": "<property_id>",
      "stream_id": "<stream_id>",
      "rule_id": "<rule_id>"
    },
    "name": "ga4_delete_event_edit_rule"
  }
}

Input Schema

NameRequiredDescriptionDefault
dry_runNotrue: read the current configuration and report the field-level changes this call would make, changing nothing. Default false. Show the user the proposal and get their approval before calling without dry_run.
rule_idYesThe event edit rule id, as ga4_get_tracking_configuration lists it.
stream_idYesThe data stream the rule belongs to: its number or properties/<p>/dataStreams/<number>, as ga4_get_tracking_configuration lists it.
property_idYesThe GA4 property: its number (123456789) or properties/123456789. Must be one of the properties ga4_get_account_summaries lists for the connected login.

Output Schema

NameRequiredDescriptionDefault
afterNoThe resource after the call (Google's read-back), or the proposal on a dry run.
beforeNoThe resource before the call; null when it did not exist.
dryRunYesTrue when the call only previewed the change.
changedYesTrue only when this call changed Google Analytics.
changesYesField-level changes: made, or proposed on a dry run.
propertyYesproperties/<number>.
resourceNoResource name the change targets, when it exists.
verifiedNoWhether Google's read-back holds every requested value; null when nothing was written.
operationYesWhat happened: the change made, no_change, or dry_run.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.3/5.0
Behavior5/5

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

Beyond the annotations (destructiveHint=true, idempotentHint=true), the description discloses real consequences: the deletion is forward-looking only ('Events already recorded stay') and deleting a nonexistent rule is a harmless no-op. It also names the approval gate and the dry_run escape hatch, which an agent needs before invoking a destructive call.

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 short sentences, front-loaded with the action and scope, followed by impact, idempotency, and the approval condition in that priority order. No filler or restatement of the title.

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?

For a destructive single-object delete with full schema coverage and an output schema, this covers everything an agent needs: what is removed, what survives, what happens when the target is absent, how to preview, and when invocation is authorized.

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 100%, so every parameter already carries its own description, and the description adds essentially nothing parameter-level beyond the passing mention that dry_run previews. Baseline 3 applies when the schema does the heavy lifting.

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

Purpose4/5

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

States a specific verb (Delete) and a precisely scoped resource (one GA4 event edit / modify event rule, within a web stream of the user's connected property). The parenthetical '(modify event)' implicitly separates it from the similarly named ga4_delete_event_rule sibling, though it never names that sibling outright, which keeps it just short of a 5.

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?

'Run only after the user approved deleting this specific rule' gives an explicit prerequisite, and 'dry_run previews' indicates the safe path. It does not, however, point at an alternative tool when the user actually wants to disable/modify rather than delete, so the when-not guidance is only partial.

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