Skip to main content
Glama
Liohtml

Matomo-MCP

by Liohtml

Visits Summary

matomo_visits_summary
Read-only

Get visits, unique visitors, pageviews, bounce rate, actions per visit, and average visit duration for a site and period to answer 'how much traffic did we get?'

Instructions

Key traffic metrics for a site and period: visits, unique visitors, actions (pageviews), bounce rate, actions per visit, and average visit duration. The go-to tool for 'how much traffic did we get?'.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
dateNoDate for the report: 'today', 'yesterday', 'YYYY-MM-DD', a rolling window like 'last7' or 'last30', or a range 'YYYY-MM-DD,YYYY-MM-DD' (combine with period=range).yesterday
periodNoAggregation period for the report.day
segmentNoOptional Matomo segment filter, e.g. 'deviceType==mobile;country==DE'. See https://matomo.org/docs/segmentation/ for the syntax.
site_idYesNumeric Matomo site ID. If unknown, call matomo_list_sites first.
Behavior4/5

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

Annotations already declare readOnlyHint=true and openWorldHint=false, so the agent knows this is a safe, closed read operation. The description adds value by disclosing the exact aggregate metrics returned, which is especially helpful since no output schema is provided.

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?

The description is two concise sentences: the first compactly lists the metrics, and the second gives the canonical use case. It avoids repeating schema details and has no filler.

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

Completeness5/5

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

For a simple read-only summary tool, the description plus a fully described four-parameter schema is sufficient for an agent to select and invoke it correctly. The listed metrics compensate for the absent output schema, and the schema also covers site_id discovery via matomo_list_sites.

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%, and each parameter already carries a good description including date syntax, period enum, segment syntax, and site_id lookup guidance. The tool description adds little parameter-level meaning beyond framing the metrics around a site and period, so it stays at the baseline.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description explicitly says this tool returns key traffic metrics for a site and period, listing visits, unique visitors, actions, bounce rate, actions per visit, and average visit duration. It is unmistakably the traffic-summary tool and is differentiated from more specialized siblings like matomo_pages or matomo_referrers.

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?

The phrase "The go-to tool for 'how much traffic did we get?'" provides a clear, memorable use case for when to select this tool. It does not explicitly enumerate when to avoid it or name alternative tools, but the guidance is strong enough for typical traffic-summary questions.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/Liohtml/matomo-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server