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

google-ad-manager-mcp

by Jakob-Peters

gam_forecast_availability

Read-onlyIdempotent

Forecast available, matched, and possible impressions for a prospective Google Ad Manager booking by dates, sizes, and targeting, with goal achievability checks.

Instructions

MODE: read-only compute (creates no entities). UI: Inventory → Traffic forecast. Availability forecast for a PROSPECTIVE booking: how many impressions are available/matched/possible for given dates, sizes and targeting — the pre-booking inventory check. Targeting SHOULD be explicit (ad units and/or placements; optional geo, key-values, audience segments, device categories). If NO targeting is given at all, the forecast falls back to the network root ad unit (run-of-network) and the response carries defaults_applied. Simulates a CPM line item with a LIFETIME impressions goal. Self-heals invalid targeting ids (stale key-values, untargetable geo) by removing them, retrying, and reporting what was removed under selfHealed. OUTPUT: available/matched/possible/delivered/reserved units, goal achievability when goal_impressions is set, optional contending line items, per-criteria and per-size breakdowns. NOT the same as gam_forecast_existing_line_item (that one forecasts an EXISTING line item by id).

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>",
      "sizes": "<sizes>"
    },
    "name": "gam_forecast_availability"
  }
}

Input Schema

NameRequiredDescriptionDefault
sizesYesCreative sizes as [width, height] pairs, e.g. [[970, 250],[300,250]].
end_dateYes"YYYY-MM-DD", inclusive (ends 23:59:59 network time).
start_dateYes"YYYY-MM-DD" or "now" (today starts immediately).
network_codeNoDefault: GOOGLE_AD_MANAGER_NETWORK_CODE. GAM_TEST_NETWORK_CODE is also allowed.
frequency_capNo
line_item_typeNoDefault STANDARD.
custom_targetingNoKey-value targeting criteria (ANDed with the other criteria).
goal_impressionsNoBooking goal. Omit for max-availability.
device_categoriesNo
per_size_breakdownNoPer-creative-size availability breakdown.
audience_segment_idsNoAudience segment ids (9-10 digits).
excluded_ad_unit_idsNo
targeted_ad_unit_idsNoGAM ad unit ids to target (descendants included).
targeted_placement_idsNoGAM placement ids.
geo_excluded_location_idsNo
geo_targeted_location_idsNoGeo criteria ids (gam_geo_lookup).
include_targeting_breakdownNoPer-criteria available/matched breakdown.
include_contending_line_itemsNoList line items competing for this inventory.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.6/5.0
Behavior4/5

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

Annotations already establish read-only, idempotent, non-destructive, open-world behavior, and the description reinforces rather than repeats this by explaining the compute is entity-free. It goes beyond the annotations by disclosing two non-obvious behaviors: the run-of-network fallback flagged via defaults_applied, and self-healing that strips invalid targeting ids, retries, and reports removals under selfHealed. It stops short of describing latency or rate limits, which keeps it below 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?

It is a single dense block, but it is front-loaded with MODE and the core purpose before branching into fallback, simulation, self-healing, and output details. Capitalized emphasis (PROSPECTIVE, SHOULD, NOT the same as) aids scanning, though the paragraph is long enough that an agent must read past several clauses to reach the sibling exclusion, which is placed at the end.

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 18 parameters, nested frequency_cap and custom_targeting objects, and no output schema, the description carries the return-value burden itself and does so by enumerating available/matched/possible/delivered/reserved units, goal achievability, contending line items, and per-criteria/per-size breakdowns, mapping them to the boolean switches. It also covers the fallback and self-heal edge cases that would otherwise confuse an agent interpreting the response.

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 78%, so most parameters are already documented, but the description adds decision-level meaning the schema does not: goal_impressions drives a simulated CPM lifetime-goal line item and can be omitted for max-availability, and targeting categories are grouped as required-core (ad units/placements) versus optional (geo, key-values, audiences, devices). It does not explain the interplay of excluded_ad_unit_ids, frequency_cap, or contending line items in any depth, so it is not a 5.

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 ('availability forecast for a PROSPECTIVE booking') and defines the concrete question it answers: available/matched/possible impressions for dates, sizes, and targeting. It explicitly names the sibling it is not (gam_forecast_existing_line_item) and explains the difference, so an agent can select between them 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?

Frames the tool as the pre-booking inventory check and contrasts it directly with forecasting an existing line item by id. It also gives conditional guidance: targeting SHOULD be explicit, and if no targeting is supplied the call falls back to the network root ad unit with defaults_applied in the response, which tells the agent what will happen when it omits arguments.

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