Skip to main content
Glama
google-data-mcp

google-data-mcp

by seliem-attia

GA4 Admin API: free-form request

ga4_admin_request
Destructive

Send arbitrary GET, POST, PATCH, or DELETE requests to the GA4 Admin API for configuration tasks that lack a dedicated tool; DELETE calls preview unless confirm=true.

Instructions

Arbitrary call to the GA4 Admin API (analyticsadmin.googleapis.com) for anything without its own tool — e.g. PATCH 'properties/123/dataRetentionSettings?updateMask=eventDataRetention', DELETE 'properties/123/keyEvents/456', POST 'properties/123/customDimensions/789:archive', POST 'properties/123/dataStreams/111/measurementProtocolSecrets'. Path relative to the API version. Without confirm=true, DELETE only shows the current state of the resource and deletes nothing.

Input Schema

NameRequiredDescriptionDefault
bodyNoJSON body for POST/PATCH
pathYesRelative path incl. query, e.g. 'properties/123/keyEvents'
methodYes
confirmNoDELETE only: without it a preview, with true it deletes
apiVersionNoDefault v1beta; v1alpha for alpha features

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.6.1

TDQS

A4.4/5.0
Behavior5/5

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

Annotations already flag destructiveHint=true and openWorldHint=true, but the description adds a genuinely non-obvious safeguard: without confirm=true a DELETE only previews current state and deletes nothing, and it tells the agent that path is relative to the API version. This is exactly the kind of dry-run mechanics an agent cannot infer from annotations or schema, and it does not contradict them.

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?

One dense paragraph that front-loads the purpose and the escape-hatch rule, then earns its list of examples since path shapes are the hardest part of driving an arbitrary pass-through tool. The confirm caveat is placed last rather than up front, which slightly buries the most safety-critical sentence.

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?

There is no output schema, so the description carries the burden of telling the agent what comes back — it never says the response is raw API JSON, nor how errors or pagination on GET are surfaced. For a high-blast-radius generic mutation tool it covers method/path/confirm well but leaves the return and failure story unstated.

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 coverage is already 80% (path, body, confirm, apiVersion all documented), so the baseline is 3. The description adds real meaning on top: path syntax including query strings (the updateMask example), which methods pair with which endpoints, and that the path is relative to the API version — details the schema only gestures at.

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 (arbitrary call) and resource (GA4 Admin API at analyticsadmin.googleapis.com), and explicitly scopes it to 'anything without its own tool', which routes the agent away from siblings like ga4_list_properties, ga4_create_key_event, or ga4_update_data_redaction. The concrete path examples make the intended usage unmistakable.

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?

The clause 'for anything without its own tool' is an explicit fallback rule that tells the agent to prefer dedicated tools first, and the four method/path examples show the shape of eligible calls. It stops short of naming specific alternative tools or listing when NOT to reach for it (e.g. bulk reporting, which belongs to ga4_run_report).

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