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

google-ad-manager-mcp

by Jakob-Peters

gam_get_ad_unit

Read-onlyIdempotent

Retrieves full details for one Ad Manager ad unit: sizes, status, labels, teams, refresh settings and parent path, plus a reverse lookup of placements that contain it.

Instructions

MODE: read-only. UI: Inventory → Ad units. Full detail for ONE ad unit: code, status, full parent path, supported sizes (with size type + environment), explicitly-targeted flag, applied/effective labels and label frequency caps, teams, refresh settings, AdSense flags — plus which PLACEMENTS contain it (reverse lookup). OUTPUT: one ad unit record. WHEN TO USE: 'what sizes does unit X support', 'which placements include it', label/frequency questions on a specific unit. For browsing the hierarchy use gam_ad_unit_tree.

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": {
      "ad_unit_id": "<ad_unit_id>"
    },
    "name": "gam_get_ad_unit"
  }
}

Input Schema

NameRequiredDescriptionDefault
ad_unit_idYesThe GAM ad unit id (gam_ad_unit_tree to find it).
network_codeNo
include_placementsNoAlso reverse-look-up containing placements (default true, one extra call).

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 readOnly, idempotent, non-destructive and open-world, so safety is covered; the description adds value beyond that by disclosing the cost model of include_placements ("one extra call") and the output cardinality ("one ad unit record"). It does not discuss rate limits, permission requirements, or error behavior for a nonexistent id, which keeps 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.

Conciseness4/5

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

Labeled structure (MODE / UI / OUTPUT / WHEN TO USE) front-loads scope and the routing decision, so an agent can parse it quickly. The field enumeration is dense but each item is a real capability; the UI breadcrumb is the only element of marginal value.

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 return-shape burden and handles it by listing the returned facets and record cardinality. The main residual gap is the undocumented network_code parameter, which neither schema nor description explains.

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 schema description for ad_unit_id plus include_placements is already fairly explicit (default true, extra call). The description reinforces the include_placements meaning via the reverse-lookup sentence but adds no syntax, format, or guidance for network_code, which is undocumented in both places.

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 ("Full detail for ONE ad unit") and enumerates the returned facets — code, status, parent path, sizes with size type/environment, targeting flag, labels and frequency caps, teams, refresh settings, AdSense flags. It also names the reverse-lookup behavior for placements and explicitly contrasts itself with gam_ad_unit_tree, which alone would be enough to separate it from the sibling.

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 block with concrete example questions ("what sizes does unit X support", "which placements include it", label/frequency questions) plus a named alternative for the browsing case (gam_ad_unit_tree). Both the select-this and choose-sibling-instead conditions are stated directly.

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