Skip to main content
Glama

ads_ad_set_update

DestructiveIdempotent

Update an ad set on the ad network. Meta: name, status, budget, bid_amount, bid_strategy, targeting, schedule. Google (ad group): name, status, bid_amount (max CPC). A field the network cannot change at this level answers 501. targeting replaces the whole targeting and must include locations. Budget, bid and status changes alter what the ad account spends. Returns the ad set 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_set_id": "<ad_set_id>"
    },
    "name": "ads_ad_set_update"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameNoNew name
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.
ad_set_idYesAd set id: the Postproxy id (id field of an ad set), not the network's platform_id
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 (Google: max CPC)
bid_strategyNoMeta
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
Behavior4/5

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

Annotations already declare destructiveHint=true and idempotentHint=true, and the description adds real value beyond them: it warns that budget, bid and status changes alter ad account spend, that targeting is a full replacement requiring locations, and that unsupported fields return 501. It does not discuss reversibility or permission requirements, but the spend warning is the key risk disclosure.

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?

Front-loaded with the core action, then network-specific field lists, then behavioral warnings, then return value. The telegraphic style is dense but every clause carries information; only the per-network field enumeration borders on restating schema enums.

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 9-parameter mutation tool with nested objects and no output schema, the description covers network divergence, destructive spend impact, replacement semantics and the return value ('refetched from the network'). The main omission is guidance on partial vs full updates for non-targeting fields and the pause/resume/archive alternative.

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 89%, so the baseline is 3, but the description adds meaning the schema cannot express: which fields each network accepts (Meta bid_strategy vs Google max CPC, Google targeting limited to locations/excluded_locations/location_targeting_type). The replacement semantics of targeting are also stated, which is not derivable from the schema alone.

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 ('Update an ad set on the ad network') and immediately enumerates which fields apply on Meta vs Google, so an agent knows exactly what the tool mutates. It is clearly distinguishable from read-only siblings like ads_ad_set_get or ads_ad_set_analytics.

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 gives useful per-network applicability rules and the 501 behavior for unsupported fields, which implicitly guides field selection. However, it never addresses the obvious overlap with siblings ads_ad_set_pause, ads_ad_set_resume and ads_ad_set_archive, even though the status enum includes active/paused/archived — an agent gets no guidance on which route to prefer.

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.