Skip to main content
Glama
Google Analytics MCP Server

Google Analytics MCP Server

by surendranb

search_skills

Read-onlyIdempotent

Retrieve GA4 analysis playbooks with exact dimensions, metrics, and filters before querying data. Browse the full skill index or fetch a specific playbook by name.

Instructions

Fetch analytical recipes and how-to guides from the GA4 skills library.

Skills are domain-specific playbooks for common GA4 analysis patterns — exact dimensions, metrics, filters, and interpretation logic for each use case. Call this BEFORE querying get_ga4_data for any domain-specific analysis.

Available skills: setup, gcp-setup, service-account-setup, traffic-diagnosis, attribution-scope, channel-acquisition, content-performance, geo-device-segmentation, ecommerce-analysis, ai-referral-analysis, bot-traffic-detection, common-metric-names, filter-structures, custom-dimensions, compatible-combinations, ua-to-ga4, date-ranges, ga4-limitations.

Usage:

  • search_skills("") → returns full index of all skills

  • search_skills("setup") → returns the GCP service-account setup playbook

  • search_skills("ecommerce") → returns the ecommerce-analysis skill

  • search_skills("ua-to-ga4") → returns the UA→GA4 field name mapping

Args: query: A skill name (exact slug) or empty string to browse the full index.

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": {
      "query": "<query>"
    },
    "name": "search_skills"
  }
}

Input Schema

NameRequiredDescriptionDefault
queryYes

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv2.8.4
  2. Removedv2.8.3
  3. Addedv2.7.5

TDQS

A4.5/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint and openWorldHint, so the safety profile is covered. The description adds genuinely non-obvious behavior: matching is by exact slug rather than fuzzy search, and the empty string returns the full index — a critical detail given the tool's name suggests free-text search. It does not state what happens when a slug does not match, which is the one remaining gap.

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?

Purpose and the ordering directive are front-loaded, followed by the catalog and usage examples. The 18-slug enumeration is long but earns its place because slugs must be passed exactly. A minor cost is that the block is dense enough to be slightly slower to scan than a shorter version with the list collapsed.

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?

With an output schema present, return values need not be described, and the description covers purpose, ordering versus the data-fetching sibling, and valid inputs. For a one-parameter lookup tool that is close to sufficient; only invalid-slug behavior is left unstated.

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 coverage is 0%, so the description carries the full burden, and it does explain the single parameter's acceptable values: an exact skill slug, or an empty string to browse. The enumerated skill list makes valid inputs concrete. It stops short of stating case-sensitivity or the failure behavior for an invalid slug.

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 ("Fetch analytical recipes and how-to guides from the GA4 skills library") and immediately explains what a skill is ("domain-specific playbooks ... exact dimensions, metrics, filters"). It also distinguishes itself from the retrieval sibling by naming get_ga4_data and the ordering constraint.

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 says when to use it ("Call this BEFORE querying get_ga4_data for any domain-specific analysis") and names the alternative it precedes. The four concrete invocation examples further remove ambiguity about how to call it in different situations.

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