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

google-ad-manager-mcp

by Jakob-Peters

gam_diagnose_order

Read-onlyIdempotent

Diagnose why a Google Ad Manager order is under-delivering by checking its lifecycle, line-item pacing, missing creatives, and recent changes, then returning a health verdict and likely causes.

Instructions

MODE: read-only, composite. UI: Delivery → Orders / Delivery tools. One-call troubleshooting of a whole ORDER: approval/lifecycle state, per-line-item pacing verdict summary (AHEAD/ON_PACE/BEHIND/AT_RISK/…), missing-creatives count, the worst problem items, and who changed the order in the last 7 days. OUTPUT: verdict (BROKEN = the order itself cannot serve, IMPAIRED = items under-delivering or missing creatives, HEALTHY) + likely_causes + summaries. WHEN TO USE: 'why is campaign/order X under-delivering', order health checks. Per-line-item depth: gam_diagnose_line_item.

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": {
      "order_id": "<order_id>"
    },
    "name": "gam_diagnose_order"
  }
}

Input Schema

NameRequiredDescriptionDefault
order_idYesThe GAM order id.
network_codeNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true, idempotentHint=true, destructiveHint=false, and openWorldHint=true, so the safety profile is covered. The description adds real context beyond that: the exact diagnostic taxonomy (BROKEN vs IMPAIRED vs HEALTHY), the dimension set evaluated, and the 7-day lookback for change attribution. It does not discuss latency, cost, or network_code requirements, but it does not contradict annotations.

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?

Front-loaded with MODE/UI/OUTPUT/WHEN TO USE labels, then dense telegraphic content; the verdict taxonomy is explained compactly. Some phrasing is cluttered ('AHEAD/ON_PACE/BEHIND/AT_RISK/…' with a trailing ellipsis) and the UI breadcrumb is only moderately useful, but overall it is efficient for the amount of diagnostic detail conveyed.

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?

For a read-only composite diagnostic with no output schema, the description tells the agent what dimensions are inspected, what verdict buckets to expect, and the change-lookback window. It does not explain how to interpret the likely_causes field or how to drill down beyond a sibling pointer, which is a modest gap rather than a blocking one.

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 coverage is only 50%: order_id is documented in the schema, but network_code has no description in either location. The description implies the order scope via 'whole ORDER' and names GAM, but adds no format or network-context guidance for network_code. Baseline 3 for schema-heavy definitions is not quite reached, but the description compensates partially by clarifying scope.

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?

States a specific verb and resource ('One-call troubleshooting of a whole ORDER') and enumerates exactly what the call returns: approval/lifecycle state, per-line-item pacing verdicts, missing-creatives count, worst problem items, and recent change actors. It also names the narrower sibling (gam_diagnose_line_item) for per-item depth, so an agent can distinguish it from gam_diagnose_line_item and gam_get_order without opening either schema.

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?

Explicitly scopes when to use it: "'why is campaign/order X under-delivering', order health checks," and explicitly routes to gam_diagnose_line_item when line-item-level depth is needed. The only minor gap is that it does not say when to use gam_get_order instead for plain retrieval, but this is a narrower sibling, not a competing alternative.

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