Skip to main content
Glama

Delete in Microsoft Advertising

msads_delete
Destructive

Deletes a campaign, ad group, ad or keyword in Microsoft Advertising. Irreversible: a deleted item cannot be restored (msads_set_status Paused stops it instead). An ad group needs its campaignId; an ad or keyword its adGroupId.

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>"
    },
    "name": "msads_delete"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYesId of the campaign, ad group, ad or keyword.
levelYesWhat is deleted.
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

A4.4/5.0
Behavior4/5

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

Annotations already declare destructiveHint=true and readOnlyHint=false, so the safety profile is known. The description adds the critical detail annotations cannot convey — that deletion is irreversible and cannot be restored — plus the parent-hierarchy prerequisites. It stops short of saying anything about account resolution or what the response confirms, which keeps it below a 5.

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?

Three short sentences, front-loaded with the action and scope, then the irreversibility warning, then the parameter constraint. No filler or repetition.

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 destructive, multi-level tool with no output schema, the definition covers the essential facts: what gets deleted, that it is permanent, and what parent IDs each level needs. The only gap is account targeting (accountId vs adAccountId), though the schema does document that.

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 the description's parent-Id notes largely restate what the schema property descriptions already say ('Parent campaign Id (level ad_group)'). It does not address the potentially confusing coexistence of accountId and adAccountId, which is the one parameter ambiguity worth clarifying. Baseline 3 is appropriate given the schema already does the work.

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 ('Deletes') and the four exact resource levels (campaign, ad group, ad, keyword), and names the sibling tool msads_set_status that does something different. An agent can distinguish this from any other msads_* tool 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 Guidelines5/5

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

Explicitly routes the agent away from this destructive tool when pausing is the intent ('msads_set_status Paused stops it instead'), and states the required parent-Id per level so the agent knows what must accompany each invocation. When-to-use, when-not-to-use, and the alternative are all present.

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