Skip to main content
Glama
mcp-piwik

mcp-piwik

piwik_analytics_summary

Retrieve session, pageview, and visitor totals for a Piwik PRO site across a custom date range to gauge traffic and engagement for any reporting period.

Instructions

Get analytics summary for a site (sessions, pageviews, visitors)

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

Input Schema

NameRequiredDescriptionDefault
dateToNoEnd date (YYYY-MM-DD). Defaults to today
siteIdYesThe site/app ID from piwik_list_sites
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?

No annotations are supplied, so the description carries the full behavioral burden, and it discloses very little. It does not say whether values are aggregated totals or per-day breakdowns, what the response structure looks like, whether there is a row or date-range cap, or what happens if dateFrom/dateTo are inverted. For a read tool with zero annotation coverage this leaves significant gaps.

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 short sentence with the resource and metric scope front-loaded and no redundancy. It is efficient, though its brevity is part of why behavioral and usage detail is missing.

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?

The schema fully documents the three parameters, which covers much of what an agent needs to invoke it. However, there is no output schema, so the description should at minimum say what the summary looks like (totals vs. time series), and it does not.

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 coverage is 100%, with dateTo, dateFrom, and siteId each documented including defaults and the cross-reference to piwik_list_sites. The description adds no parameter meaning beyond the schema, so the baseline 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 states a specific verb and resource ("Get analytics summary for a site") and names the metrics returned (sessions, pageviews, visitors), which separates it from narrower siblings like piwik_top_pages or piwik_traffic_sources. It stops short of explicitly contrasting itself with piwik_custom_query, so it is clear but not fully differentiated.

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 when-to-use or when-not-to-use guidance. The description never says whether this is the default first call for a site overview or when an agent should instead reach for piwik_custom_query, piwik_top_pages, or piwik_traffic_sources. The intended usage is only inferable from the word "summary".

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