MCP tools — Analytics

One tool: workspace metrics over a date range.

Tool Annotation Purpose
get_analytics IsReadOnly, IsIdempotent Workspace-level metrics

get_analytics

Get dashboard analytics: message stats, contact totals, delivery rates, and recent broadcast performance.

Input Type Notes
from date (ISO) default 30 days ago
to date (ISO) default today
group_by string day (default), week, month

Returns a structured object covering:

  • Messages — counts of sent, delivered, read, failed, by direction (inbound / outbound), grouped by group_by.
  • Contacts — totals (active, opted-in, opted-out), plus net new in the window.
  • Delivery — overall delivery rate, read rate, failure rate.
  • Broadcasts — the last few completed broadcasts in the window with their stats.

Use it to drive the Performance Report prompt or to feed your own BI pipeline.