Skip to main content
Glama
mcp-google-analytics

mcp-google-analytics

Create web data stream

ga_create_web_stream

Creates a GA4 web data stream for a site, returning the measurement ID and gtag snippet needed to set up tracking.

Instructions

Creates a web data stream for a site and returns its measurement ID and gtag snippet.

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": {
      "propertyId": "<propertyId>",
      "displayName": "<displayName>",
      "websiteUrl": "<websiteUrl>"
    },
    "name": "ga_create_web_stream"
  }
}

Input Schema

NameRequiredDescriptionDefault
propertyIdYesGA4 property ID, e.g. 123456789 or properties/123456789.
websiteUrlYes
displayNameYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3/5.0
Behavior3/5

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

No annotations are provided, so the description carries the full burden. It does disclose the useful outcome (a measurement ID and gtag snippet are produced), which partially compensates for the missing output schema, but says nothing about permissions required, idempotency, behavior on duplicate display names, or what other stream settings are defaulted.

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?

A single front-loaded sentence with the action first and the outcome second; nothing is redundant. It is arguably too terse for a creation tool, but that is a completeness issue rather than a verbosity one.

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

Completeness3/5

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

For a three-required-parameter mutation tool with no annotations and no output schema, the description covers the action and the return value but leaves prerequisites, side effects, and two of three parameters unexplained. It is minimally viable rather than complete.

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

Parameters2/5

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

Schema description coverage is only 33% — only propertyId is documented in the schema, while displayName and websiteUrl have none. The description adds no per-parameter meaning beyond the vague phrase 'for a site', which hints at websiteUrl but does not explain displayName or its role.

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 and resource ('Creates a web data stream') and adds the return payload ('measurement ID and gtag snippet'). The 'web' qualifier implicitly separates it from other stream operations, though it never names a sibling to contrast with.

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

Usage Guidelines2/5

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

No when-to-use guidance, no prerequisites (an existing GA4 property, authentication), and no mention of alternatives such as ga_list_data_streams or ga_get_tracking_snippet. The agent must infer everything about placement in a workflow.

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