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

google-ad-manager-mcp

by Jakob-Peters

gam_targeting_values

Read-onlyIdempotent

Lists and searches values under a specified custom targeting key, resolving value names to IDs for forecast custom_targeting and key-value report filters.

Instructions

MODE: read-only. UI: Inventory → Key-values. List/search the values under ONE custom targeting key (key_id required — the GAM API is key-scoped; big keys hold 100k+ values, so always search or paginate). OUTPUT: value rows (id, code, display name, matchType, status); ids feed forecast custom_targeting and key-value report filters. WHEN TO USE: resolving value names→ids for a known key (get key_id from gam_targeting_keys first).

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": {
      "key_id": "<key_id>"
    },
    "name": "gam_targeting_values"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNoDefault 50.
key_idYesThe custom targeting key id (from gam_targeting_keys).
searchNoSubstring match on value code (adTagName) or display name.
page_tokenNoContinue a previous listing.
network_codeNo

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 declare readOnly, idempotent, non-destructive and open-world, so the description is not carrying the safety burden. It adds real operational context beyond them: big keys hold 100k+ values, forcing search or pagination, and it enumerates the returned row fields since no output schema exists. It stops short of auth/network requirements, keeping it at 4.

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 with labeled sections (MODE, UI, OUTPUT, WHEN TO USE) and no filler sentences. Minor redundancy: 'MODE: read-only' restates the readOnlyHint annotation, and the key_id requirement is stated in both prose and schema.

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 no output schema, the description supplies the return shape (id, code, display name, matchType, status) and even where those ids are consumed (forecast custom_targeting, key-value report filters). Combined with the key_id prerequisite and pagination advice, an agent has everything needed to call it correctly.

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 80%, so the baseline is 3. The description still adds meaning by insisting key_id is required and explaining why (key-scoped API) and by tying search/pagination to the scale problem, which motivates the search and page_token parameters beyond their schema text.

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 values under ONE custom targeting key') plus the hard scope constraint that the GAM API is key-scoped. It distinguishes itself from the sibling gam_targeting_keys by explaining the dependency rather than duplicating its role.

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?

An explicit 'WHEN TO USE' clause names the job (resolving value names to ids for a known key) and the prerequisite (get key_id from gam_targeting_keys first). It also gives operational guidance ('always search or paginate') for large keys, so the agent knows both when and how to call it.

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