# Run a Google Analytics report

Run a GA4 analytics report with intelligent query planning. Works on your own Google Analytics account, connected through Get MCP Ads. Needs property id and metrics.

Run a GA4 analytics report with intelligent query planning. Supports 52 metrics, 63 dimensions, auto-pagination.
Use ga4://metrics and ga4://dimensions resources for available fields. Max 9 dimensions + 10 metrics per request. Agentik price: $0.005 per call.

- Tool ID: `ga4/run-report`
- Name in the catalog: Google Analytics: Run report
- Provider: [Google Analytics 4](/providers/ga4.md)
- Capability: [GA4 reports](/tools/google-analytics/reports.md)
- Price: $0.005 per call
- Workspace access is automatic. Connect a platform using the link and notice returned to your AI assistant; an owner or admin completes platform consent and returns to the conversation; see the [guide](/docs/getmcpads.md).
- Authentication: an authorised Agentik workspace is required for execution, including zero-price tools.

## Pricing contract

The provider’s price, with no markup. Billed for measured usage.


```json
{
  "model": "per_call",
  "amountUsd": 0.005
}
```

## Complete input schema


```json
{
  "type": "object",
  "properties": {
    "propertyId": {
      "type": "string",
      "description": "GA4 property ID (numeric, e.g., 123456789)"
    },
    "metrics": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "minItems": 1,
      "description": "Metric keys (e.g., sessions, activeUsers, totalRevenue)"
    },
    "dimensions": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "Dimension keys (e.g., date, sessionSource, country)"
    },
    "startDate": {
      "type": "string",
      "description": "Start date YYYY-MM-DD or relative (7daysAgo, yesterday)"
    },
    "endDate": {
      "type": "string",
      "description": "End date YYYY-MM-DD or relative (today, yesterday)"
    },
    "datePreset": {
      "type": "string",
      "enum": [
        "today",
        "yesterday",
        "last7days",
        "last28days",
        "last30days",
        "last90days",
        "last12months",
        "thisMonth",
        "lastMonth",
        "thisYear"
      ],
      "description": "Named reporting period. Use the custom date range when you need exact start and end dates."
    },
    "orderBy": {
      "type": "string",
      "description": "Metric or dimension key to sort by"
    },
    "orderDirection": {
      "type": "string",
      "enum": [
        "ASC",
        "DESC"
      ],
      "default": "DESC",
      "description": "Sort direction for the selected ordering field."
    },
    "limit": {
      "type": "integer",
      "minimum": 1,
      "maximum": 250000,
      "default": 1000,
      "description": "Maximum number of returned items or rows. The declared bounds and default apply; use pagination for additional results."
    },
    "offset": {
      "type": "integer",
      "minimum": 0,
      "description": "Optional 0-based row offset for explicit pagination."
    },
    "autoPaginate": {
      "type": "boolean",
      "default": false,
      "description": "When true, omit the limit so the GA4 client paginates through all rows using offset."
    },
    "workspace_id": {
      "type": "string",
      "description": "Authorized workspace ID from list_accounts/list_workspaces. Use the user's chosen workspace; never guess between clients. Optional when a unique account identifies it."
    }
  },
  "required": [
    "propertyId",
    "metrics"
  ]
}
```

## Published example

No example input is published for this tool. Ask for the inputs required by its schema.

## Execute and retrieve

Inspect again before execution, explain the price and obtain the required authority. Use MCP run_tool or POST /v1/run with this tool ID, valid input and an idempotency key. Save the returned run ID and follow the actual state. If Agentik answers that the tool is temporarily unavailable, do not retry it blindly; use discovery to propose an alternative.

A partial or uncertain result can still have consumed provider resources. Consult [billing](/docs/billing.md), [idempotency](/docs/idempotency.md) and [asynchronous results](/docs/async.md).

[REST inspection](https://api.agentik.cc/v1/tools/ga4/run-report) · [OpenAPI](/openapi.json) · [Connection guide](/connect.md)

---

[HTML page](/providers/ga4/run-report) · [Agent index](/llms.txt)
