Skip to main content
Glama
mcp-google-analytics

mcp-google-analytics

Delete data stream

ga_delete_data_stream
Destructive

Permanently delete a data stream from a GA4 property to remove an unwanted or obsolete stream; requires analytics.edit permission.

Instructions

Permanently deletes a data stream from a GA4 property. Requires analytics.edit.

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>",
      "streamId": "<streamId>"
    },
    "name": "ga_delete_data_stream"
  }
}

Input Schema

NameRequiredDescriptionDefault
streamIdYesData stream ID, e.g. 1234567890 or properties/.../dataStreams/1234567890.
propertyIdYesGA4 property ID, e.g. 123456789 or properties/123456789.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.4/5.0
Behavior3/5

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

Annotations already flag destructiveHint=true, and "Permanently" reinforces irreversibility rather than adding new information. The one genuinely new behavioral fact is the "Requires analytics.edit" permission scope, which annotations do not carry, but nothing is said about what happens to historical measurement data or whether the stream's tracking tag stops collecting.

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?

Two short sentences with the action and effect front-loaded and the permission prerequisite appended. No filler, nothing redundant.

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

Completeness4/5

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

For a two-parameter destructive delete with a complete schema and a clear destructive annotation, this covers the essentials: what disappears, from where, and what auth is needed. Only the post-delete consequences for downstream tracking/reporting go unmentioned.

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% and both parameters are documented with example ID formats, so the schema does the work. The description adds nothing about propertyId or streamId semantics, which is acceptable at full coverage.

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: "Permanently deletes a data stream from a GA4 property." That distinguishes it clearly from ga_delete_property and ga_list_data_streams by resource type, though it never names a sibling explicitly.

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 or when-not-to-use guidance and no alternatives named; the only guidance is an implicit scope limitation (GA4 property) and the auth prerequisite. An agent is left to infer that this is the destructive counterpart to ga_list_data_streams and that it should confirm before calling.

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