Skip to main content
Glama

Google Ads & Meta Ads

Meta: List Datasets

meta_list_datasets
Read-onlyIdempotent

Check 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

NameRequiredDescriptionDefault
daysNoWith dataset_id: how many days back to count, 1–7 (default 7).
dataset_idNoOne dataset (pixel) id: return its event counts.
event_sourceNoWith dataset_id: WEB_ONLY counts browser (pixel) events only, SERVER_ONLY Conversions API events only. Omit for both.
ad_account_idNoMeta 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

NameRequiredDescriptionDefault
daysNoOnly with dataset_id: window counted, in days.
noteNoOnly with dataset_id, when Meta refuses the event counts: why, and who can fix it.
datasetsYesDatasets as Meta returns them: id, name, creation_time, last_fired_time, is_unavailable. With dataset_id, the one dataset.
adAccountIdYesAd account read.
eventCountsNoOnly with dataset_id: events received in the window, most frequent first.
eventSourceNoOnly with dataset_id and event_source: WEB_ONLY or SERVER_ONLY, the source counted.
customConversionsNoOnly without dataset_id: custom conversions — id, name, custom_event_type, rule, last_fired_time, is_archived, pixel.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.6/5.0
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations already declare readOnlyHint=true and idempotentHint=true, and the description adds real behavioral context beyond them: the 1–7 day retention limit ('Meta keeps no older counts'), what each event_source value includes/omits, and what is returned in each mode. It does not discuss rate limits, required permissions, or pagination on the dataset list, which keeps it below a 5.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

It is front-loaded with the highest-value framing ('Check conversion tracking') and then walks the two modes in order, with no filler sentences. It is a single dense paragraph with stacked clauses, which is slightly harder to scan than a bulleted mode split would be, but every sentence carries information.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a 4-parameter, zero-required, read-only tool with an output schema, the description covers mode selection, the retention constraint, enum semantics, sibling routing, and the account-selection fallback. Nothing an agent needs to invoke it correctly is missing, and return-value detail is rightly left to the output schema.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so baseline would be 3; the description earns more by explaining the days range's hard ceiling, the event_source semantics including the omitted-means-both default, and the ad_account_id fallback behavior (only account or stored default). This meaningfully reinforces the schema rather than restating it.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description names a specific verb and resource and then splits the tool's two modes explicitly: without dataset_id it lists datasets (Meta pixels) plus custom conversions with their rules; with dataset_id it returns per-event counts. It also explicitly distinguishes itself from meta_get_dataset_quality, so an agent can route correctly without opening either schema.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

It gives an explicit when-to-use rule for each mode (omit dataset_id to enumerate available datasets, supply it to count events) and names the alternative tool plus the condition that selects it (Event Match Quality and CAPI coverage → meta_get_dataset_quality). The only small gap is that it doesn't say when to prefer this over a sibling list tool for other accounts, which is out of scope for this definition.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources