Skip to main content
Glama

Pause or activate in Microsoft Advertising

msads_set_status
Destructive

Sets a campaign, ad group, ad or keyword to Active or Paused. An ad group needs its campaignId; an ad or keyword needs its adGroupId, and an ad its adType (Type from msads_ads).

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>",
      "level": "<level>",
      "id": "<id>",
      "status": "<status>"
    },
    "name": "msads_set_status"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYesId of the campaign, ad group, ad or keyword.
levelYesWhat is changed.
adTypeNoAd Type (level ad), from msads_ads.
statusYesActive or Paused.
accountIdNoFezola accountId of the connected Microsoft account (type microsoft_ads in list_accounts). Optional: the adAccountId is looked up in every connected Microsoft account.
adGroupIdNoParent ad group Id (levels ad and keyword).
campaignIdNoParent campaign Id (level ad_group).
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

A3.8/5.0
Behavior3/5

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

Annotations already declare destructiveHint=true, readOnlyHint=false, and openWorldHint=true, so the mutation risk is known. The description adds the level-dependent parent-ID requirement and the hint that adType must come from msads_ads, but says nothing about the effect of pausing (spend stops immediately), whether the change is reversible, or what is returned on success.

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, no filler, with the primary action stated first and the conditional parameter requirements following. Every clause carries actionable content.

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 an 8-parameter mutation tool with full schema coverage and no output schema, the description covers the branching logic that matters most (which IDs are needed at which level). Gaps are minor: no statement of return shape or whether setting the current status is a no-op.

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 coverage is 100% and each parameter already carries a description, so the baseline is 3. The description restates the parent-ID relationships that the schema already documents and adds only one small piece of extra meaning: that adType values originate from msads_ads.

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?

States a specific verb and outcome ("sets ... to Active or Paused") and enumerates the four exact resources it applies to: campaign, ad group, ad, keyword. Combined with the msads_ prefix and title, an agent can distinguish it from google_ads_set_status and from msads_update_campaign 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 Guidelines3/5

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

The description explains the required parent hierarchy per level (campaignId for ad groups, adGroupId for ads/keywords, adType for ads), which guides correct invocation. It does not state when to prefer this over siblings such as msads_update_campaign, msads_delete, or msads_set_budget, nor any exclusion — usage is implied by the status-only semantics rather than stated.

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