x ads get account stats
x_ads_get_account_statsRetrieve synchronous analytics for X ads accounts, including impressions, engagements, and spend, with configurable entity, granularity, placement, and time range.
Instructions
Get synchronous analytics (impressions, engagements, spend) for an ads account Native X fields and pagination are preserved; monetary fields ending in _micro are millionths of the account currency.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| entity | Yes | Entity type to fetch metrics for. | |
| end_time | Yes | ISO 8601 end of the metrics window (exclusive). | |
| placement | Yes | Placement to scope the metrics to. | |
| account_id | Yes | X Ads account ID from X_ADS_ACCOUNT_IDS. | |
| entity_ids | Yes | Comma-separated IDs of the entities to fetch metrics for (max 20). | |
| start_time | Yes | ISO 8601 start of the metrics window, e.g. 2026-07-01T00:00:00Z. | |
| granularity | Yes | Granularity of the returned time series. | |
| metric_groups | Yes | Comma-separated metric groups, e.g. ENGAGEMENT,BILLING,VIDEO (max 10; MOBILE_CONVERSION groups mu... |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes | Original tool result: parsed JSON when the text is JSON, otherwise the text or multiple MCP content blocks. Provider fields depend on the selected query. |