Skip to main content
Glama
google-ad-manager-mcp

google-ad-manager-mcp

by Jakob-Peters

gam_diagnose_line_item

Read-onlyIdempotent

Diagnose why a Google Ad Manager line item is not delivering by checking status, flight, approval, creatives, targeting, pacing, and recent changes, then returning a verdict and likely causes.

Instructions

MODE: read-only, composite. UI: Delivery → Delivery tools. One-call troubleshooting of 'why is this line item not delivering (properly)': lifecycle status, flight window, order approval state, creative associations + expected-size coverage, targeting presence, pacing verdict, and who changed it in the last 7 days. Pass include_forecast=true to also run an inventory/contention forecast (costs forecast quota; READY/DELIVERING/DELIVERY_EXTENDED items only). OUTPUT: verdict (BROKEN = a cannot-serve blocker exists, IMPAIRED = warnings only, HEALTHY) + likely_causes + per-check detail + checks_skipped when sub-lookups failed. WHEN TO USE: any 'line item X is not serving / under-delivering, why?' question. For deeper follow-ups use gam_get_line_item, gam_line_item_creatives, gam_check_pacing, gam_change_history.

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": {
      "line_item_id": "<line_item_id>"
    },
    "name": "gam_diagnose_line_item"
  }
}

Input Schema

NameRequiredDescriptionDefault
line_item_idYesThe GAM line item id.
network_codeNo
include_forecastNoAlso run a contention forecast (default false — uses forecast quota).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.6/5.0
Behavior4/5

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

Annotations already cover read-only/idempotent safety, but the description adds real operational context beyond them: it is a composite that issues multiple sub-lookups, sub-lookups can fail (checks_skipped), and include_forecast consumes forecast quota and is restricted to certain lifecycle states. It stops short of noting rate limits or how long a full diagnosis takes, 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?

Well front-loaded with MODE, purpose, opt-in flag, OUTPUT, and WHEN TO USE in that order, and the verdict semantics (BROKEN/IMPAIRED/HEALTHY) are stated compactly. The 'UI: Delivery → Delivery tools' navigation aside is the one element that doesn't help an agent invoke the 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?

With no output schema, the description carries the return-value burden and does so: it names the verdict field and its three states, likely_causes, per-check detail, and the checks_skipped degradation signal. Combined with the enumerated checks and the forecast caveat, an agent has everything needed to call and interpret it.

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 67% and the description meaningfully enriches include_forecast beyond its terse schema text by explaining the quota cost and the lifecycle eligibility restriction. line_item_id is self-evident from the schema, but network_code is explained in neither place, leaving one gap.

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?

Opens with a specific verb+resource ('One-call troubleshooting of why is this line item not delivering') and enumerates exactly what is checked: lifecycle status, flight window, order approval state, creative associations, targeting presence, pacing, and recent changes. It is clearly distinguishable from sibling getters like gam_get_line_item, which it explicitly positions as a deeper follow-up.

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?

Gives an explicit trigger phrase ('any line item X is not serving / under-delivering, why?') and names four specific alternatives for deeper follow-ups. It also states the exact condition for the optional forecast path (costs quota; only READY/DELIVERING/DELIVERY_EXTENDED items), so an agent knows both when to use and when not to.

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