Skip to main content
Glama

Google Ads & Meta Ads

Google Analytics: Get Tracking Configuration

ga4_get_tracking_configuration
Read-onlyIdempotent

Read how one GA4 property is configured to track, from the user's connected Google Analytics login: data streams (id, type, measurement id, URL), key events (counting method, default value), event create rules, event edit rules (in processing order), enhanced measurement and data redaction settings per web stream, with the ids the GA4 write tools take. Pass stream_id for one stream in full; without it the per-stream sections cover up to 3 web streams. Each section reports whether it was read. Shows configuration only — whether GA4 actually receives an event is a ga4_run_report or ga4_run_realtime_report question. Read-only.

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

Input Schema

NameRequiredDescriptionDefault
sectionsNoSections to read; default all. event_rules covers both create and edit rules.
stream_idNoOptional data stream number (or properties/<p>/dataStreams/<n>) to read in full.
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.

Output Schema

NameRequiredDescriptionDefault
errorsYesReads that failed.
streamsYesData streams, each with its per-stream sections when read: eventCreateRules, eventEditRules, enhancedMeasurement, dataRedaction.
completeYesTrue when every requested section was read in full.
propertyYesproperties/<number>.
sectionsYesSection → ok, partial, failed or not_requested.
keyEventsNoKey events, or null when not read.
streamsNotDetailedNoWeb streams left out of the per-stream sections; pass one as stream_id.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already declare read-only, idempotent, non-destructive, open-world, so the safety profile is covered. The description still adds real behavior: per-section read status ('Each section reports whether it was read'), processing order for edit rules, the 3-web-stream cap when stream_id is omitted, and that returned ids are the ones the write tools consume. Those are disclosed traits not derivable from annotations.

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?

Front-loaded with the resource and its contents, then the stream_id behavior, then the boundary against report tools. Dense and mostly efficient, though the enumeration of fields and the parenthetical '(in processing order)' make it heavier than it needs to be.

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?

With an output schema and full annotation coverage, the remaining burden is precisely the caveats an agent could get wrong — partial per-section reads, the 3-stream default cap, processing order, and where the boundary lies with report tools. All of those are supplied.

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%, so the schema already documents all three parameters, and the description largely restates them. It does add one genuine nuance beyond the schema — that event_rules covers both create and edit rules and that omitting stream_id caps per-stream output at 3 — but property_id and sections semantics come straight from the schema.

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 ('Read how one GA4 property is configured to track') and enumerates the exact contents (data streams, key events, create/edit rules, enhanced measurement, data redaction). It explicitly separates itself from the report siblings by scoping itself to configuration rather than event receipt.

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 clear conditional guidance for stream_id (full read of one stream vs. capped per-stream sections) and names the alternatives for a different question ('a ga4_run_report or ga4_run_realtime_report question'). It stops short of covering when to pick this over adjacent reads like ga4_get_property_details, so it is clear context rather than a complete when/when-not map.

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