Skip to main content
Glama
ga4-gsc-mcp

ga4-gsc-mcp

by kkvlabs

Conversions and revenue by channel

attribution
Read-onlyIdempotent

Identify which channels, sources, or campaigns drive GA4 conversions and revenue, with session or first-user scope and period-over-period change.

Instructions

Which channels bring conversions and revenue? GA4 key events and revenue by channel, source / medium or campaign, in session or first-user scope, with change.

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": "attribution"
  }
}

Input Schema

NameRequiredDescriptionDefault
siteNoSite as a domain or Search Console URL, e.g. "example.com" or "sc-domain:example.com". Optional when the credentials see one site.
limitNoRows to return, default 25, max 500.
scopeNosession (default) credits the session's channel; first_user credits the channel that first brought the user.
periodNoNamed date range ending on the last settled day. Default last_28_days.
compareNoCompare with the previous period (default), the same dates last year, or none.
end_dateNoEnd date YYYY-MM-DD. Defaults to the last settled day (Search Console lags 2 to 3 days).
group_byNoDefault channel.
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

B3.4/5.0
Behavior3/5

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

The annotations already cover safety, idempotency, and open-world access, so the bar is lower. The description does add real behavioral context beyond them: it discloses that a change/comparison column is produced and that the credit model can be session- or first-user-scoped. However, it says nothing about the prerequisite GA4 property access, key-event availability, or how the "change" is computed, which are the behaviors an agent would most want to know before calling.

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?

Two sentences, front-loaded with the analytic question and then an enumerated spec of dimensions and options; no filler. The long comma-chained second clause is dense but every phrase maps to a real parameter or output dimension, so it earns its place.

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?

The tool has nine optional parameters, four enums, and no output schema, and the description plus schema cover the call surface adequately. The gap is context: it never states that GA4 access and a resolvable property are required, nor how this differs from the reporting tools in the same family, which for an open-world GA4 tool is a meaningful omission.

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 site, limit, period, dates, and ga4_property in detail. The description adds meaning only for the enum-driven grouping controls, echoing group_by (channel / source-medium / campaign) and scope (session / first-user) in prose plus the "with change" comparison. That is a modest reinforcement of existing schema information, which matches the baseline 3.

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 second clause names a concrete verb and resource: "GA4 key events and revenue by channel, source / medium or campaign, in session or first-user scope, with change." That is enough for an agent to know it returns conversion/revenue attribution rather than raw traffic. What is missing is any explicit contrast with near siblings such as traffic_sources or channel_changes, so the differentiation is inferred rather than stated.

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 rhetorical opening ("Which channels bring conversions and revenue?") implies the use case of attribution analysis, but there is no sentence telling the agent when to choose this tool over traffic_sources, channel_changes, or run_ga4_report. With nine parameters and a crowded sibling set, some explicit selection guidance would help; it is implied, not supplied.

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