Skip to main content
Glama
mcp-google-analytics

mcp-google-analytics

Delete GA4 property

ga_delete_property
Destructive

Soft-delete a GA4 property by moving it to the Analytics Trash Can, where it can be restored until its expiration time. Requires analytics.edit permission.

Instructions

Soft-deletes (trashes) a GA4 property. Restorable from the Analytics Trash Can UI until expireTime; then permanently purged. 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>"
    },
    "name": "ga_delete_property"
  }
}

Input Schema

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

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.5/5.0
Behavior5/5

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

Annotations only supply destructiveHint=true; the description adds the crucial nuance beyond that — deletion is reversible via the Analytics Trash Can UI within a window, becomes irreversible after expireTime, and demands the analytics.edit permission. That is exactly the behavioral context an agent needs before a destructive call.

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 short sentences, front-loaded with the operation and its reversibility, then the permission requirement. No 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 one-parameter destructive tool with no output schema, the description covers reversibility window, finality, and auth scope — everything needed to decide whether to call it. Nothing material is missing.

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?

Single required propertyId with full schema description coverage (example formats given in-schema), so the schema carries parameter meaning; the description adds nothing about ID formats or validation. Baseline 3 is appropriate.

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 ('Soft-deletes (trashes) a GA4 property') and immediately disambiguates the kind of delete by contrasting trash vs. purge, which distinguishes it from a hard-delete or from ga_update_property/ga_delete_data_stream.

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 real usage context: the property is recoverable until expireTime, after which it is permanently purged, and the call requires analytics.edit. It stops short of naming alternatives (e.g., that ga_update_property should be used to modify rather than remove), so no explicit when-not guidance.

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