report_query
Query aggregated analytics data using structured JSON queries.
Build queries using measures, dimensions, filters, time dimensions, and ordering discovered via report_schema. No SQL required — queries are structured JSON objects. Only public views (those listed by report_schema) can be queried.
Tenant isolation is enforced server-side; the agent cannot access other tenants' data.
Example query: { "measures": ["billing_overview.total_bills", "billing_overview.total_amount"], "dimensions": ["billing_overview.status"], "filters": [{"member": "billing_overview.status", "operator": "equals", "values": ["approved"]}], "timeDimensions": [{"dimension": "billing_overview.created_at", "dateRange": "Last 30 days", "granularity": "day"}], "order": {"billing_overview.total_amount": "desc"}, "limit": 100 }
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "report_query"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Maximum rows to return (default 5000, max 50000) | |
| order | No | Sort order: {"member_name": "asc" | "desc"} | |
| filters | No | Array of filter conditions | |
| measures | No | Array of measure names to aggregate, e.g. ["billing_overview.total_bills"] | |
| dimensions | No | Array of dimension names to group by | |
| timeDimensions | No | Array of time dimension configurations |