Skip to main content
Glama

Run GA4 funnel report

run_funnel_report
Read-only

Run a GA4 funnel report (Data API v1alpha). Provide ordered funnelSteps (simple form: {name, dimension, matchValue}) or a raw funnel object for advanced funnels. NOTE: funnels use the Exploration schema, which supports fewer dimensions than run_report - pagePath is NOT valid here and is mapped to unifiedPagePathScreen. Use eventName to match events. To compare periods or segments, use ONE call with dateRanges (up to 4) and/or breakdownDimension (e.g. deviceCategory, contentGroup, sessionDefaultChannelGroup) instead of one call per period or segment.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "run_funnel_report"
  }
}

Input Schema

NameRequiredDescriptionDefault
funnelNoRaw GA4 funnel spec; overrides funnelSteps.
endDateNotoday
propertyNo
startDateNo28daysAgo
dateRangesNoOverrides startDate/endDate; up to 4 ranges in one call. Name them to label rows.
funnelStepsNo
breakdownLimitNoMax distinct breakdown values (GA4 default 5, max 15).
breakdownDimensionNoSplit every step by this dimension in one call, e.g. 'deviceCategory'. Funnel (Exploration) dimensions only.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changed
    • addedInput schema / properties / breakdownDimension
      Added value: +{
      +  "description": "Split every step by this dimension in one call, e.g. 'deviceCategory'. Funnel (Exploration) dimensions only.",
      +  "type": "string"
      +}
    • addedInput schema / properties / breakdownLimit
      Added value: +{
      +  "description": "Max distinct breakdown values (GA4 default 5, max 15).",
      +  "maximum": 15,
      +  "minimum": 1,
      +  "type": "integer"
      +}
    • addedInput schema / properties / dateRanges
      Added value: +{
      +  "description": "Overrides startDate/endDate; up to 4 ranges in one call. Name them to label rows.",
      +  "items": {
      +    "additionalProperties": false,
      +    "properties": {
      +      "endDate": {
      +        "type": "string"
      +      },
      +      "name": {
      +        "type": "string"
      +      },
      +      "startDate": {
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "startDate",
      +      "endDate"
      +    ],
      +    "type": "object"
      +  },
      +  "maxItems": 4,
      +  "type": "array"
      +}
  2. First observed

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true, openWorldHint=true, and destructiveHint=false. The description adds meaningful behavioral context beyond that: the Data API v1alpha version, Exploration schema limitations, pagePath mapping behavior, eventName matching, and the single-call strategy for period/segment comparisons. It does not describe auth requirements or return format, but the added constraints are substantive.

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?

The description is a single dense paragraph but is front-loaded with purpose and key constraints, then follows with a practical usage tip. Every sentence carries useful information, though the NOTE and alternative guidance could be broken into shorter sentences for easier scanning.

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?

Given eight parameters, nested funnelSteps, no required parameters, and no output schema, the description covers the critical invocation quirks and the main usage pattern. It leaves out return-value expectations, authentication, and the property parameter, but it is complete enough for an agent to call the tool correctly in most cases.

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?

With 50% schema description coverage, the description compensates by explaining funnelSteps structure ({name, dimension, matchValue}), the raw funnel object, dateRanges up to 4 with labels, and breakdownDimension examples such as deviceCategory and sessionDefaultChannelGroup. It does not explain the property or startDate/endDate parameters, but it adds clear meaning for the most complex inputs.

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?

The description states a specific verb and resource: 'Run a GA4 funnel report (Data API v1alpha).' It distinguishes this from the sibling run_report by explaining that funnels use the Exploration schema, which supports fewer dimensions and maps pagePath to unifiedPagePathScreen.

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?

It gives clear usage guidance for comparing periods or segments: use one call with dateRanges and/or breakdownDimension rather than one call per period or segment. It also implicitly differentiates from run_report via the Exploration schema constraints, though it does not explicitly say when to choose run_report over this tool.

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