Skip to main content
Glama
ga4-gsc-mcp

ga4-gsc-mcp

by kkvlabs

Funnel (beta)

ga4_funnel
Read-onlyIdempotent

Build a GA4 funnel of 2 to 10 event or page-path steps to see users per step, completion and abandonment, so you can find where visitors drop off before a goal.

Instructions

Where do visitors drop off before a goal? A GA4 funnel of 2 to 10 steps (event names or page paths): users per step, completion and abandonment. Beta: uses Google's v1alpha API.

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": {
      "steps": "<steps>"
    },
    "name": "ga4_funnel"
  }
}

Input Schema

NameRequiredDescriptionDefault
openNoOpen funnel: users can enter at any step. Default closed.
siteNoSite as a domain or Search Console URL, e.g. "example.com" or "sc-domain:example.com". Optional when the credentials see one site.
stepsYesSteps in order, each with an event name or a page path fragment.
periodNoNamed date range ending on the last settled day. Default last_28_days.
end_dateNoEnd date YYYY-MM-DD. Defaults to the last settled day (Search Console lags 2 to 3 days).
start_dateNoStart date YYYY-MM-DD. Overrides period.
ga4_propertyNoGA4 property ID (numbers only). Optional: found from the site's web stream when left out.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.0

TDQS

A4/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true, destructiveHint=false and idempotentHint=true, so the safety profile is covered. The description adds genuinely non-structured context: it discloses what the response contains (per-step users, completion, abandonment) and a beta/v1alpha API caveat that warns of potential instability. It does not mention the date-settling lag or property-resolution behavior, but those live in the schema.

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 use-case question, followed by the precise scope-and-output line, then the beta caveat last. No filler and nothing redundant with the schema.

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?

For a 7-parameter read-only analysis tool with full schema coverage and no output schema, the description covers intent, output content and the beta risk. It omits any hint of result size, sampling, or the relationship to run_ga4_report, which keeps it just short of full completeness.

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 description coverage is 100%, so the schema already explains every parameter including open/closed funnels, period, dates and ga4_property lookup. The description only reinforces that steps are event names or page paths and that 2-10 steps are allowed, which the schema already enforces via minItems/maxItems. Baseline 3 applies.

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 opens with a concrete analytical question then states the exact verb and resource: a GA4 funnel of 2 to 10 steps built from event names or page paths, returning users per step, completion and abandonment. 'Funnel' is not duplicated by any sibling (report, pivot, realtime, metadata), so an agent can distinguish it without opening the schema.

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?

The framing question 'Where do visitors drop off before a goal?' implies the analysis scenario, but there is no explicit when-to-use/when-not rule and no named alternative (e.g., use run_ga4_report for flat event counts, ga4_funnel for ordered step drop-off). Guidance is implied rather than stated.

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