Skip to main content
Glama

Microsoft Advertising search terms

msads_get_search_terms
Read-only

The search queries that triggered ads, for a date range (optionally one campaign): the query, the keyword and match type that matched it, and impressions, clicks, CTR, cost and conversions, highest spend first. Use it to find wasted spend (cost with no conversions) and new keyword ideas.

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": "msads_get_search_terms"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNoMost rows to return, highest spend first (default 50, max 500).
endDateNoYYYY-MM-DD. Omit for yesterday.
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.
startDateNoYYYY-MM-DD. Omit for the last 30 days.
campaignIdNoOnly this campaign (id from msads_get_campaigns).

Schema Changelog

Changes observed during successful MCP inspections.

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

TDQS

A3.6/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true, destructiveHint=false and openWorldHint=true, so the safety profile is covered. The description adds useful behavioral context beyond that — the result set is a spend-ranked report and the row ordering is highest spend first — but says nothing about history depth, rate limits, or result-size behavior beyond what the schema's limit parameter states.

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?

Two sentences, front-loaded with the resource and its returned columns, then the actionable use cases. The colon-delimited metric list is dense but each item earns its place; nothing is redundant padding.

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?

With no output schema, the description must carry the return shape, and it does so by enumerating the exact metrics and ranking. What remains unstated — history window limits, pagination, or how empty results appear — is minor for a read-only report whose parameters are fully documented.

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%, documenting defaults for date range, limit, and account/campaign scoping, so the baseline is 3. The description's phrase 'for a date range (optionally one campaign)' only restates what the schema already spells out and adds no new syntax or edge-case meaning.

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 description names a specific resource (the search queries that triggered ads) and enumerates the returned columns (query, matched keyword and match type, impressions, clicks, CTR, cost, conversions) in a defined sort order. It is clearly a reporting read, distinct from mutation siblings like msads_create_responsive_search_ad, though it does not explicitly contrast itself with adjacent reporting tools such as msads_get_keyword_performance.

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?

It gives concrete use cases: finding wasted spend (cost with no conversions) and sourcing new keyword ideas, which tells the agent when this tool is the right pick. It stops short of explicit when-not conditions or naming an alternative report to use instead.

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