Skip to main content
Glama

Google Ads & Meta Ads

Google Analytics: Update Web Stream

ga4_update_web_stream
Idempotent

Change the display name and/or default URL of one web data stream in the user's connected Google Analytics property. The stream id and measurement id stay the same, so the site's tag keeps working; data collection is not affected. Only the fields 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_web_stream"
  }
}

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 change (a web stream): its number or properties/<p>/dataStreams/<number>, as ga4_get_tracking_configuration lists it.
default_uriNoNew website address, e.g. https://www.example.com.
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.
display_nameNoNew stream name.

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

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

Annotations already declare mutation, idempotency, and non-destructiveness, and the description adds substantive context beyond them: the stream id and measurement id remain stable so the site's tag keeps working and 'data collection is not affected.' That tells the agent the blast radius is configuration-only, plus a human-approval requirement that annotations cannot express. It does not cover error behavior or what the returned output contains, though an output schema exists.

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?

Three compact sentences, front-loaded with the mutation scope, followed by the safety consequence and the dry_run/approval rule. No filler; every clause carries decision-relevant information.

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?

Complete for a low-complexity, flat-schema update tool: it identifies the target, the mutable fields, the non-effects on live data collection, the preview path, and the approval gate, and an output schema covers return values. Nothing an agent needs to call this correctly appears to be 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 description coverage is 100%, so the baseline is 3, but the description adds real meaning the schema does not: only the fields actually passed are modified, so omitted fields are preserved rather than cleared. That partial-update rule is the key semantic an agent could otherwise get wrong on a 5-parameter update tool.

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 ('Change the display name and/or default URL of one web data stream') and scopes it to a single stream in the user's connected property. The enumerated mutable fields distinguish it clearly from ga4_create_web_stream and from the other ga4_update_* siblings, which each mutate different resources.

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?

Gives concrete when-to-use context: 'Only the fields passed change' signals partial-update semantics, and the dry_run sentence prescribes a preview-then-approve workflow before committing. It also routes the agent to ga4_get_tracking_configuration for resolving stream_id and ga4_get_account_summaries for property_id. It stops short of naming an alternative tool or an explicit when-not-to-use case.

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