Skip to main content
Glama

Update many objects

meta_bulk_update
Destructive

Apply one kind of change (status, rename or budget) to up to 50 campaigns, ad sets or ads in one account. Call with preview: true first, get one Yes for the exact list, then call without preview (percent: pass expected_before).

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": {
      "object_type": "<object_type>",
      "ids": "<ids>"
    },
    "name": "meta_bulk_update"
  }
}

Input Schema

NameRequiredDescriptionDefault
idsYesNo repeats
nameNoExact name for every object
statusNo
previewNoCheck every item without changing anything
name_findNoText to replace in each name (case-sensitive, all occurrences)
account_idNoe.g. act_1234567890
name_prefixNo
name_suffixNo
object_typeYes
daily_budgetNoSame for each, minor units
name_replaceNoDefault: remove name_find
expected_beforeNoRequired with budget_change_percent outside preview: {id: expected_before} from the preview; items changed since are skipped
lifetime_budgetNoSame for each, minor units
acknowledge_rulesNoOnly on a retry after the user's Yes to rule reasons; never on a first call.
budget_change_percentNoChange each object's own budget by this percent

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4/5.0
Behavior4/5

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

The annotations already declare destructive=true, openWorld=true and idempotent=false, so the safety profile is known. The description adds real behavioral context on top: the mandatory preview-then-approve gate, the 50-item ceiling, and the concurrency guard that skips items changed since the preview. It stops short of saying what happens on partial failure, whether the operation is all-or-nothing, or what a preview response contains.

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?

Two sentences, action first and workflow second, with no filler. The shorthand 'percent: pass expected_before' is dense to the point of being slightly cryptic, costing a bit of clarity, but overall the structure is front-loaded and efficient.

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 15-parameter batch tool with no output schema, the definition covers the essentials: scope cap, preview gate, approval requirement, and staleness handling. Remaining gaps are failure semantics and return shape, which matter more here because there is no output schema to fall back on, but the core is sound.

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?

With 15 parameters and 73% schema coverage, the schema does most of the work, but the description adds genuine cross-parameter meaning. The phrase 'percent: pass expected_before' encodes a conditional dependency — budget_change_percent requires expected_before outside preview — that is not obvious from the schema alone. The parenthetical 'status, rename or budget' also groups the parameters into mutually exclusive change modes.

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: 'Apply one kind of change (status, rename or budget) to up to 50 campaigns, ad sets or ads in one account.' That covers the operation, the eligible change types, the object types, and the batch cap. It does not name a sibling such as meta_update for single-object edits, so the differentiation from related tools is left implicit.

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?

The workflow guidance is explicit: call with preview true first, obtain one Yes for the exact list, then call without preview while passing expected_before. That is a clear sequencing instruction that an agent can follow. What is missing is routing guidance — when to use this instead of meta_update for a single object, or when to skip the bulk path entirely.

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.