Skip to main content
Glama

analysis_delivery_collapse_check

Detect campaigns whose impressions suddenly drop while status remains active, using a same-weekday median baseline to avoid false weekend alerts. Works with any platform's day-grain delivery report.

Instructions

Detect delivery collapse: campaigns whose impressions fell off a cliff while their status still says they should be serving. The inverse of google_ads_cost_increase_investigate, and the scheduled detector /daily-check runs. Feed it a day-grain delivery report (one row per campaign per day, ~30+ days) for ANY platform — hosted connectors, bridges and plugins included. The baseline is the median of the SAME WEEKDAY from those rows, so weekend dips do not fire, and it never reads action_log, so it works on accounts operated partly by hand. The current (partial) day is always excluded. Thresholds come from STRATEGY.md ## Guardrails (delivery_collapse_drop_pct, delivery_collapse_consecutive_days, delivery_collapse_min_baseline_impressions, delivery_collapse_baseline_days) and default to a 90% drop against a 28-day baseline. Read-only.

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'; days on or after it are partial and are not evaluated. Defaults to the server's current date.
platformYesPlatform key the rows came from (google_ads, meta_ads, tiktok_ads, plugin:<distribution>:<name>, …). Reported back on every signal.
reported_throughNoYYYY-MM-DD: the last date the platform has actually REPORTED delivery for. Optional. Without it the tool infers the frontier as the latest date appearing anywhere in `rows`, which assumes every campaign in `rows` was fetched in one request and finalises at the same time. Set it when that does not hold — rows stitched together from several fetches, or a connector whose campaigns finalise at different times — using the OLDEST per-campaign last date you trust. Do NOT pass the end of the range you requested: that asserts coverage the platform never confirmed and turns reporting lag into a false collapse.
Behavior5/5

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

With no annotations provided, the description carries the full transparency burden and delivers: it declares 'Read-only', explains the same-weekday median baseline to prevent weekend false positives, states the current partial day is always excluded, notes it never reads action_log, and cites STRATEGY.md guardrail thresholds with defaults. This goes well beyond a typical one-line tool description.

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?

The description is long but information-dense and front-loaded with the core action. Every clause earns its place (baseline weekday logic, action_log independence, current-day exclusion, threshold defaults, read-only), and the final 'Read-only' is a clear safety capstone.

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?

Given the algorithm's complexity and the absence of an output schema, the description thoroughly covers input requirements, interpretation rules, and configuration sources. The one gap is the return shape — it does not describe what a result/signal looks like — but the detection semantics, platform-agnostic intent, and edge-case handling are complete enough for correct invocation.

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% with rich per-field descriptions, so the baseline is 3. The tool description adds beyond-schema value by explaining the ~30+ day row requirement, baseline algorithm, threshold parameter names/defaults, and that the current day is excluded — all helpful context for choosing and populating rows/as_of. It does not duplicate the schema's per-field semantics.

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 opening 'Detect delivery collapse: campaigns whose impressions fell off a cliff while their status still says they should be serving' gives a specific verb, resource, and precise definition. It explicitly separates itself from google_ads_cost_increase_investigate ('inverse of'), making its purpose unmistakable.

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 clearly states when to use it ('scheduled detector /daily-check runs'), what input to feed ('day-grain delivery report... for ANY platform'), and names a related tool it contrasts with. It does not explicitly exclude alternative analyze/diagnose siblings or state when NOT to use it, so usage direction is strong but not exhaustive.

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