Skip to main content
Glama

List Microsoft Advertising targeting and bid adjustments

msads_get_targeting
Read-only

List a campaign's targeting (locations, radius, device, day and time, age, gender), or an ad group's when adGroupId is given, with each criterion's bid adjustment in percent (+20 = bid 20% more, -100 on a device = excluded) and whether it is an exclusion. A type with nothing set has no restriction. Ad group targeting of a type overrides the campaign's.

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": {
      "campaignId": "<campaignId>"
    },
    "name": "msads_get_targeting"
  }
}

Input Schema

NameRequiredDescriptionDefault
typesNoOnly these criterion types. Default: all.
accountIdNoMicrosoft Advertising account id or account number (e.g. 'F123ABCD'), as listed by msads_list_accounts. Only needed when the sign-in can reach more than one account.
adGroupIdNoAd group id: read the ad group's own targeting instead.
campaignIdYesCampaign id, from msads_get_campaigns.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • addedInput schema / properties / adGroupId / pattern
      Added value: +"^\\d+$"
    • addedInput schema / properties / campaignId / pattern
      Added value: +"^\\d+$"
  2. Added

TDQS

A4.3/5.0
Behavior5/5

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

Annotations already declare readOnlyHint=true and destructiveHint=false, so the safety profile is covered; the description then adds substantive behavioral context beyond them. It explains the sign convention of bid adjustments (+20 = bid 20% more, -100 on a device = excluded), that each criterion carries an exclusion flag, and that ad group targeting of a type overrides the campaign's — inheritance semantics an agent could not infer from annotations.

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 the verb and resource, then the type enumeration, then two short clarifying sentences about empty types and ad-group override. The first sentence is long but each clause (bid adjustment convention, exclusion flag) carries information; no filler or restatement of the title.

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?

There is no output schema, so the description must carry the return-value burden, and it does explain the key returned semantics: per-criterion bid adjustment percentages, exclusion flags, and what an empty type means. It could say more about the shape of the response (grouping by type) but nothing essential for correct invocation is missing.

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%, so the schema already documents all four parameters, including that adGroupId switches to reading the ad group's own targeting. The description restates the criterion type list already present as an enum in 'types' and adds no syntax or format detail beyond the schema, so baseline 3 applies.

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?

The description states a specific verb (List) and resource (a campaign's targeting) and enumerates the criterion types covered: locations, radius, device, day and time, age, gender. It also explicitly describes the second mode (ad group targeting when adGroupId is given), so an agent can tell exactly what this tool returns 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?

Clear conditional routing between campaign-level and ad-group-level reads, plus the default behavior (all types when 'types' is omitted) and the semantic rule that a type with nothing set means no restriction. It stops short of naming the mutation siblings (e.g. msads_set_bid_adjustment, set_campaign_targeting) as the alternative when the agent wants to change rather than read targeting.

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.

Resources