Skip to main content
Glama

Google Ads & Meta Ads

Google Analytics: Reorder Event Edit Rules

ga4_reorder_event_edit_rules
Idempotent

Set the order in which GA4 applies the event edit rules of one web stream in the user's connected Google Analytics property (each rule sees the event as the earlier rules left it). Pass every rule id of the stream, first to last; the same order is a no-op. Applies to events received from now on. dry_run previews. Changes configuration only after the user approved it.

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_ids": "<rule_ids>"
    },
    "name": "ga4_reorder_event_edit_rules"
  }
}

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_idsYesEvery edit rule id of the stream, in the new processing order (first runs first).
stream_idYesThe data stream whose edit rules to reorder: 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.6/5.0
Behavior5/5

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

Annotations declare a non-read-only, idempotent, non-destructive, open-world mutation; the description adds genuinely non-obvious behavior beyond that: ordering semantics ('each rule sees the event as the earlier rules left it'), the no-op case, and critically that the change applies only to events received from now on, plus an approval gate before applying.

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 action and its ordering semantics, followed by operational caveats in roughly priority order. Some sentences are telegraphic ('dry_run previews.', 'Changes configuration only after the user approved it.') and the latter is slightly awkward, but no sentence is filler.

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 four-parameter mutation with full schema coverage, a policy annotation set, and an output schema, the description covers scope, ordering rules, retroactivity, preview/approval, and idempotent no-op behavior. Nothing an agent needs in order to invoke it safely is missing.

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 meaningfully enriches rule_ids semantics beyond the schema by explaining that earlier rules' output is what later rules evaluate, and it frames dry_run as a preview-and-approve step rather than just a boolean.

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 precise verb and resource — set the order in which GA4 applies event edit rules for one web stream — and scopes it to the user's connected property. The 'reorder' framing makes it plainly distinct from the sibling create/update/delete event edit rule tools without needing to name them.

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?

Explains the required input contract (pass every rule id of the stream, first to last), notes the no-op case for an unchanged order, and directs the agent to dry_run first and only mutate after user approval. It does not explicitly contrast with alternative tools such as ga4_update_event_rule, so it stops short of full alternative routing.

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