accountsByRole
#Get distribution of accounts by role. Returns count and percentage of accounts for each role (Admin, Customer, Driver, Merchant, etc.)
Argumente
- input!
Standard
{ "app": null }
Earnings, performance metrics, and driver / merchant analytics.
Get distribution of accounts by role. Returns count and percentage of accounts for each role (Admin, Customer, Driver, Merchant, etc.)
Argumente
Standard
{
"app": null
}Get activity distribution (active vs inactive users). Shows breakdown of users by activity status based on configurable threshold.
Argumente
Standard
{
"actorType": null,
"app": null,
"activityDays": 0
}List online sessions with optional filtering. Useful for browsing all sessions across multiple accounts.
Argumente
Get online timesheet for a specific account. Returns daily breakdown of online sessions within the specified date range. Sessions spanning midnight are automatically split across days. Active sessions are included with duration up to current time.
Argumente
Query all drivers metrics for the tenant.
Argumente
Compare performance metrics for multiple drivers.
Argumente
Get country distribution. Shows geographic breakdown of users by country.
Argumente
Standard
{
"actorType": null,
"app": null,
"period": "LAST7_DAYS"
}Get unified dashboard statistics for admin dashboards.
Returns 4 key metrics (total earnings, active actors, average rating, completed orders)
with current values, comparison to previous period, and sparkline data for trend visualization.
# Arguments
* input - Query parameters including actor type, time period, and currency
# Returns
Unified dashboard statistics for display
Argumente
Operator dispatch-health analytics over all dispatched orders in the tenant. Admin-only (PlatformAdmin / TenantOwner / TenantAdmin).
Argumente
Get earnings chart data for a specific driver (admin view, simple non-paginated).
Returns data points suitable for chart visualization with the specified timeframe:
- WEEKLY: Last 7 days with daily data points
- MONTHLY: Last 30 days with daily data points
- YEARLY: Last 365 days with monthly data points
Each data point includes earnings, rides, avg earnings per ride, and online hours.
# Security
This endpoint is for admin use - requires appropriate permissions to view driver data.
# Deprecation
Consider using driverEarningsChartPaginated for better pagination and comparison support.
Argumente
Driver ID to query earnings for
Timeframe for chart data
Get paginated earnings chart data for a specific driver (admin view).
Returns one "page" of earnings data aligned to period boundaries:
- WEEKLY: One week (Monday to Sunday) with daily data points
- MONTHLY: One calendar month with daily data points
- YEARLY: One calendar year with monthly data points
Use endBefore cursor to navigate to older periods. Use includePreviousPeriod
to get comparison data (earnings/rides change vs previous period).
# Security
This endpoint is for admin use - requires appropriate permissions to view driver data.
Argumente
Driver ID to query earnings for
Query driver metrics for a specific driver.
Argumente
Get gender distribution. Shows breakdown of users by gender (Male, Female, Other, Not Specified).
Argumente
Standard
{
"actorType": null,
"app": null,
"period": "LAST7_DAYS"
}Get paginated earnings chart data for the authenticated driver.
Returns one "page" of earnings data aligned to period boundaries:
- WEEKLY: One week (Monday to Sunday) with daily data points
- MONTHLY: One calendar month with daily data points
- YEARLY: One calendar year with monthly data points
Use endBefore cursor to navigate to older periods. Use includePreviousPeriod
to get comparison data (earnings/rides change vs previous period).
# Security
This endpoint is scoped to the authenticated driver - drivers can only see their own data.
Argumente
Get my performance metrics and trends Returns comprehensive performance data for the authenticated driver including: - All-time operational KPIs - Historical daily metrics for the specified period - Performance trends (recent 7 days vs previous 7 days) # Security This endpoint is scoped to the authenticated driver - drivers can only see their own data.
Argumente
Number of days of historical data to fetch
Standard
30Get a quick summary of my current stats Returns just the operational KPIs without historical data. Useful for dashboard widgets or quick status checks.
Discrete order lifecycle events with location snapshots (from PostgreSQL).
Returns:
- Lifecycle events (DriverAccepted, DriverArrived, RideStarted, …) from order_activities.
- Per-driver dispatch offers (one entry per contacted driver) from dispatch_attempts,
with the driver exposed as an Account reference.
All entries are interleaved chronologically.
Argumente
Continuous GPS breadcrumb trail during an active order (from ClickHouse). Returns the full movement path of the driver, with computed total distance.
Argumente
Get summary metrics for order dashboard cards.
Returns 4 key metrics (total orders, total revenue, completion rate, average order value)
with current values, comparison to previous period, and sparkline data for trend visualization.
# Arguments
* input - Query parameters including order kind filter, time period, and optional currency
# Returns
Summary of order metrics for dashboard display
Argumente
Standard
{
"kind": null,
"period": "LAST7_DAYS",
"fromDate": null,
"toDate": null
}Get distribution of orders by kind.
Returns breakdown of orders grouped by kind (Taxi, Shop, Parking, Service)
with counts, percentages, and comparison to previous period.
# Arguments
* input - Query parameters including time period and whether to include revenue
# Returns
Order kind distribution with counts, percentages, and period comparison
Argumente
Standard
{
"period": "LAST7_DAYS",
"includeRevenue": false
}Get distribution of orders by status.
Returns breakdown of orders grouped by status (Finished, DriverCanceled, RiderCanceled, etc.)
with counts and percentages for each status.
# Arguments
* input - Query parameters including order kind filter and time period
# Returns
Order status distribution with counts and percentages
Argumente
Standard
{
"kind": null,
"period": "LAST7_DAYS",
"fromDate": null,
"toDate": null
}Get order volume time series grouped by order kind.
Returns time-bucketed order counts for each kind (Taxi, Shop, Parking, Service),
along with aggregated totals and period-over-period comparisons.
Ideal for rendering stacked area charts or line charts.
The aggregation interval is automatically determined based on the period:
- Today: hourly buckets
- Last 7 days, Last 30 days, This month, Last month: daily buckets
- This year: monthly buckets
# Arguments
* input - Query parameters including time period, kind filter, and optional custom dates
# Returns
Order volume time series with per-kind breakdown and aggregated totals
Argumente
Standard
{
"period": "LAST7_DAYS",
"kinds": null,
"currency": null,
"fromDate": null,
"toDate": null
}Get platform distribution (iOS, Android, Web). Shows how users are distributed across different platforms.
Argumente
Standard
{
"actorType": null,
"app": null,
"period": "LAST7_DAYS"
}Get expense breakdown by category over time.
Groups expenses by category (PAYOUTS, REFUNDS, PROMOTIONS, PARTNER_SHARES,
CHARGEBACKS, OTHER) and returns time-bucketed data.
# Arguments
* input - Query parameters including currency and chart filter (date range, period)
# Returns
Vector of expense entries, one per (category, time_bucket) combination
Argumente
Get revenue vs expense over time.
Returns time-bucketed revenue and expense totals with net income
for financial comparison charts.
# Arguments
* input - Query parameters including currency and chart filter (date range, period)
# Returns
Vector of revenue/expense entries, one per time bucket
Argumente
Get platform wallet balance history over time.
Returns time series of platform wallet balances with summary statistics
(start, end, min, max, average, percent change).
# Arguments
* input - Query parameters including currency and chart filter (date range, period)
# Returns
Financial timeline with points and summary
Argumente
Get the most popular regions by taxi order count. Returns regions ranked by the number of completed taxi orders originating from each region, limited to the top 10.
Argumente
Standard
10Get retention metrics for user cohorts. Shows retention rates at 1, 7, 30, and 90 days.
Argumente
Standard
{
"actorType": null,
"cohortPeriod": "LAST7_DAYS"
}Get revenue breakdown by app. Shows revenue per app with optional filtering by actor type and time period.
Argumente
Standard
{
"actorType": null,
"app": null,
"period": "LAST7_DAYS"
}Query revenue metrics for the authenticated tenant.
Argumente
Query ride metrics for the authenticated tenant.
Argumente
Query top performing drivers by metric.
Argumente
Get top spenders/earners leaderboard. For customers: shows top spenders by total spending. For drivers/merchants: shows top earners by total earnings.
Argumente
Get total platform expenses with daily breakdown.
Aggregates expenses including payouts, refunds, promotions,
partner shares, and chargebacks from ledger entries.
# Arguments
* input - Query parameters including currency and time period
# Returns
Total expenses with daily sparkline and period comparison
Argumente
Get total outstanding user balances with daily breakdown.
Sum of all customer wallet balances at the current time.
Daily breakdown shows historical balance totals.
# Arguments
* input - Query parameters including currency and time period
# Returns
Total outstanding balances with daily sparkline
Argumente
Get total platform revenue with daily breakdown.
Aggregates revenue from platform wallet credits with revenue-related
ledger purposes (PLATFORM_REVENUE_CREDIT, etc.).
# Arguments
* input - Query parameters including currency and time period
# Returns
Total revenue with daily sparkline and period comparison
Argumente
Get distribution of users by app (Taxi, Shop, Parking, etc.) Optionally filter by actor type (Customer, Driver, etc.)
Argumente
Standard
{
"actorType": null,
"app": null,
"period": "LAST7_DAYS"
}Run a natural-language analytics question. The model picks a
structured plan from a closed enum; the application executes the
plan against the existing analytics repos. Admin-only. Requires
the tenant to have nl_analytics_enabled turned on under
Settings → AI Features and at least one configured AI provider
with a remaining monthly budget.
Argumente
BetterSuite ist für Teams gebaut, die On-Demand als Geschäft verstehen – nicht als Feature.