Skip to main content
Glama

ads_campaign_targeting_get

Read-onlyIdempotent

Get a Google Ads campaign's targeting: { locations, excluded_locations, languages, devices: [{ device, bid_modifier }], location_targeting_type }. Google Ads only; other networks answer 501.

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": {
      "campaign_id": "<campaign_id>"
    },
    "name": "ads_campaign_targeting_get"
  }
}

Input Schema

NameRequiredDescriptionDefault
campaign_idYesCampaign id: the Postproxy id (id field of a campaign), not the network's platform_id
profile_group_idNoProfile group hashid, to scope the call to one profile group. Usually not needed.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.9/5.0
Behavior4/5

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

Annotations already establish readOnly, idempotent, non-destructive and closed-world behavior, so the bar is lower. The description still adds real value beyond them by disclosing the payload shape and, notably, the failure mode (501 on non-Google Ads networks), which annotations cannot express.

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

Conciseness5/5

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

Two compact sentences, front-loaded with the returned structure and followed by the one caveat that matters. Every clause carries information; nothing is filler.

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?

There is no output schema, so the field enumeration in the description is exactly what an agent needs to know what comes back, and the network restriction prevents a guaranteed failure path. Nothing material is missing for a simple two-parameter read tool.

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

Parameters3/5

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

Schema description coverage is 100%, and the schema already explains that campaign_id is the Postproxy id rather than the network platform_id, and that profile_group_id is 'usually not needed.' The description adds nothing further about either parameter, so the baseline 3 applies.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The definition uses a specific verb+resource ('Get a Google Ads campaign's targeting') and even enumerates the exact response fields (locations, excluded_locations, languages, devices with bid_modifier, location_targeting_type). It does not explicitly differentiate from plausible read-side siblings like ads_targeting_browse or ads_targeting_search, which keeps it just short of a 5.

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

Usage Guidelines3/5

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

It supplies one hard usage constraint — 'Google Ads only; other networks answer 501' — which tells the agent when the call is applicable. It gives no guidance about when to prefer this over ads_campaign_targeting_update for reads or over the generic targeting browse/search tools, so the routing is only implied by the tool name.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.