Skip to main content
Glama

ads_campaign_delete

DestructiveIdempotent

Delete a campaign on the ad network. This cannot be undone. Stops all delivery under it. Returns { deleted, id, platform_id, status, removed_parents }. The row stays readable with status deleted.

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": {
      "campaign_id": "<campaign_id>"
    },
    "name": "ads_campaign_delete"
  }
}

Input Schema

NameRequiredDescriptionDefault
campaign_idYesCampaign id: the Postproxy id (id field of a campaign), not the network's platform_id
profile_group_idNoProfile group hashid, to scope the call to one profile group. Usually not needed.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already declare destructiveHint=true, idempotentHint=true and readOnlyHint=false, so the safety profile is covered. The description adds real context beyond that: delivery under the campaign stops, the parent references are reported via removed_parents, and the record is a soft delete that remains readable with status 'deleted' rather than vanishing. That soft-delete disclosure is valuable and slightly reframes the blunt 'cannot be undone'.

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?

Four short sentences, zero filler, with the destructive warning front-loaded ahead of the side effects and return shape. The return-field list earns its place because no output schema exists.

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, two-parameter mutation with no output schema, the definition covers irreversibility, downstream effects, and the response shape. The only gap is that it does not say what happens to child ads or whether recovery is possible beyond the status flag.

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%, and the schema itself already explains that campaign_id is the Postproxy id rather than the network platform_id, plus that profile_group_id is usually unnecessary. The description adds no parameter-level meaning, so the baseline 3 applies.

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?

States a specific verb and resource ('Delete a campaign') plus scope ('on the ad network'), which clearly separates it from non-destructive siblings like ads_campaign_pause or ads_campaign_update. It stops short of explicitly naming the nearest alternative, ads_campaign_archive, so sibling differentiation is only implied by the soft-delete note.

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 irreversibility warning gives a strong reason to prefer alternatives, and 'the row stays readable with status deleted' hints at the archive-vs-delete distinction. However, it never states when to choose this over ads_campaign_archive or pause, and there is no mention of prerequisites such as pausing delivery first.

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.