Skip to main content
Glama

ads_ad_update

DestructiveIdempotent

Update an ad on the ad network. Meta: name, status; budget, bid_amount, targeting and schedule are applied to the ad's ad set (an ad whose budget lives on its campaign answers 422 for budget: update the campaign). Google: status only. The creative cannot be edited (501). targeting replaces the whole targeting and must include locations. Budget, bid and status changes alter what the ad account spends. Returns the ad refetched from the network.

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_update"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameNoNew name
ad_idYesAd id: the Postproxy id (id field of an ad), not the network's platform_id
budgetNoNew budget: { amount, type } in the ad account currency, whole units
statusNo
scheduleNoWhen the ad runs. Without end it runs until paused. On Meta end must be at least 30 hours after the start.
targetingNoAudience. Meta defaults to US, ages 18-65. Google Search accepts only locations, excluded_locations and location_targeting_type, with locations as arrays of numeric ids.
bid_amountNoBid in the account currency
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.7/5.0
Behavior5/5

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

Beyond the annotations (destructive, open-world, idempotent), the description discloses the cost-bearing nature of the write ('budget, bid and status changes alter what the ad account spends'), the replace-not-merge semantics of targeting, the mandatory locations requirement, and two specific failure modes (422, 501). It also states the return value ('the ad refetched from the network'), which matters because there is no output schema.

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?

Purpose is front-loaded in the first clause, followed by platform rules, mutation constraints, and the return value in a tight four-sentence block. The semicolon-dense Meta/Google listing is efficient rather than padded, and no sentence is redundant with the title or schema.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For an 8-parameter, nested-object, no-output-schema mutation tool, the description covers what changes per platform, which side effects cost money, which operations are refused, and what comes back. An agent has everything needed to decide whether to call it and how to interpret the result without consulting anything else.

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 already 88%, so the baseline is 3; the description adds cross-parameter meaning the schema cannot express — which parameters apply on Meta versus Google, that targeting is a full replacement rather than a patch, and that the ad_id must be the Postproxy id. It leaves nested object detail (locations shapes, targeting sub-keys) to the schema, which is appropriate.

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 opens with a specific verb+resource ('Update an ad on the ad network') and immediately scopes it by platform: Meta accepts name and status directly plus budget/bid/targeting/schedule via the ad's ad set, while Google accepts status only. That platform split tells an agent exactly what this tool can and cannot do, which separates it from ads_ad_set_update and ads_campaign_update without needing to open a schema.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

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

It gives concrete routing advice: budget/bid/targeting/schedule land on the ad's ad set, and an ad whose budget lives on its campaign answers 422 'so update the campaign' — a clear pointer to an alternative. It also excludes creative edits (501). It stops short of naming the sibling tools explicitly (e.g. ads_ad_set_update) and doesn't say when to prefer this over ads_ad_set_update for shared fields, so it is not a full when/when-not map.

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.