Skip to main content
Glama

Google Ads & Meta Ads

Google Analytics: Update Data Redaction

ga4_update_data_redaction
DestructiveIdempotent

Change GA4 data redaction for one web stream of the user's connected Google Analytics property: redacting text that looks like an email address, and redacting the values of chosen URL query parameters (the key list passed replaces the current one). Redaction happens before data is stored and applies to new events only. Only the settings passed change. 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>"
    },
    "name": "ga4_update_data_redaction"
  }
}

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.
stream_idYesThe data stream to configure (a web stream): 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.
query_parameter_keysNoURL query parameter names whose values are redacted, e.g. ["email","phone"]. Replaces the current list; at most 50.
email_redaction_enabledNoRedact text that looks like an email address in events and URLs.
query_parameter_redaction_enabledNoRedact the values of query_parameter_keys in URLs.

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.1/5.0
Behavior5/5

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

Beyond the destructiveHint/idempotent/openWorld annotations, the description discloses three non-obvious behaviors: redaction applies before storage and only to new events (no retroactive effect), the query_parameter_keys list replaces rather than merges with the current list, and unspecified settings are left untouched. It also encodes the approval/dry-run workflow, which the annotations cannot express.

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?

It is a single dense, front-loaded sentence-plus that spends its words on scope, replace semantics, and the approval gate. The closing clause ('Changes configuration only after the user approved it') is slightly awkward but still earns its place as a safety instruction.

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, full parameter coverage, and rich annotations, the description covers everything an agent needs: target identifiers, mutation semantics, preview path, and the approval requirement. Nothing material is missing for a 6-parameter property configuration update.

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 every parameter already carries its own explanation, including the 50-key cap and the replace semantics. The description adds only emphasis on the replace behavior, which the schema already states, so this is baseline territory.

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?

The description names a specific verb and resource ('Change GA4 data redaction') and scopes it to one web stream of a connected property, then enumerates the two settings it governs (email-like text and URL query parameter values). That is enough to distinguish it from siblings such as ga4_update_web_stream, though it never explicitly says how it relates to that tool.

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 gives clear operational context: dry_run previews changes, the user must approve before a real call, and only the settings passed are modified. It does not, however, name an alternative tool or state exclusion conditions, so it stops short of full when/when-not guidance.

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