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

google-ad-manager-mcp

by Jakob-Peters

gam_ad_unit_sizes

Read-onlyIdempotent

List registered ad unit sizes on a Google Ad Manager network to validate dimensions before forecasting or creative work, with filters for browser or video player environment.

Instructions

MODE: read-only. UI: Inventory → Ad units (sizes). The network's registered ad unit sizes: width x height, size type (PIXEL/ASPECT_RATIO/INTERSTITIAL/IGNORED/NATIVE/FLUID/AUDIO), and environment (browser/video player). OUTPUT: distinct size rows (raise limit if truncated — there is no page continuation). WHEN TO USE: 'what sizes exist on this network', validating a size before forecasting or creative work. Per-unit sizes live on gam_get_ad_unit.

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

Input Schema

NameRequiredDescriptionDefault
limitNoDefault 200.
environmentNoOnly sizes for this environment.
network_codeNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.5/5.0
Behavior4/5

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

Annotations already cover read-only, idempotent, non-destructive semantics, but the description adds genuinely new behavioral facts: results are deduplicated ('distinct size rows') and there is no page continuation, so truncation must be fixed by raising `limit`. It stops short of noting result-size or cost implications of a large `limit`, and 'MODE: read-only' merely restates readOnlyHint.

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 labeled sections (MODE / UI / OUTPUT / WHEN TO USE) let an agent scan quickly, and each sentence carries information. The telegraphic 'UI: **Inventory → Ad units**' pointer is marginally useful but borders on filler for a headless caller.

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 correctly enumerates the returned fields and row granularity, and it covers the non-pagination truncation behavior an agent needs to call it correctly. The one gap is `network_code`, undocumented in both schema and prose, though it is largely self-evident.

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?

The schema documents two of three parameters (67% coverage), and the description adds operational meaning to `limit` by explaining that truncated output must be remedied by raising it rather than paginating. `environment` is only alluded to via the output description ('browser/video player'), and `network_code` is never mentioned, so the compensation is partial.

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 resource and its fields ('The network's registered ad unit sizes: width x height, size type ... environment'), and explicitly contrasts with the per-unit sibling: 'Per-unit sizes live on gam_get_ad_unit.' An agent can distinguish the network-wide inventory from the per-unit lookup 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?

Gives an explicit WHEN TO USE with two concrete scenarios ('what sizes exist on this network', validating a size before forecasting or creative work) and names the alternative tool for the per-unit case. Both the selection condition and the counter-case are present.

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