Skip to main content
Glama

ads_campaign_update

DestructiveIdempotent

Update a campaign on the ad network. Meta: name, status, budget, bid_strategy, spend_cap. Google: name, status, budget, schedule. A field the network cannot change at this level answers 501. Changing the budget or setting status active changes what the ad account spends. Returns the campaign 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": {
      "campaign_id": "<campaign_id>"
    },
    "name": "ads_campaign_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.
spend_capNoMeta: campaign spend cap in the account currency
campaign_idYesCampaign id: the Postproxy id (id field of a campaign), not the network's platform_id
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

A3.9/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 openWorldHint=true, so the safety profile is covered. The description adds real value beyond that: it states that budget changes and setting status to active change what the ad account spends, and that the campaign is refetched from the network on return. It could have gone further on reversibility of archived status, but the spend-impact warning is the critical disclosure.

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, front-loaded with the action, then per-network field support, then the failure mode, then the side effect and return value. No filler and no repetition of schema detail.

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 an eight-parameter mutation tool with nested objects and no output schema, the description covers the essentials: supported fields per network, error behavior, spend side effects, and the return value. The profile_group_id scoping parameter is left entirely to the schema, which is acceptable given the coverage.

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 88%, so the schema baseline is already 3. The description adds cross-parameter meaning not in the schema by grouping fields per network, which clarifies which of the eight parameters apply where for bid_strategy, spend_cap, and schedule.

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?

The description opens with a specific verb and resource, "Update a campaign on the ad network," then enumerates which fields each network accepts (Meta: name, status, budget, bid_strategy, spend_cap; Google: name, status, budget, schedule). That enumeration implicitly separates it from siblings like ads_campaign_targeting_update and ads_campaign_ad_schedule_update, but it never names those alternatives, so differentiation is inferred rather than stated.

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?

Useful operational guidance is present: fields the network cannot change at this level "answer 501," which tells the agent how failures manifest. However, there is no explicit when-to-use versus alternatives guidance — nothing says to prefer ads_campaign_pause for pausing, or ads_campaigns_update_statuses for bulk status work.

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.