Skip to main content
Glama

ads_ad_archive

DestructiveIdempotent

Archive an ad: it stops delivering and is hidden from the network's default views. Meta only; Google Ads answers 501. Returns the ad plus updated; when it was already in that state nothing is sent and the answer carries updated: false with a skipped_reason.

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": {
      "ad_id": "<ad_id>"
    },
    "name": "ads_ad_archive"
  }
}

Input Schema

NameRequiredDescriptionDefault
ad_idYesAd id: the Postproxy id (id field of an ad), 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

A4.1/5.0
Behavior5/5

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

Annotations already flag destructiveHint=true and idempotentHint=true, but the description goes further: it explains what archiving actually does (delivery stops, hidden from default views only), notes the platform restriction that causes a hard 501 on Google Ads, and documents the no-op path returning updated: false with a skipped_reason. That is material behavior an agent cannot infer from the annotations.

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?

The primary effect is front-loaded, the platform caveat and idempotent-return detail follow without filler. Minor cost: the phrase 'Returns the ad plus updated' is slightly compressed to the point of awkwardness, but nothing is padded.

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 carries the return-shape burden and does so adequately by naming updated and skipped_reason, and it covers the platform failure mode. The only real omission is prerequisite detail for a destructive, open-world mutation, which annotations only partially cover.

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%, including the important note that ad_id is the Postproxy id rather than the network platform_id, and that profile_group_id is usually not needed. The description adds nothing about either parameter, so the baseline 3 applies.

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 resource ('Archive an ad') and immediately describes the effect: it stops delivering and is hidden from default views. That effect also separates archive from adjacent operations like delete or pause, and the 'Meta only; Google Ads answers 501' line pins down scope so an agent can tell at a glance whether it applies.

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?

It gives a genuine usage constraint (Meta only, Google returns 501) and implies the call is safe to repeat when already archived, which guides invocation. However, it never explicitly contrasts with siblings such as ads_ad_delete or ads_ad_pause, nor states prerequisites such as permissions, so the when-to-use guidance is implied rather than spelled out.

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.