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

google-ad-manager-mcp

by Jakob-Peters

gam_traffic_data

Read-onlyIdempotent

Retrieves historical and forecasted daily traffic for an inventory segment plus impressions assigned to reservations, enabling sell-through checks and inventory planning.

Instructions

MODE: read-only compute (forecast quota). UI: Traffic explorer / Traffic forecast. Historical AND forecasted DAILY traffic for a segment of inventory, plus the portion already assigned to reservations — the sell-through / planning view: 'how much of this inventory do we have, how much is already sold, and what is coming?' Targeting is the same shape as gam_forecast_availability (ad units, placements, geo, key-values, audience segments, device categories); with no targeting it falls back to run-of-network and says so in defaults_applied. OUTPUT: three daily series (historical, forecasted, forecasted-assigned) each with values[], total and daily average, plus the overall date range. WHEN TO USE: inventory planning, sell-through checks, 'do we have room in November', trend questions that need BOTH past and future. For a specific bookable answer (can we sell X impressions) use gam_forecast_availability; for a booked line item use gam_forecast_existing_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": {
      "start_date": "<start_date>",
      "end_date": "<end_date>"
    },
    "name": "gam_traffic_data"
  }
}

Input Schema

NameRequiredDescriptionDefault
end_dateYesYYYY-MM-DD, inclusive.
start_dateYesYYYY-MM-DD. May be in the past — that is what returns history.
network_codeNo
custom_targetingNoKey-value targeting.
device_categoriesNo
audience_segment_idsNo
excluded_ad_unit_idsNo
targeted_ad_unit_idsNoAd unit ids (descendants included).
targeted_placement_idsNo
geo_excluded_location_idsNo
geo_targeted_location_idsNoGeo ids (gam_geo_lookup).

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 declare readOnlyHint/idempotentHint/destructiveHint=false, so safety is covered; the description goes further by disclosing the forecast-quota mode and the run-of-network fallback reported in defaults_applied. It also characterizes the return shape (three daily series with values[], total, daily average, overall date range). It stops short of stating quota consumption cost or pagination/row limits, which for a compute tool would be the remaining useful detail.

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?

Dense but front-loaded: mode, UI location, what it returns, then output shape, then when-to-use with alternatives. The embedded quoted question is slightly redundant with the sell-through framing, but nearly every clause carries operational information.

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 an 11-parameter compute tool with no output schema, the description supplies both the return structure and the targeting model, which is what an agent needs to call it correctly. Gaps are limited to a few under-specified filter parameters and any quota/cost implications.

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?

With only 45% schema coverage across 11 parameters, the description compensates by enumerating the targeting dimensions (ad units, placements, geo, key-values, audience segments, device categories) and by explaining the no-targeting fallback. It does not clarify network_code or the excluded_ad_unit_ids / geo_excluded_location_ids lists, so a couple of parameters remain defined only by their names.

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: historical AND forecasted DAILY traffic for an inventory segment, plus the portion assigned to reservations. The sell-through framing ('how much do we have, how much is sold, what is coming') makes the output intent unambiguous and separates it from pure-forecast siblings.

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?

Explicit WHEN TO USE list (inventory planning, sell-through checks, 'room in November', trend questions needing both past and future) paired with named alternatives: gam_forecast_availability for a bookable impression answer, gam_forecast_existing_line_item for a booked line item. Routing is fully determined.

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