Skip to main content
Glama
mcp-piwik

mcp-piwik

piwik_top_pages

Retrieve top pages by pageviews for a specified Piwik PRO site, with optional date range and result limit, to identify the content driving traffic.

Instructions

Get top pages by pageviews for a site

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": {
      "siteId": "<siteId>"
    },
    "name": "piwik_top_pages"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNoNumber of results (default 10)
dateToNoEnd date (YYYY-MM-DD). Defaults to today
siteIdYesThe site/app ID
dateFromNoStart date (YYYY-MM-DD). Defaults to 30 days ago

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.1

TDQS

C2.9/5.0
Behavior2/5

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

With no annotations, the description carries the full behavioral burden, which it largely does not meet. 'Get' hints at a read-only operation, but it says nothing about sort order (descending? ascending?), pagination, how limit interacts with total result counts, or what an invalid date range produces.

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?

A single eight-word sentence with no filler and the ranking metric front-loaded. It is efficient, though the extreme terseness leaves useful context unstated rather than trimmed.

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 four-parameter read report with fully documented parameters and no output schema, the description is minimally adequate. It does not describe the returned shape (page path plus pageview counts) or ordering, which would help an agent interpret results without a second call.

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% — siteId, limit, dateFrom and dateTo all have inline descriptions with defaults. The description adds no parameter meaning beyond the schema, so the baseline of 3 applies.

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 top pages') plus the metric that defines the ranking ('by pageviews') and the scope ('for a site'). An agent can immediately tell this is a ranked page report, though it does not explicitly contrast itself with siblings like piwik_analytics_summary or piwik_custom_query.

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?

The description states what the tool returns but gives no guidance on when to choose it over piwik_analytics_summary or piwik_custom_query, and no prerequisites or exclusions. Usage can only be inferred from the tool name and purpose sentence.

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