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

google-ad-manager-mcp

by Jakob-Peters

gam_get_line_item

Read-onlyIdempotent

Retrieve full details for one Google Ad Manager line item, including delivery stats, targeting, and frequency caps, to troubleshoot pacing or verify configuration.

Instructions

MODE: read-only. UI: Delivery → Line Items. Everything about ONE line item: identity, flight dates, cost + rate, goal, priority, creative placeholders (expected sizes), frequency caps, live delivered stats + 7-day daily delivery series + delivery indicator (expected vs actual %), labels, custom fields, notes — and the full targeting object (include_targeting=false to trim). OUTPUT: one detailed record. WHEN TO USE: troubleshooting ground truth for a specific line item; inputs for pacing analysis. NOT the same as gam_find_line_items (search) or gam_forecast_existing_line_item (future availability).

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_get_line_item"
  }
}

Input Schema

NameRequiredDescriptionDefault
line_item_idYesThe GAM line item id.
network_codeNo
include_targetingNoInclude the full targeting object (default true).

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, idempotentHint, openWorldHint and destructiveHint=false, so the safety profile is covered; the description reinforces read-only mode and adds the useful payload-shaping behavior ('include_targeting=false to trim'). It also gives the UI path (Delivery → Line Items) for orientation. It does not mention permissions, rate limits, or error behavior, so it stops 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.

Conciseness4/5

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

Front-loaded with mode, location, scope, then OUTPUT, then WHEN TO USE — a sensible order with no filler sentences. The long field enumeration is dense but each item conveys what data is retrievable, which is the core value proposition of a 'get everything' tool.

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?

With no output schema, the description carries the burden of describing returns and does so by enumerating the record contents and stating 'OUTPUT: one detailed record'. For a read tool with rich annotations this is nearly complete; only the undocumented network_code parameter and any error/empty-result behavior remain unaddressed.

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 67% and the description only elaborates on include_targeting ('the full targeting object', trimmable via false), which the schema already states. The network_code parameter is undocumented in both the schema and the description, so the description does not fully compensate for the coverage 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?

States a specific verb and resource ('Everything about ONE line item') and then enumerates exactly what is returned: identity, flight dates, cost + rate, goal, priority, creative placeholders, frequency caps, delivery stats, labels, custom fields, notes, and targeting. It explicitly contrasts with gam_find_line_items (search) and gam_forecast_existing_line_item (future availability), so an agent can select it without opening sibling 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?

Provides an explicit WHEN TO USE clause ('troubleshooting ground truth for a specific line item; inputs for pacing analysis') plus a NOT-the-same-as clause naming two alternatives with the condition that distinguishes each. Both positive selection criteria and exclusions are present.

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