mureo_analytics_run
Run read-only analytics diagnostics (anomaly detection, performance diagnosis, creative audit, budget efficiency, delivery collapse) for a platform, returning structured results.
Instructions
Run one capability of the analytics module registered for a platform and return its structured result. Use after mureo_analytics_modules_list confirms the platform advertises the capability. capability is one of detect_anomalies, diagnose_performance, audit_creative, analyze_budget_efficiency, detect_delivery_collapse. detect_delivery_collapse (#546) flags campaigns whose delivery collapsed while their status still says they should be serving; its result carries status=ok | no_credentials | data_unavailable — only status=ok means an empty signals list is an all-clear. window_days applies only to detect_anomalies (trailing window, default 7); scope applies only to diagnose_performance (account | campaign | deep, default account); both are ignored for the other capabilities (detect_delivery_collapse uses its own multi-week history window, because a same-weekday baseline needs weeks of daily data). Read-only diagnostics — never mutates the ad account. Returns status=ok with a result payload, or a structured status (no_analytics_module / capability_not_available / error) that the caller reports without failing the workflow.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| scope | No | Diagnosis depth for diagnose_performance (default account). Ignored by other capabilities. | |
| platform | Yes | Canonical platform key (e.g. google_ads, meta_ads, or plugin:<distribution>:<registry_name> for a plugin platform). Pass the `platform` value mureo_analytics_modules_list reported — the same key STATE.json platforms uses. The older plugin:<distribution> form is still accepted. | |
| account_id | Yes | Account identifier passed to the module. | |
| capability | Yes | Which analytics method to invoke. | |
| window_days | No | Trailing window for detect_anomalies (default 7). Ignored by other capabilities. |