Skip to main content
Glama
TeamUnilytics

Unilytics MCP Server

Official

analytics_data

Read-only

Fetch sessions, users, conversions, traffic sources, and device breakdown from Google Analytics 4 by providing project and account IDs.

Instructions

Query your Google Analytics 4 data — sessions, users, conversions, traffic sources, and device breakdown.

Requires a connected GA4 data source. Call list_projects() then list_connections()
to find your project_id and account_id.

Args:
    project_id: Your project UUID (from list_projects)
    account_id: GA4 property ID (from list_connections, e.g. "375869549")
    endpoint: What data to fetch:
        - "complete_data": Full analytics with device breakdown (last 2 months)
        - "sessions": Session and user metrics (last 3 months)
        - "conversions": Conversion and e-commerce metrics (last 3 months)
        - "device_breakdown": Metrics by device category (last month)
        - "traffic_acquisition": Traffic by source/medium (last 2 months)

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
configNo
endpointNocomplete_data
account_idYes
project_idYes
Behavior4/5

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

The readOnlyHint annotation already signals this is a safe read operation, and the description complements it by noting the requirement for a connected data source and specifying per-endpoint date ranges (e.g., last 2 months, last 3 months). There is no contradiction between the annotation and the query language used.

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?

The first sentence is a clear, front-loaded summary. The required-ID lookups are explained in one concise sentence, and the endpoints are presented in a scannable bullet list. Every sentence provides necessary context, with no filler or repetition.

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?

The description covers prerequisites, ID lookup steps, endpoint choices, and the time ranges for each endpoint, which is strong for selecting the right query. It does not describe the output/return format, and with no output schema that information is absent, but the data types listed in the endpoints give reasonable inference.

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?

The input schema provides no descriptions (0% coverage), so the description carries the full burden. It clearly explains project_id, account_id, and each endpoint enum value along with what data they return. However, the optional 'config' parameter is not mentioned at all, preventing a perfect score.

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 specific verb and resource: 'Query your Google Analytics 4 data', and enumerates the metrics it covers (sessions, users, conversions, traffic sources, device breakdown). This clearly distinguishes it from sibling tools like search_console_data and google_ads_data, which target different data sources.

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

Usage Guidelines4/5

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

The description gives explicit prerequisites ('Requires a connected GA4 data source') and a clear step-by-step guide to find the required IDs by calling list_projects() and list_connections(). It does not explicitly mention when not to use this tool or name alternatives, but the GA4 scoping makes the intended context clear.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/TeamUnilytics/unilytics-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server