Skip to main content
Glama

List Microsoft Advertising ads

msads_get_ads
Read-only

List an ad group's ads: id, type, status, final URLs and the ad text (headlines and descriptions for responsive search ads; title parts and text for expanded and text ads). For a responsive search ad, pinnedHeadlines / pinnedDescriptions list any text pinned to a fixed position (1 = first); absent when nothing is pinned.

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": {
      "adGroupId": "<adGroupId>"
    },
    "name": "msads_get_ads"
  }
}

Input Schema

NameRequiredDescriptionDefault
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.
adGroupIdYesAd group id, from msads_get_ad_groups.

Schema Changelog

Changes observed during successful MCP inspections.

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

TDQS

A4/5.0
Behavior4/5

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

Annotations already declare this a read-only, non-destructive, open-world listing, so the safety profile is covered. The description adds genuine behavioral detail beyond that: which fields come back per ad type and the exact semantics of `pinnedHeadlines` / `pinnedDescriptions`, including that the fields are absent when nothing is pinned and that position 1 means first. It stops short of disclosing pagination, result caps, or whether status filtering is possible.

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 sentences, front-loaded with the scope, and every clause carries information about the returned shape or field semantics. 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?

For a two-parameter listing tool with full schema coverage and read-only annotations, this covers nearly everything an agent needs, and it compensates for the missing output schema by describing the returned fields. The remaining gap is pagination/result-volume behavior, which matters for a list tool but is not addressed.

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 both parameters are already fully documented, including where each id comes from and when accountId is needed. The description adds no parameter-level meaning of its own, so the baseline of 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 opens with a specific verb and scope ('List an ad group's ads') and then enumerates the returned fields (id, type, status, final URLs, ad text), which distinguishes it clearly from account- or campaign-level siblings. An agent can tell exactly what this tool returns without inspecting anything else.

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?

Usage is implied by the scope: this is the tool for enumerating ads inside one ad group, and the adGroupId requirement implies msads_get_ad_groups is the discovery step. However, there is no explicit when-to-use versus alternatives, no note on preconditions (e.g. accountId only needed for multi-account sign-ins is only in the schema), and no exclusions.

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