Skip to main content
Glama
leonardosepulvedat

MCP Google Analytics Server

ga_run_funnel_report

Read-onlyIdempotent

Analyze user progression through defined funnel steps in Google Analytics 4. Identify where users drop off between events to optimize conversion paths.

Instructions

Run a funnel analysis report to track user progression through steps (Data API v1alpha).

Each step matches an event: set 'eventName' per step (defaults to the step name). For advanced matching, pass a full 'filterExpression' instead.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
dateRangesYes
propertyIdNoGA4 property ID to query (overrides the default GA_PROPERTY_ID). Accepts "123456789" or "properties/123456789". Use ga_get_account_summaries to discover IDs.
funnelStepsYesSteps in the funnel
funnelBreakdownNoOptional dimension to break down funnel
funnelVisualizationTypeNo

Schema Changelog

Changes observed during successful MCP inspections. Dates show when Glama detected each change.

  1. Changed1 schema field changedv1.3.1
    • addedInput schema / properties / propertyId
      Added value: +{
      +  "description": "GA4 property ID to query (overrides the default GA_PROPERTY_ID). Accepts \"123456789\" or \"properties/123456789\". Use ga_get_account_summaries to discover IDs.",
      +  "type": "string"
      +}
  2. Changed14 schema fields changedv1.1.1
    • addedInput schema / $schema
      Added value: +"http://json-schema.org/draft-07/schema#"
    • addedInput schema / additionalProperties
      Added value: +false
    • addedInput schema / properties / dateRanges / items / additionalProperties
      Added value: +false
    • addedInput schema / properties / dateRanges / items / properties / endDate / description
      Added value: +"End date (YYYY-MM-DD or \"yesterday\", \"today\", \"7daysAgo\")"
    • addedInput schema / properties / dateRanges / items / properties / name
      Added value: +{
      +  "description": "Optional name for the date range",
      +  "type": "string"
      +}
    • addedInput schema / properties / dateRanges / items / properties / startDate / description
      Added value: +"Start date (YYYY-MM-DD or \"yesterday\", \"today\", \"7daysAgo\")"
    • addedInput schema / properties / funnelBreakdown / additionalProperties
      Added value: +false
    • addedInput schema / properties / funnelBreakdown / required
      Added value: +[
      +  "name"
      +]
    • addedInput schema / properties / funnelSteps / items / additionalProperties
      Added value: +false
    • addedInput schema / properties / funnelSteps / items / properties / eventName
      Added value: +{
      +  "description": "Event that defines the step (defaults to name)",
      +  "type": "string"
      +}
    • addedInput schema / properties / funnelSteps / items / properties / filterExpression
      Added value: +{
      +  "additionalProperties": {},
      +  "description": "Advanced FunnelFilterExpression (overrides eventName)",
      +  "type": "object"
      +}
    • addedInput schema / properties / funnelSteps / items / properties / name / description
      Added value: +"Display name for the step"
    • addedInput schema / properties / funnelSteps / items / properties / withinDurationFromPriorStep
      Added value: +{
      +  "description": "e.g., \"3600s\"",
      +  "type": "string"
      +}
    • addedInput schema / properties / funnelVisualizationType
      Added value: +{
      +  "enum": [
      +    "STANDARD_FUNNEL",
      +    "TRENDED_FUNNEL"
      +  ],
      +  "type": "string"
      +}
  3. First observedv1.0.1

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, openWorldHint, idempotentHint, and non-destructive behavior. The description adds useful behavioral context on how steps map to events, the eventName default, and the filterExpression override, which goes beyond the annotations without contradicting them.

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?

The description is compact and front-loaded: it states what the tool does in the first sentence and immediately provides the most important step-matching behavior in the second. Every sentence contributes useful information without unnecessary filler.

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?

Given the nested schema and lack of an output schema, the description is adequate for invoking the tool but leaves gaps: it doesn't describe what the funnel report output contains, pagination, or how to choose among the many report siblings. The schema and annotations cover the core invocation details, so this is not severely incomplete.

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?

The description adds slight interpretive value for funnelSteps, especially the per-step eventName default and filterExpression override, but much of this is already present in the input schema. Other parameters like dateRanges, funnelBreakdown, and funnelVisualizationType receive no additional clarification beyond the schema.

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?

The description clearly states the action ('Run') and the resource ('a funnel analysis report') with a specific goal ('track user progression through steps'). It also identifies the API version. While it doesn't explicitly contrast with sibling ga_run_report, the funnel-specific wording makes it reasonably distinguishable.

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

Usage Guidelines3/5

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

Usage is implied by the funnel-report framing and by the step-matching explanation, but there is no explicit when-to-use or when-not-to-use guidance. Alternatives such as ga_run_report, ga_run_pivot_report, or ga_run_realtime_report are not mentioned, leaving routing to inference.

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

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/leonardosepulvedat/mcp-google-analytics'

If you have feedback or need assistance with the MCP directory API, please join our Discord server