Skip to main content
Glama
plausible-mcp

plausible-mcp

by getsentry

Run an advanced Stats query

query_stats
Read-onlyIdempotent

Create custom Plausible reports by running Stats v2 queries across multiple dimensions with nested filters, segments, ordering, and imports when standard reports are insufficient.

Instructions

Advanced Stats v2 query for multiple dimensions, nested filters, segments, ordering or imports. Prefer named tools for ordinary reports. Read plausible://reference/stats-query for syntax. Up to 1,000 rows, default 50.

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_id": "<site_id>",
      "metrics": "<metrics>",
      "date_range": "<date_range>"
    },
    "name": "query_stats"
  }
}

Input Schema

NameRequiredDescriptionDefault
filtersNoNative Stats v2 filters, e.g. [["is","visit:channel",["AI Assistants"]]].
includeNo
metricsYes
site_idYes
order_byNo
date_rangeYes
dimensionsNo
paginationNo

Output Schema

NameRequiredDescriptionDefault
metaYes
notesNoFacts about this result that change how to read its numbers
queryYes
metricsYesMetric keys, in the order they appear in each row's `metrics` array
resultsYesOne row per dimension-value combination returned by Plausible
dimensionsYesDimension keys, in the order they appear in each row's `dimensions` array
paginationNoPresent on paged reports. Advance offset by limit when has_more is true.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.14.0

TDQS

A3.9/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent and openWorld, so the safety profile is covered. The description adds useful operational context not in the annotations: a hard cap of 1,000 rows with a default of 50, which directly affects how aggressively an agent must paginate. It also directs the agent to the syntax reference for the query DSL, which is the main behavioral unknown here.

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?

Four short sentences, capability first, routing rule second, syntax pointer third, limits last. Nothing is redundant and every sentence carries distinct information an agent needs before calling.

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 values need no explanation, and the description covers the routing decision and row limits. However, for an 8-parameter tool with nested filters and ordering pairs at 13% schema coverage, offloading all parameter semantics to an external reference is a real gap for an agent that cannot fetch it. It is adequate but thin for this complexity.

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 only 13% across 8 parameters with nested objects, so the schema does little heavy lifting; metrics, dimensions, date_range and pagination are entirely undocumented. The description does not explain any parameter directly, but it does point at plausible://reference/stats-query as the authoritative syntax source and states the row limits that govern the pagination parameter, which is meaningful partial 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 states a specific resource and scope: an 'Advanced Stats v2 query' supporting multiple dimensions, nested filters, segments, ordering and imports. It signals that this is the power-user path versus the simpler named tools, so an agent can place it in the toolset. It stops short of naming a concrete sibling, leaving differentiation at the category level ('named tools').

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?

'Prefer named tools for ordinary reports' gives a clear when-not-to-use rule and implicitly defines when this tool is appropriate (non-ordinary, multi-dimension reports). No explicit prerequisites or exclusions beyond that, and alternatives are referred to only as a class rather than by name.

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