Skip to main content
Glama

get_analytics

Read-only

Retrieve account-wide link analytics with total clicks, unique visitors, top links, and breakdowns by day, country, device, and referrer. Use for overall performance reporting.

Instructions

Analytics for the whole account across all links: total clicks, unique visitors, link count, top links, and breakdowns by day, country, device and referrer. For a single link use get_link_stats. Read-only.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "get_analytics"
  }
}

Input Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.4

TDQS

A4.6/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true, destructiveHint=false and openWorldHint=true, so 'Read-only' in the description is largely redundant. The description does earn its place by disclosing the return contents, which matters because no output schema exists. The notable gap is that the tool takes no parameters, yet the description never states the time window the analytics cover.

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?

Two sentences, front-loaded with the account-wide scope and metric list before the sibling disambiguation. Every clause carries information; the only questionable content is the redundant 'Read-only'.

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 no parameters and no output schema, the description properly carries the burden of explaining what comes back, and it does so concretely. The one omission an agent would care about is the default reporting period for the day-level and aggregate breakdowns.

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 tool has zero parameters, so the baseline is 4 and there is no parameter meaning for the description to add. Nothing is misdescribed or left ambiguous in the (empty) input schema.

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 resource and scope ('Analytics for the whole account across all links') and enumerates the exact metrics returned: total clicks, unique visitors, link count, top links, and day/country/device/referrer breakdowns. It also explicitly separates itself from the sibling get_link_stats.

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?

Gives an explicit routing rule: 'For a single link use get_link_stats.' The condition that selects the alternative is stated outright, so the agent does not need to infer which analytics tool applies to account-wide versus per-link questions.

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