Skip to main content
Glama
pipelinica-mcp
by pipelinica

Apply a change

apply_change
Destructive

Applies a previewed ad change through the platform's own API, blocking high-risk edits until you confirm and refusing changes if account state moved since the preview.

Instructions

Makes a change that preview_change showed, through the ad platform's own API (such as the Google Ads API or Meta's Marketing API). A high-risk change (spends money, goes live, can't be undone) is refused unless confirmed is true. Refused when the state moved since the preview. The change is recorded in Pipelinica under AI access.

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": {
      "platform": "<platform>",
      "connection": "<connection>",
      "action": "<action>",
      "settings": "<settings>",
      "params": "<params>",
      "change_id": "<change_id>"
    },
    "name": "apply_change"
  }
}

Input Schema

NameRequiredDescriptionDefault
actionYesA change's name from describe_actions.
paramsYesThe same parameters as the preview.
platformYesA platform id from list_platforms.
settingsYesThe ad account's `settings` from list_options.
change_idYesThe preview's change_id.
confirmedNoTrue only after the user said yes to a high-risk change (the preview's `risk` is `high`). Never set it without asking them.
connectionYesA connection id from list_platforms.

Output Schema

NameRequiredDescriptionDefault
riskNonormal
linesYes
notesNo
risksNo
summaryYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.5/5.0
Behavior5/5

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

Adds substantial behavior beyond annotations: it defines what counts as high-risk (spends money, goes live, can't be undone), states the confirmation gate, discloses an optimistic-concurrency guard (refused if state moved since preview), and notes the change is recorded in Pipelinica under AI access. These are exactly the safety, staleness, and audit facts an agent needs before triggering a destructive external write.

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?

Four short sentences, front-loaded with what the tool does, then the confirmation gate, then the staleness guard, then the audit note — no filler. The telegraphic fragments ('Refused when the state moved since the preview') are terse but unambiguous.

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, open-world, non-idempotent write across third-party ad APIs, the definition covers preconditions, the confirmation gate, staleness refusal, and traceability, and an output schema covers return values. Not covered: behavior on partial failure or how to recover after a refusal, which an agent would still have to infer.

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 100%, so the baseline is 3; the description earns above that by defining 'high-risk' in terms the schema does not (the schema only points at the preview's `risk` field), which gives `confirmed` real meaning. It reinforces rather than duplicates the change_id/params linkage from the schema.

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 ('Makes a change that preview_change showed, through the ad platform's own API') and explicitly ties it to the sibling preview_change, so an agent can distinguish preview from commit without opening either 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?

The workflow is implied clearly: this acts on a change_id produced by preview_change, and the high-risk path requires `confirmed` only after the user says yes. Refusal conditions (unconfirmed high-risk, state moved since preview) tell the agent when the call will not succeed, though it never explicitly contrasts with alternatives such as re-running preview_change instead of forcing a stale apply.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.