Skip to main content
Glama
Plausible Analytics MCP Server

Plausible Analytics MCP Server

by er1carruda

get_top_pages

Retrieve top pages ranked by visitors for a date range, supporting all, entry, or exit page types and optional filters to identify high-traffic content and landing or exit points.

Instructions

Get top pages ranked by visitors. page_type: 'all' = any page view, 'entry' = landing pages, 'exit' = exit pages.

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

Input Schema

NameRequiredDescriptionDefault
limitNoNumber of pages to return
filtersNoOptional filters, e.g. [["is", "visit:source", ["Google"]]]
page_typeNoType of page: all, entry (landing), or exitall
date_rangeYesDate range

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.1

TDQS

C2.9/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 behavioral burden. It does disclose the ranking basis (visitors) and the meaning of each page_type value, but says nothing about ordering direction, tie handling, pagination/limit behavior, permissions, or the shape of the result.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Two short sentences, front-loaded with the core purpose and followed by the parameter gloss. It is efficient, though the page_type sentence duplicates information already present in the schema.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a four-parameter analytics tool with no annotations and no output schema, the description is thin: it does not clarify date_range formats, the limit default, or what filters accept beyond the schema's single example. An agent could call it, but only by leaning entirely on the input schema.

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 all four parameters are already documented, and the enum values are described in the schema as well. The description's page_type gloss largely restates the schema, adding no new syntax or format detail (for example, the accepted date_range formats remain vague in both places).

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 verb and resource plus the ranking metric ('Get top pages ranked by visitors'), so an agent knows exactly what it retrieves. It does not differentiate itself from siblings such as get_page_breakdown or get_top_sources, which is the only missing piece.

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 tool versus the many sibling breakdown tools, and no stated preconditions or exclusions. The agent must infer usage from the name and the page_type explanation alone.

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