MCP tools

Apply structure template

Apply a structure template to a pipeline card, POPULATES the card (an existing PENDING draft batch) with the template's campaign/ad set/ad structure.

Tool name: apply-structure-template.

Apply a structure template to a pipeline card, POPULATES the card (an existing PENDING draft batch) with the template's campaign/ad set/ad structure. Never creates a launch and never publishes. Re-applying an already-populated card needs overwrite=true (hard overwrite, confirm with the user first). WRITE.

When to use

Populate a pipeline card from a structure template. Surface per-account needs-attention clearly; ask before overwrite.

Access

PropertyValue
Required scopewrite
PublishesNo
Read-onlyNo
DestructiveYes
IdempotentNo
Open worldYes

Input

FieldTypeRequiredDescription
templateIdstringNoStructure template ID. Omit to read the template currently open in the builder from the Current Context block. Pass an explicit id only when acting on a different template than the one in scope.
campaignLaunchIdstringNoPipeline card id to populate. Omit to use the card in Current Context.
overwritebooleanNo
suppliedDeferredobjectNoPer-account deferred values keyed by adAccountId, supplied at apply.

Output

The tool catalog does not declare an output schema for this tool.

REST equivalent

POST /v1/brands/{brandId}/launches/{launchId}/structure-templates/{templateId}/apply, Apply structure template. CLI: koast apply-structure-template.

On this page