Skip to main content
Glama

Word of Agent

Visits and sales from assistants and from search (Google Analytics)

get_analytics
Read-only

From the owner's own Google Analytics (read-only, stored daily): the last 28 days against the 28 before, by channel (assistant, search, other) with sessions and key events, change only when bigger than chance; visits per assistant (ChatGPT, Claude, Perplexity, Gemini, Copilot); landing pages with their search and assistant visitors and what those visitors did (key events); noAction, pages with 30 or more such visits and no key events (where visitors leave without acting: the convert playbook); hasKeyEvents (without key events, sales and sign-ups can't be shown: the tracking playbook). Assistant apps that send no referrer count as direct. shop, when the site's Shopify is connected: orders and revenue by channel (assistant, search, other) against the 28 days before, per assistant, and the landing pages that led to orders, from each order's own journey. When neither is connected, it says so. Free.

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": {
      "site": "<site>"
    },
    "name": "get_analytics"
  }
}

Input Schema

NameRequiredDescriptionDefault
siteYes

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.9/5.0
Behavior5/5

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

Annotations already establish readOnlyHint=true and non-destructive, but the description adds substantial behavior beyond them: the data source and daily storage, the fixed 28-day vs prior-28 comparison, significance gating ('change only when bigger than chance'), the attribution rule that assistant apps sending no referrer count as direct, and explicit degradation ('When neither is connected, it says so'). These are exactly the traits an agent needs to interpret results correctly.

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 clause is well front-loaded, but the body is a single sprawling sentence chain dense with semicolons and nested parentheticals that is hard to parse and contains marginal marketing text ('Free.'). Most content earns its place, but the compression hurts readability.

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?

An output schema exists, so return values need not be explained, and the description covers data coverage, windows, segments, and fallback behavior thoroughly for a reporting tool. The remaining gap is the unexplained `site` parameter and no note on freshness/timing given data is 'stored daily'.

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?

There is a single required parameter, `site`, with 0% schema description coverage, and the description never defines it — no indication whether it is a domain, a property ID, or an account reference, nor what values are valid. The only hint is implied ('the site's Shopify'), which leaves the one parameter the agent must supply essentially undocumented.

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?

Opens with a specific verb and resource plus provenance: 'From the owner's own Google Analytics (read-only, stored daily)', then enumerates exactly what is reported — 28-day vs prior-28 comparison by channel, per-assistant visits, landing pages, noAction/hasKeyEvents segments, and Shopify orders/revenue. This is far more specific than sibling analytics tools and an agent can distinguish it from get_crawler_visits or get_search_opportunities 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 Guidelines3/5

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

Usage is only implied through conditional clauses: 'shop, when the site's Shopify is connected' and 'When neither is connected, it says so', plus references to 'the convert playbook' and 'the tracking playbook'. It never states when an agent should choose this over a sibling analytics tool or when it should not call it (e.g., no GA connected, no data yet).

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