Skip to main content
Glama

Get Google Analytics site search

get_google_analytics_site_search
Read-onlyIdempotent

Read measured internal search terms with search events, users, sessions, engaged sessions, and engagement rate. Requires GA4 site-search measurement. Reads only the GA4 property already connected to a NameIO project the caller is authorized to access. The server selects the Google account and property from that project's saved connection. Read-only and uses no NameIO credits.

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": {
      "projectId": "<projectId>"
    },
    "name": "get_google_analytics_site_search"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNo
offsetNo
endDateNoInclusive YYYY-MM-DD date. Provide both startDate and endDate.
projectIdYesRequired. The NameIO project ID to scope this call to. Get one from list_projects.
startDateNoInclusive YYYY-MM-DD date. Provide both startDate and endDate.

Output Schema

NameRequiredDescriptionDefault
rowsNo
errorNo
quotaNo
sourceNo
statusYes
requestNo
pageInfoNo
rowCountNo
warningsNo
comparisonNo
diagnosticsNo
totalRowCountNo
reportMetadataNo
ecommerceActivityNo
diagnosticCoverageNo
siteSearchActivityNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.5/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint and non-destructive behavior, but the description adds real context beyond them: the property is fixed by the project's saved connection, the server picks the Google account, authorization scope is enforced, and the call consumes no NameIO credits. It does not describe pagination or how a missing date range behaves, which keeps it below a 5.

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?

Four tight sentences, front-loaded with what is returned before prerequisites and authorization scoping. Every sentence carries information; only the server-side account selection detail borders on redundant with the preceding sentence.

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 presence of an output schema means return values need not be described, and the definition covers the prerequisites, authorization model and cost profile well. The remaining gap is pagination and date-range default behavior for a tool with five parameters.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is only 60%, and the description contributes nothing about limit, offset, or the startDate/endDate pairing — the two pagination parameters carry no descriptive text in the schema at all. An agent must infer from the schema defaults and bounds alone how to page through results.

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?

The description uses a specific verb and resource — reading measured internal search terms along with events, users, sessions, engaged sessions and engagement rate — which is clearly distinct from sibling tools such as organic landing pages or page performance. It stops short of naming an alternative tool, so the differentiation is implicit rather than stated.

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?

It gives one concrete precondition (GA4 site-search measurement must be configured), which is genuinely useful for avoiding empty results. However, it never says when to prefer this over adjacent GA4 tools or what to do if site search is not enabled, leaving usage largely implied by the resource name.

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