x ads get active entities
x_ads_get_active_entitiesLists which ads entities had metrics change within a specific time window, so you can request account stats only for entities with activity.
Instructions
List which ads entities had metrics change in a time window (use before requesting account stats) Native X fields and pagination are preserved; monetary fields ending in _micro are millionths of the account currency.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"account_id": "<account_id>",
"end_time": "<end_time>",
"entity": "<entity>",
"start_time": "<start_time>"
},
"name": "x_ads_get_active_entities"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| entity | Yes | Entity type to check for metric activity. | |
| end_time | Yes | ISO 8601 end of the activity window (exclusive); must be a whole hour (minutes and seconds 0). | |
| account_id | Yes | X Ads account ID from X_ADS_ACCOUNT_IDS. | |
| start_time | Yes | ISO 8601 start of the activity window; must be a whole hour (minutes and seconds 0). | |
| campaign_ids | No | Comma-separated campaign IDs to scope the check to (max 200; exclusive with the other ids filters). | |
| line_item_ids | No | Comma-separated line item IDs to scope the check to (max 200; exclusive with the other ids filters). | |
| funding_instrument_ids | No | Comma-separated funding instrument IDs to scope the check to (max 200; exclusive with the other i... |
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. |