Skip to main content
Glama
Plausible Analytics MCP Server

Plausible Analytics MCP Server

by er1carruda

get_breakdown_by_device

Break down website visitors by device type—Desktop, Mobile, or Tablet—within a chosen date range, with optional filters for targeted traffic analysis.

Instructions

Get visitors broken down by device type (Desktop, Mobile, Tablet).

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_device"
  }
}

Input Schema

NameRequiredDescriptionDefault
filtersNoOptional filters, e.g. [["is", "visit:source", ["Google"]]]
date_rangeYesDate range: '7d', '30d', 'month', etc.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.1

TDQS

B3.1/5.0
Behavior2/5

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

No annotations are supplied, so the description carries the full burden of behavioral disclosure. It does not state that this is a read-only operation, what the response contains (visitor counts? percentages? bounce rate?), how missing device data is handled, or any rate-limit or auth expectations.

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?

A single well-formed sentence with the resource and the output dimension front-loaded. Nothing is redundant or padded.

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 simple two-parameter read tool with full schema coverage and no output schema, the description covers the essentials. However, an analytics breakdown tool would benefit from stating the metric returned and any default or maximum date range, which is absent here.

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 both the date_range formats and the filters syntax are already documented in the schema; the baseline is therefore 3. The description adds only the enumerable device categories, which is mild extra value but does not clarify parameter behavior beyond the schema.

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 names a specific verb and resource ("Get visitors broken down by device type") and enumerates the resulting categories (Desktop, Mobile, Tablet). It does not explicitly distinguish itself from the many sibling breakdown tools (browser, OS, location), though the device qualifier makes its domain obvious.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

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

There is no guidance on when to use this versus the other breakdown tools, no notes on required prerequisites, and no mention of how the required date_range affects results. The agent must infer everything about selection from the tool name alone.

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