Skip to main content
Glama

Google Ads & Meta Ads

Meta: Get Dataset Quality

meta_get_dataset_quality
Read-onlyIdempotent

Event Match Quality (EMQ) and Conversions API health for one dataset (Meta pixel) the user's connected ad account uses, from Meta's Dataset Quality API. Per web event: EMQ score (0–10), coverage of each match key (email, phone, IP, fbp, fbc, …), Meta's diagnostics with affected event counts and suggested fixes, how many browser events have a matching server (CAPI) event, deduplication key coverage, upload frequency and delay, and value/currency issues. Values are Meta's own; events without server data omit those blocks. Use for "why is my EMQ low?" or "is my CAPI working?". Get dataset_id from meta_list_datasets. Read-only.

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": {
      "dataset_id": "<dataset_id>"
    },
    "name": "meta_get_dataset_quality"
  }
}

Input Schema

NameRequiredDescriptionDefault
agent_nameNoOptional: only count events one Conversions API integration sent, by its lowercase partner_agent value. Omit to include every sender.
dataset_idYesDataset (pixel) id, from meta_list_datasets. Must be one the ad account uses.
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
webYesWeb events as Meta returns them: event_name, event_match_quality{composite_score, match_key_feedback, diagnostics}, acr, event_coverage, dedupe_key_feedback, data_freshness, event_delay, value_diagnostics. Blocks Meta has no data for are absent.
noteNoPresent when Meta refused the read: why, and who can fix it.
agentNameNoPresent when the read was filtered to one CAPI sender.
datasetIdYesDataset (pixel) read.
adAccountIdYesAd account read.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint, destructiveHint=false, so safety is covered; the description adds genuinely new behavior: values are Meta's own, and events lacking server data omit those result blocks, which prevents the agent misreading missing sections as zeros. It does not discuss rate limits or latency, so not 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.

Conciseness5/5

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

Front-loaded with the resource and purpose, then the enumerated payload, then the use cases and the id prerequisite. Dense but every clause carries information; there is no filler and nothing repeated from the schema.

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

Completeness4/5

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

With an output schema present, return values needn't be explained, yet the description still characterizes them and flags the partial-data caveat. For a read-only diagnostic tool this is essentially complete; only the absence of any note on result size or scope of the ad_account_id default is a minor gap.

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

Parameters3/5

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

Schema description coverage is 100%, so all three parameters (including agent_name's partner_agent filtering) are already documented in the schema. The description only repeats the dataset_id sourcing hint from meta_list_datasets and adds no syntax or format detail beyond the structured fields — baseline 3.

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?

Names a specific verb+resource ("Event Match Quality (EMQ) and Conversions API health for one dataset") and enumerates the exact contents returned: EMQ score 0–10, match-key coverage, diagnostics with affected event counts, browser/server match rates, dedup key coverage, upload frequency/delay, value/currency issues. This is clearly distinguishable from analytics siblings like meta_get_insights.

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

Usage Guidelines4/5

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

Gives concrete intent triggers ("why is my EMQ low?" / "is my CAPI working?") and routes the agent to meta_list_datasets for the required dataset_id. It stops short of stating when NOT to use it (e.g., vs. meta_get_delivery_issues or account-level health tools), so it is clear context without explicit exclusions.

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