Skip to main content
Glama

analysis_delivery_collapse_diagnose

Diagnose why campaign delivery collapsed by overlaying change history, then use elimination-ladder evidence to find the most likely cause and list open questions.

Instructions

Diagnose one collapsed campaign: overlay a change feed on its daily delivery to answer 'what changed immediately before the cliff?', then fold in whatever elimination-ladder evidence you have already gathered (ad_approval_policy, billing, budget, bid_competitiveness, targeting_and_exclusions, learning_state, campaign_flight_dates). Returns the timeline, the changes in the days before the cliff, the checks that passed, the most likely cause WITH its evidence when one is implicated, and — always — the questions that remain open plus the standing limitations of what any read API can answer. It reports most_likely_cause=null / confidence=undetermined rather than guessing: in the incident this was built from, every check passed and the cause was still never identified. Read-only; gather evidence with the per-platform tools it names in next_checks and call it again.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
rowsYesDay-grain delivery rows, one per (campaign, day), covering at least the last ~30 days. Any platform that can produce this shape gets the same detection: hosted connectors (tiktok_ads), official-MCP bridges (Amazon), and plugin platforms alike.
as_ofNoTreat this YYYY-MM-DD date as 'today'.
changesNoChange events to overlay — from google_ads_change_history_list, STATE.json's action_log, or a platform's own feed.
evidenceNoElimination-ladder results you already gathered. Only report what you actually checked: an unsupplied step is returned as an open question, which is the honest state.
platformYesPlatform key the rows came from.
campaign_idYesWhich campaign in `rows` to diagnose.
timeline_daysNoHow many trailing days of delivery the timeline covers (default 21).
change_lookback_daysNoHow many days before the cliff count as 'immediately before' for changes_before_cliff (default 3). Widen it for a cause with a delayed effect — a billing hold or a policy review can stop delivery days after the change that caused it. Changes outside the window still appear on the timeline.
Behavior5/5

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

With no annotations, the description carries the full burden. It transparently discloses that the tool is read-only, may return most_likely_cause=null when no cause is implicated, always reports open questions and limitations, and shares a concrete incident where every check passed yet the cause was never found. This is unusually honest and complete for behavioral disclosure.

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?

The description is longer than two sentences but every sentence adds value: purpose, method, outputs, behavioral caveats, and next steps. It is front-loaded with the main action. A slightly tighter structure could be imagined, but the density is warranted for a complex diagnosis tool.

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?

Given no output schema, the description adequately explains return values (timeline, changes, checks, cause with evidence, open questions, limitations). It also situates the tool across platforms and explains how to use follow-up evidence tools. This is complete for the tool's complexity.

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 description coverage is 100%, so the baseline is 3. The description adds workflow context by explaining how the evidence parameter maps to elimination-ladder checks, how changes overlays delivery, and how timeline_days/change_lookback_days control the analysis window. This goes beyond pure schema definitions, justifying a 4.

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 opens with a specific verb and resource: 'Diagnose one collapsed campaign.' It clearly defines the method (overlay change feed on delivery, fold in elimination-ladder evidence) and distinguishes itself from siblings like analysis_delivery_collapse_check by focusing on diagnosis of a single campaign with a causal analysis approach.

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?

The description gives clear context: use after gathering elimination-ladder evidence, and calls for read-only diagnosis. It explicitly instructs to 'gather evidence with the per-platform tools it names in next_checks and call it again.' However, it does not explicitly mention when not to use it or contrast with sibling diagnostic tools like analysis_delivery_collapse_check, so it stops short of a 5.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/logly/mureo'

If you have feedback or need assistance with the MCP directory API, please join our Discord server