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

google-ad-manager-mcp

by Jakob-Peters

gam_find_line_items

Read-onlyIdempotent

Search Google Ad Manager line items by name, order, status, type, cost type, missing creatives, external ID, or live date to support pacing and troubleshooting with compact delivery rows.

Instructions

MODE: read-only. UI: Delivery → Line Items. Search line items by name, order, status, type (STANDARD/SPONSORSHIP/PRICE_PRIORITY/AD_EXCHANGE/NETWORK/HOUSE/…), cost type (CPM/CPC/CPD/…), missing-creatives flag, external id, or live-on date. OUTPUT: compact rows — id, name, order id+name, type, status, costType + rate, priority, dates, goal, delivered counts (live stats, no report needed), missingCreatives. WHEN TO USE: finding line items for pacing/troubleshooting/forecast-by-id; 'all CPD sponsorships live this week'; 'line items missing creatives'. To search by advertiser: find their orders first (gam_find_orders), then filter by order_id here.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "gam_find_line_items"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNoDefault 50.
searchNoSubstring match on the line item name.
statusNo
order_idNoOnly line items in this order.
cost_typeNo
page_tokenNoContinue a previous listing.
external_idNo
live_on_dateNoYYYY-MM-DD — only line items whose flight covers this date (startTime ≤ date ≤ endTime).
network_codeNo
line_item_typeNoe.g. STANDARD, SPONSORSHIP, PRICE_PRIORITY, AD_EXCHANGE, NETWORK, HOUSE.
include_archivedNoDefault false.
missing_creativesNoOnly line items carrying GAM's missing-creatives flag. NOTE: programmatic and backfill types (PREFERRED_DEAL, PROGRAMMATIC_GUARANTEED, AD_EXCHANGE, ADSENSE, ADMOB) and CLICK_TRACKING carry this flag as normal steady state — their creatives arrive from the buyer at auction. Each row reports missingCreativesInformative; false means the flag is not evidence of a problem.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.7/5.0
Behavior4/5

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

Annotations already declare readOnlyHint/idempotent/openWorld, and the description reinforces read-only while adding genuinely non-obvious behavior: delivered counts are live stats requiring no separate report, and the missing-creatives flag is steady-state for programmatic/backfill/CLICK_TRACKING types. It does not discuss pagination behavior beyond the page_token parameter, keeping it short of 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.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Labeled sections (MODE, UI, OUTPUT, WHEN TO USE) front-load the critical facts, and each sentence carries information: filters, return row shape, use cases, and sibling routing. No filler or restated name/title padding.

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 12 optional parameters and no output schema, the description compensates by enumerating the returned row fields (id, name, order, type, status, costType+rate, priority, dates, goal, delivered counts, missingCreatives). An agent has enough to choose filters and interpret results without further documentation.

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 adds real meaning on top: it spells out valid line item types and cost types, describes the live-on-date filter intent, and gives an important interpretive caveat that missingCreativesInformative=false may not indicate a problem. It stays silent on limit, page_token, include_archived, and network_code, which are left to the schema.

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 (search line items) and enumerates the exact dimensions searchable by name, order, status, type, cost type, missing creatives, external id, and live-on date. It also names a sibling to route away to (gam_find_orders) for advertiser-based searches, so an agent can distinguish it from adjacent tools without reading schemas.

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?

A dedicated WHEN TO USE section gives concrete scenarios (pacing, troubleshooting, forecast-by-id) plus natural-language examples like 'all CPD sponsorships live this week'. It also states the exclusion path explicitly: to search by advertiser, find orders first with gam_find_orders, then filter by order_id here.

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