Raw Reporting API
matomo_apiAccess any Matomo Reporting API method directly for custom analytics reports. Leverage available methods to retrieve data not covered by standard tools.
Instructions
Escape hatch: call ANY Matomo Reporting API method directly. Prefer the dedicated matomo_* tools; use this for reports they don't cover (custom dimensions, funnels, heatmaps, segment management, ...). Discover available methods with method='API.getReportMetadata'.
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": {
"method": "<method>"
},
"name": "matomo_api"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| method | Yes | API method as 'Module.action', e.g. 'VisitFrequency.get' or 'API.getReportMetadata'. | |
| params | No | Query parameters using Matomo's native names, e.g. {"idSite": 1, "period": "day", "date": "yesterday", "filter_limit": 20}. |