Skip to main content
Glama

Diagnose account health

meta_diagnose
Read-onlyIdempotent

delivery_issues: disapproved, pending-review and with-issues campaigns, ad sets and ads (incl. flagged ads under paused parents) with Meta's messages. recommendations: Meta's own (behind Opportunity Score) with the objects and estimated lift. pixel_health: event volumes (browser vs server) for 1-7 days, stale events, Event Match Quality. catalog_health: feed uploads and errors, top item issues, review and availability counts.

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": {
      "kind": "<kind>"
    },
    "name": "meta_diagnose"
  }
}

Input Schema

NameRequiredDescriptionDefault
daysNoOnly pixel_health
kindYes
afterNoOnly delivery_issues. Cursor for one level; needs level
levelNoOnly delivery_issuesall
limitNodelivery_issues: per level, default 50
pixel_idNoRequired for pixel_health. A string, never a number
account_idNoe.g. act_1234567890

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

B3.3/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint, openWorldHint and destructiveHint=false, so the safety profile is covered and the bar is lower. The description adds useful constraints beyond that: the 1-7 day event window, per-level pagination cursors, and that recommendations sit behind Opportunity Score. It does not, however, say anything about result size, latency, or that pixel_health requires a pixel id to succeed.

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?

Four dense, front-loaded clauses with zero filler; every sentence maps to one mode and its payload. The telegraphic label-colon style is efficient but slightly cryptic for a reader with no preamble, which keeps it off a 5.

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

Completeness2/5

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

There is no output schema, so the description must carry the full burden of describing return values, and it does so only in headline terms per mode. The serious gap is that it advertises a 'catalog_health' mode that the kind enum does not accept, so an agent following the description will issue an invalid call; required account_id and pixel_id preconditions are also left silent for a 7-parameter tool.

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?

With 86% schema description coverage the schema already documents days, after, level, limit and pixel_id, so baseline is 3. The description does add cross-mode meaning the schema cannot express, notably that 'days' applies only to pixel_health and that recommendations are Meta's own behind Opportunity Score. Against that, it never mentions account_id or limit, and its stated mode list diverges from the enum, which undercuts the value it adds.

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

Purpose4/5

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

The description enumerates each diagnostic mode and the specific signals it surfaces (disapproved/pending-review objects with Meta's messages, Opportunity Score recommendations with estimated lift, browser vs server event volumes, EMQ), which clearly distinguishes it from generic readers like meta_get or meta_insights. It lacks a single lead-in sentence naming the overall purpose, so it reads as a fragment list rather than a stated function, but the resource and scope are unmistakable.

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

Usage Guidelines3/5

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

The per-kind breakdown implicitly tells the agent which mode answers which question, which is real if indirect routing help. However, there is no explicit when-to-use or when-not guidance against the many siblings (get_alerts, meta_insights, get_change_history), and no statement of prerequisites such as required permissions or which account must be targeted.

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.