Meta: List Datasets
meta_list_datasetsCheck conversion tracking on the user's connected Meta ad account. Without dataset_id: lists the datasets (Meta pixels) the account can use, with when each last received an event, and the account's custom conversions with their rules. With dataset_id: counts of each event (PageView, Lead, Purchase, …) that dataset received over the last days days (1–7, Meta keeps no older counts); event_source WEB_ONLY counts only browser (pixel) events, SERVER_ONLY only Conversions API events, omitted both. For Event Match Quality and CAPI coverage use meta_get_dataset_quality. Read-only.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "meta_list_datasets"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| days | No | With dataset_id: how many days back to count, 1–7 (default 7). | |
| dataset_id | No | One dataset (pixel) id: return its event counts. | |
| event_source | No | With dataset_id: WEB_ONLY counts browser (pixel) events only, SERVER_ONLY Conversions API events only. Omit for both. | |
| ad_account_id | No | Meta ad account to read: act_ id or account name (from meta_list_ad_accounts). Pass it whenever the conversation is about a particular account; omitted, the only account or the stored default is used. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| days | No | Only with dataset_id: window counted, in days. | |
| note | No | Only with dataset_id, when Meta refuses the event counts: why, and who can fix it. | |
| datasets | Yes | Datasets as Meta returns them: id, name, creation_time, last_fired_time, is_unavailable. With dataset_id, the one dataset. | |
| adAccountId | Yes | Ad account read. | |
| eventCounts | No | Only with dataset_id: events received in the window, most frequent first. | |
| eventSource | No | Only with dataset_id and event_source: WEB_ONLY or SERVER_ONLY, the source counted. | |
| customConversions | No | Only without dataset_id: custom conversions — id, name, custom_event_type, rule, last_fired_time, is_archived, pixel. |