Skip to main content
Glama

Google Ads & Meta Ads

Google Analytics: Run Conversions Report

ga4_run_conversions_report
Read-onlyIdempotent

Run a Google Analytics conversions report on one GA4 property of the user's connected Google Analytics login: ad clicks, ad cost, conversions, revenue and return on ad spend by channel, source/medium, campaign, country, device or platform, under a chosen attribution model (DATA_DRIVEN or LAST_CLICK) and for chosen conversion actions or all of them. Use this instead of ga4_run_report when the question is about conversions, ROAS, ad cost or attribution; it accepts only the dimensions and metrics the conversions surface defines. Same paging as ga4_run_report. Read-only; uses the Data API alpha surface.

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>",
      "date_ranges": "<date_ranges>",
      "metrics": "<metrics>",
      "conversion_spec": "<conversion_spec>"
    },
    "name": "ga4_run_conversions_report"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNoRows per call, 1-1000 (default 100). The reply's rowCount is the full count; pass offset to page.
offsetNoRow to start at, counting from 0; for paging.
metricsYesOnly these metrics are allowed in a conversions report: advertiserAdClicks, advertiserAdCost, advertiserAdCostPerAllConversionsByConversionDate, advertiserAdCostPerAllConversionsByInteractionDate, advertiserAdCostPerClick, advertiserAdImpressions, allConversionsByConversionDate, allConversionsByInteractionDate, returnOnAdSpendByConversionDate, returnOnAdSpendByInteractionDate, totalRevenueByConversionDate, totalRevenueByInteractionDate.
order_bysNoRow ordering, each an OrderBy on a dimension or a metric that is in the request. Examples: {"dimension":{"dimensionName":"eventName","orderType":"ALPHANUMERIC"},"desc":false}; {"dimension":{"dimensionName":"campaignName","orderType":"CASE_INSENSITIVE_ALPHANUMERIC"},"desc":true}; {"dimension":{"dimensionName":"audienceId","orderType":"NUMERIC"}}; {"metric":{"metricName":"eventCount"},"desc":true}. Several may be combined, dimension and metric orderings mixed.
dimensionsNoOnly these dimensions are allowed in a conversions report: campaignName, continent, country, defaultChannelGroup, deviceCategory, medium, platform, primaryChannelGroup, source, sourceMedium, sourcePlatform, subcontinent.
date_rangesYesDate ranges to report on, each {startDate, endDate, name?}. Dates are YYYY-MM-DD or relative: today, yesterday, NdaysAgo. Examples: a single month [{"startDate":"2025-01-01","endDate":"2025-01-31","name":"Jan2025"}]; the previous 30 days [{"startDate":"30daysAgo","endDate":"yesterday"}]; two ranges to compare [{"startDate":"2025-01-01","endDate":"2025-01-31"},{"startDate":"2025-02-01","endDate":"2025-02-28"}].
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.
currency_codeNoISO 4217 code (USD, EUR, JPY) for currency metrics. Omitted = the property's own.
metric_filterNoA FilterExpression over metrics only (use dimension_filter for dimensions). Examples: {"filter":{"fieldName":"eventCount","numericFilter":{"operation":"GREATER_THAN","value":{"int64Value":"10"}}}}; between {"filter":{"fieldName":"purchaseRevenue","betweenFilter":{"fromValue":{"doubleValue":10},"toValue":{"doubleValue":25}}}}; empty {"filter":{"fieldName":"purchaseRevenue","emptyFilter":{}}}; NOT, AND and OR as for dimension_filter. Operations: EQUAL, LESS_THAN, LESS_THAN_OR_EQUAL, GREATER_THAN, GREATER_THAN_OR_EQUAL. Note: dimensionFilter and metricFilter are applied independently, so a condition like (eventName = page_view AND eventCount > 100) OR (eventName = join_group AND eventCount < 50) cannot be expressed in one request — either run one report filtered on the dimensions and apply the metric conditions to the rows yourself, or run one report per combination.
conversion_specYesWhich conversions and attribution model to report: {"conversionActions": ["conversionActions/12345"], "attributionModel": "DATA_DRIVEN"}. An empty conversionActions list means every conversion event; attributionModel is DATA_DRIVEN or LAST_CLICK.
dimension_filterNoA FilterExpression over dimensions only (use metric_filter for metrics). The fieldName must be one of the report's dimensions or a valid dimension. Examples: begins-with {"filter":{"fieldName":"eventName","stringFilter":{"matchType":"BEGINS_WITH","value":"add"}}}; exact {"filter":{"fieldName":"sessionSourceMedium","stringFilter":{"matchType":"EXACT","value":"google / cpc"}}}; one of {"filter":{"fieldName":"eventName","inListFilter":{"values":["first_visit","purchase"],"caseSensitive":true}}}; empty {"filter":{"fieldName":"source","emptyFilter":{}}}; NOT {"notExpression":{…}}; AND/OR {"andGroup":{"expressions":[…]}} or {"orGroup":{"expressions":[…]}}. Match types: EXACT, BEGINS_WITH, ENDS_WITH, CONTAINS, FULL_REGEXP, PARTIAL_REGEXP. Note: dimensionFilter and metricFilter are applied independently, so a condition like (eventName = page_view AND eventCount > 100) OR (eventName = join_group AND eventCount < 50) cannot be expressed in one request — either run one report filtered on the dimensions and apply the metric conditions to the rows yourself, or run one report per combination.
return_property_quotaNoTrue to include the property's remaining Data API quota in the reply.

Output Schema

NameRequiredDescriptionDefault
rowsYesOne object per row: each dimension and metric by its API name, values as Google returns them (strings). dateRange is added when several ranges were asked for.
metadataNoGoogle's ResponseMetaData (currencyCode, timeZone, data-loss and sampling flags), or null.
propertyYesThe property read, as properties/<id>.
rowCountYesRows the report has in total, before limit and offset.
returnedRowsYesRows in `rows`.
metricHeadersYesMetric API names and types.
propertyQuotaNoRemaining quota when return_property_quota was true, else null.
dimensionHeadersYesDimension API names, in row order.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true, idempotentHint=true, destructiveHint=false and openWorldHint=true, so safety is covered. The description adds genuinely non-redundant context: it operates on a specific connected login, runs against the 'Data API alpha surface' (a stability/compatibility caveat), and rejects out-of-surface dimensions/metrics. It does not disclose quota/rate behavior beyond the optional return_property_quota flag already 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.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Three sentences, front-loaded with purpose then routing rule then paging/stability note — no throat-clearing. The first sentence is long and enumerates dimensions and metrics that the schema already lists verbatim, which is mild redundancy, but every clause still carries routing or scoping information.

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?

For a 12-parameter nested-schema tool with a full output schema, the description does everything required: it identifies the resource, the data surface, the restriction that only certain dimensions/metrics are legal, the attribution dimension of the request, and which sibling to prefer. Return-value explanation is correctly omitted because an output schema exists, and parameter details are left to the exhaustive schema.

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% and the schema already supplies enumerated allowed metrics/dimensions, date formats, filter expression shapes and paging semantics. The description restates the attribution-model choices (DATA_DRIVEN or LAST_CLICK) and that an empty conversion action list means all, but those points are also in the schema's conversion_spec description, so the marginal value is small. Baseline 3 applies for a fully documented 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 ('Run a Google Analytics conversions report') scoped to exactly one GA4 property, and enumerates the concrete content (ad clicks, ad cost, conversions, revenue, ROAS) broken out by channel, source/medium, campaign, country, device or platform. The closing clause ties it to the attribution model and conversion-action selection, so the tool's identity is unmistakable.

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

Usage Guidelines5/5

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

Explicitly routes between siblings: 'Use this instead of ga4_run_report when the question is about conversions, ROAS, ad cost or attribution', and adds a hard constraint that only the conversions surface's dimensions and metrics are accepted. It also signals shared behavior ('Same paging as ga4_run_report'), which removes any question about how pagination differs between the two.

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