Skip to main content
Glama
Google Analytics MCP Plus

Google Analytics MCP Plus

by marcvrn

run_report

Read-only

Executes Google Analytics 4 Data API reports for standard, pivot, batch, realtime, compatibility, and funnel queries using a property ID and request JSON.

Instructions

Run a Data API report. Request is the request JSON without property. Kinds: report (RunReportRequest), pivot, batch, batch_pivot, realtime, compatibility, funnel (v1alpha RunFunnelReportRequest). Inspect get_request_schema("data."). Example: {"date_ranges":[{"start_date":"28daysAgo","end_date":"today"}], "dimensions":[{"name":"eventName"}],"metrics":[{"name":"eventCount"}],"limit":50}

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>",
      "request": "<request>"
    },
    "name": "run_report"
  }
}

Input Schema

NameRequiredDescriptionDefault
kindNoreport
requestYes
property_idYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.6/5.0
Behavior3/5

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

Annotations already cover the safety profile (readOnly true, openWorld true, non-destructive). The description adds one genuinely useful behavioral detail beyond them: the request payload must exclude the property field, which is passed separately. It says nothing about rate limits, row caps, or result shape.

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?

Front-loaded with the action, then the kind enumeration, then the schema-routing hint, then an example — a sensible order with no filler prose. The kind list is wrapped across lines and the example is dense, costing a little scannability.

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 polymorphic, nested-object tool with no output schema and an untyped request object, the definition handles the hardest part well by naming every kind and routing the agent to the per-kind schema before calling. It omits expected return content and any size/rate constraints, which a report-running agent would benefit from.

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?

Schema description coverage is 0%, so the description carries the burden and largely does: it enumerates the accepted values for the otherwise unconstrained 'kind' string, clarifies that 'request' is the per-kind request JSON without the property, and supplies a concrete example payload. The 'property_id' parameter is never explained, which is the remaining gap.

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?

States a specific verb and resource ('Run a Data API report') and enumerates the supported request kinds (report, pivot, batch, batch_pivot, realtime, compatibility, funnel), which makes the surface concrete. It does not position itself against siblings beyond pointing at get_request_schema as a schema-lookup helper, so it stops short of full sibling differentiation.

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?

Usage is implied by the kinds list plus the instruction to call get_request_schema("data.<kind>") before building a request. There is no explicit when-to-use versus when-not guidance, and no statement about prerequisites such as permissions or property access; the agent must infer the workflow.

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