Skip to main content
Glama

Traffic & Ads Analytics

traffic_analytics
Read-onlyIdempotent

Google Analytics 4 traffic and Google Ads performance: overview, sources, landing pages, any GA4 report, realtime, key events (conversions), Ads campaigns and search terms, plus AI-referred visits per page. Each action names a missing connection instead of returning empty data. Search clicks are gsc_performance. Scoped to the connected site; no domain parameter needed. Cost: FREE - reads your connected/stored data, no AI credits. Actions: ai_pages (first-party AI engagement per page: crawler fetches + AI-referred visits).

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": {
      "action": "<action>"
    },
    "name": "traffic_analytics"
  }
}

Input Schema

NameRequiredDescriptionDefault
daysNolook-back window in days.
limitNomax rows where applicable (ga4_report up to 10,000).
actionYesWhich operation to run. Each action, and the parameters it needs, is listed in the tool description.
intentNoOptional, not needed to answer: in a few words, what the user is trying to achieve, kept to improve SEOmatic. No personal details.
response_formatNoOptional. "concise" (default) or "detailed" (the full result; only when a concise answer says it was cut).

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / response_format
      Added value: +{
      +  "description": "Optional. \"concise\" (default) or \"detailed\" (the full result; only when a concise answer says it was cut).",
      +  "enum": [
      +    "concise",
      +    "detailed"
      +  ],
      +  "type": "string"
      +}
  2. Changed2 schema fields changed
    • changedInput schema / properties / action / description
      Previous value: -"Which operation to run. ai_pages (first-party AI engagement per page: crawler fetches + AI-referred visits)."New value: +"Which operation to run. Each action, and the parameters it needs, is listed in the tool description."
    • addedInput schema / properties / intent
      Added value: +{
      +  "description": "Optional, not needed to answer: in a few words, what the user is trying to achieve, kept to improve SEOmatic. No personal details.",
      +  "maxLength": 200,
      +  "type": "string"
      +}
  3. Changed1 schema field changed
    • changedInput schema / properties / limit / description
      Previous value: -"max rows where applicable."New value: +"max rows where applicable (ga4_report up to 10,000)."
  4. Changed1 schema field changed
    • removedInput schema / properties / user_intent
      Removed value: -{
      -  "description": "Optional: one short sentence describing what the user is ultimately trying to achieve with this request. Used by SEOmatic to tailor answers and improve the product; never required.",
      -  "maxLength": 300,
      -  "type": "string"
      -}
  5. Added

TDQS

A3.9/5.0
Behavior4/5

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

Annotations already cover the safety profile (readOnly, idempotent, non-destructive, closed-world), and the description adds genuinely new behavioral facts: cost is FREE with no AI credits consumed, results are scoped to the connected site, and missing connections produce a named error rather than silent empty data. That last point is a meaningful disclosure about failure modes. It does not discuss pagination or row-cap behavior beyond the schema's own note.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The opening capability list is front-loaded and dense, which is good, but it is delivered as a comma-spliced run-on rather than a scannable enumeration. The trailing "Actions: ai_pages (...)" fragment duplicates the AI-visits point already made earlier in the sentence. Cost, scoping, and sibling routing are each given one clause with no wasted padding, but the structure could be tightened considerably.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

An output schema exists, so return-value detail is rightly omitted, and annotations carry the safety profile. However, the description advertises a broad action set (overview, sources, landing pages, ga4_report, realtime, key events, Ads campaigns, search terms) while the action enum exposes only "ai_pages", a mismatch that leaves an agent unsure whether those operations are reachable. The promised per-action parameter mapping is also never delivered.

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

Parameters3/5

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

Schema description coverage is 100%, so the schema already documents days, limit, intent, and response_format, making 3 the baseline. The description claims "Each action, and the parameters it needs, is listed in the tool description" but then never actually lists those per-action parameter requirements, so it adds no real semantic value over the schema. The only extra hint is the ga4_report 10,000-row cap, which the limit field already states.

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?

Names the specific resources (GA4 traffic and Google Ads performance) and enumerates concrete report families: overview, sources, landing pages, realtime, key events, campaigns, search terms, AI-referred visits. It also draws an explicit boundary against a sibling: "Search clicks are gsc_performance." An agent can distinguish this from gsc_performance and ai_citations without opening any schema.

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?

Gives clear routing guidance (search clicks -> gsc_performance), states the data scope ("Scoped to the connected site; no domain parameter needed"), and tells the agent what happens on failure ("Each action names a missing connection instead of returning empty data"). It lacks explicit when-not-to-use guidance for the other analytics siblings (get_ai_funnel, gsc_insights, ai_citations), so it falls short of a 5.

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.