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

google-ad-manager-mcp

by Jakob-Peters

gam_targeting_keys

Read-onlyIdempotent

List and search custom targeting keys to resolve names or codes to IDs and check which keys are reportable for reporting.

Instructions

MODE: read-only. UI: Inventory → Key-values. List/search the network's custom targeting keys (key-values): id, code (adTagName), display name, type (PREDEFINED/FREEFORM), status, and REPORTABILITY. reportableType is GAM's own value: ON = usable via the KEY_VALUES_NAME dimension; CUSTOM_DIMENSION = usable as its OWN report dimension (CUSTOM_DIMENSION__VALUE, passing this key id to gam_run_report custom_dimension_key_ids); OFF = not in reports at all. reportableVia spells out which. value-level reporting. OUTPUT: key rows; ids feed gam_targeting_values, forecast custom_targeting, and key-value reporting. WHEN TO USE: resolving a key name/code to its id; checking which keys are reportable.

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

Input Schema

NameRequiredDescriptionDefault
limitNoDefault 50.
searchNoSubstring match on code (adTagName) or display name.
statusNo
page_tokenNoContinue a previous listing.
network_codeNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.9/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint, destructiveHint=false and openWorldHint, so the safety profile is covered and the description earns credit for adding domain behavior instead: the ON/CUSTOM_DIMENSION/OFF reportability semantics, the meaning of reportableVia, and the fact that ids are consumed by other tools. The duplicate "MODE: read-only" line is redundant with annotations but does not contradict them.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

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

It opens with mode and UI-location metadata, then buries the actual purpose after a dense block of reportability jargon, and contains a dangling fragment ("`reportableVia` spells out which. value-level reporting."). The content is largely useful but not front-loaded and not cleanly structured.

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 a read-only listing tool with five mostly optional parameters and no output schema, the description covers what a row contains and how reportability should be interpreted, which is enough to call it correctly. The main gap is pagination/limit behavior and the undocumented network_code parameter.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 60% and the description says nothing about the five input parameters; it spends its detail budget on output fields and reportability instead. network_code is undocumented in both places, and limit/page_token/status get no elaboration (e.g. pagination behavior) beyond the schema. At a mid coverage level the description should compensate and does not.

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 ("List/search the network's custom targeting keys") and immediately enumerates the returned fields (id, code, display name, type, status, reportableType). It also differentiates itself from gam_targeting_values by noting that key ids feed that tool, so an agent can place it among siblings without opening the schema.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

An explicit "WHEN TO USE" block names two concrete jobs: resolving a key name/code to its id and checking which keys are reportable, and the OUTPUT note explains downstream consumers (gam_targeting_values, forecast custom_targeting, key-value reporting). It stops short of stating when NOT to use it or naming an alternative to pick instead, so it is clear context rather than full routing guidance.

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