Skip to main content
Glama
Plausible Analytics MCP Server

Plausible Analytics MCP Server

by er1carruda

get_breakdown_by_location

Break down website visitors by country, region, or city to analyze geographic traffic patterns. Filter by country or region to drill into specific areas.

Instructions

Get visitors broken down by geographic location. Use country_filter to drill into regions of a specific country, or region_filter to drill into cities of a specific region.

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": {
      "date_range": "<date_range>"
    },
    "name": "get_breakdown_by_location"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNoNumber of results to return
filtersNoOptional additional filters, e.g. [["is", "visit:source", ["Google"]]]
date_rangeYesDate range
location_typeNoGeographic granularitycountry
region_filterNoRegion code to filter cities
country_filterNoISO 2-letter country code to filter regions (e.g. 'US', 'BR')

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.1

TDQS

A3.7/5.0
Behavior3/5

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

No annotations are supplied, so the description carries the whole burden; it implies a read-only lookup and discloses the drill-down hierarchy, which is real behavioral context. It says nothing about result limits, default granularity behavior, ordering, or response shape, so a mutation-free analytics read still has unexplained edges.

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, purpose front-loaded, then the drill-down mechanic. No filler, no repetition of the tool name, and every clause carries actionable information.

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?

For a six-parameter analytics tool with no annotations and no output schema, the description covers purpose and the geographic filter hierarchy but leaves the limit parameter's effect, the meaning of the default location_type granularity, and the general return shape unaddressed. Adequate to invoke correctly, thin for interpreting results.

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 all six parameters, which sets the baseline at 3. The description does add genuine meaning by explaining how country_filter and region_filter interact hierarchically with location_type, which the schema only states in isolation — a mild lift above baseline but not full compensation.

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 gives a specific verb and resource ('Get visitors') plus the exact dimension ('broken down by geographic location'), which cleanly separates it from the browser/device/OS/page siblings. It stops short of naming any sibling explicitly, so it is clear but not fully differentiating.

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?

It gives explicit conditional guidance: use country_filter to reach regions and region_filter to reach cities, which tells the agent how to escalate granularity. It does not say when to prefer this tool over get_aggregate or plausible_query, and it never states when not to use it.

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