Skip to main content
Glama

Add Microsoft Advertising keywords

msads_add_keywords

Adds keywords to an ad group (up to 100): text, match type (Exact, Phrase or Broad), optional bid in the account currency (the ad group bid otherwise), status Active by default. Returns the new keyword ids; refused keywords are listed in partialErrors.

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": {
      "adAccountId": "<adAccountId>",
      "adGroupId": "<adGroupId>",
      "keywords": "<keywords>"
    },
    "name": "msads_add_keywords"
  }
}

Input Schema

NameRequiredDescriptionDefault
keywordsYes
accountIdNoFezola accountId of the connected Microsoft account (type microsoft_ads in list_accounts). Optional: the adAccountId is looked up in every connected Microsoft account.
adGroupIdYesAd group Id, as returned by msads_ad_groups.
adAccountIdYesMicrosoft Advertising ad account id (Id returned by msads_list_accounts).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / $schema
      Previous value: -"http://json-schema.org/draft-07/schema#"New value: +"https://json-schema.org/draft/2020-12/schema"
  2. First observed

TDQS

A4.2/5.0
Behavior4/5

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

With annotations already declaring readOnlyHint=false, openWorldHint=true, and destructiveHint=false, the description adds useful behavioral context: default Active status, bid fallback to the ad group bid, returned keyword ids, and partialErrors for refused keywords. It does not cover authorization, rate limits, or duplicate-keyword behavior, but the partial success disclosure is particularly valuable.

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?

The definition is compact and front-loaded: it begins with the operation and target, then enumerates the important fields and return behavior. The colon-separated details are dense but every clause carries useful information.

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 mutation tool with no output schema, the description covers the core behavior, batch size, defaults, return value, and partial failure handling. It could be more complete by noting prerequisites such as existing ad group requirements or duplicate handling, but it gives enough for correct invocation.

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 75%, so the schema already explains much of the parameter set. The description still adds meaning beyond the schema by clarifying that bid is in the account currency and that the ad group bid applies when bid is omitted; it also restates key defaults and the 100-keyword limit.

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 and resource: 'Adds keywords to an ad group,' and adds the batch limit '(up to 100)'. This makes the tool's purpose immediately clear and distinguishable from read-oriented siblings like msads_keywords.

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?

The description implies usage by naming the operation and target resource, but it does not explicitly state when to use this tool versus alternatives, nor does it give prerequisites or when-not-to-use guidance. This is adequate minimum guidance, not rich routing guidance.

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