Create AI Display CreativeDocuments from objective and requestedFormats without pre-existing creatives. Optional outputs requests static JPEG/PNG delivery after save_to_studio while retaining the editable document. Export existing versions with export_creative. Build and save existing Studio creative records. When campaignId or campaignName is supplied, LeanrIQ resolves the complete persisted campaign inventory, uses each saved brief, approved asset set, and eligible global or advertiser template, then runs the canonical Studio Gold build path. Campaign-scoped calls save by default; use persistence preview_only only for an unsaved ad-hoc preview. (deprecated alias)
leanriq_build_agent_adCreate AI Display CreativeDocuments from objective and requestedFormats without pre-existing creatives. Optional outputs requests static JPEG/PNG delivery after save_to_studio while retaining the editable document. Export existing versions with export_creative. Build and save existing Studio creative records. When campaignId or campaignName is supplied, LeanrIQ resolves the complete persisted campaign inventory, uses each saved brief, approved asset set, and eligible global or advertiser template, then runs the canonical Studio Gold build path. Campaign-scoped calls save by default; use persistence preview_only only for an unsaved ad-hoc preview.. Deprecated alias for build_ad. Classification: creates billable AI usage. Execution: durable. Task support: optional. Mutation modes: validate_only, preview_only, execute. Partial failure policy: completed_items_not_rolled_back. The returned JSON is internal application state for LeanrIQ and ChatGPT orchestration. Use assistantSummary first when responding to the user. Never display raw JSON, data, or meta unless the user explicitly asks for raw JSON. Mention IDs only when useful for follow-up or debugging. Prefer concise, human language, highlight the most useful insight, and suggest the next best LeanrIQ action. If idempotencyKey is omitted on a mutation, the MCP layer derives a deterministic retry key from the tool and business arguments so an accidental identical replay cannot create duplicate work. For a mutation when more than one seat is authorised, seatId or seatName must be supplied on that exact tool call; a remembered or previously selected seat is not sufficient for a write.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "leanriq_build_agent_ad"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| brief | No | ||
| force | No | ||
| input | No | ||
| assets | No | ||
| prompt | No | ||
| seatId | No | ||
| taskId | No | ||
| assetId | No | ||
| outputs | No | Optional editable/static JPEG/PNG delivery requirements. Studio persistence is required for static output. | |
| audience | No | ||
| campaign | No | ||
| creative | No | ||
| flightId | No | ||
| seatName | No | ||
| template | No | ||
| accountId | No | ||
| objective | No | ||
| advertiser | No | ||
| campaignId | No | ||
| creativeId | No | ||
| templateId | No | ||
| creativeIds | No | ||
| persistence | No | ||
| advertiserId | No | ||
| instructions | No | ||
| sourceLocale | No | ||
| targetMarket | No | ||
| contentLocale | No | ||
| marketContext | No | ||
| targetMarkets | No | ||
| contentLocales | No | ||
| idempotencyKey | No | ||
| requestedFormats | No | ||
| defaultContentLocale | No | ||
| marketLanguageProfile | No | ||
| resolvedContentLocale | No | ||
| skipTraffickedRebuild | No | ||
| languageVariantGroupId | No | ||
| requestedOutputLocales | No | ||
| supportedContentLocales | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | Yes | ||
| meta | Yes | ||
| error | No | ||
| status | Yes | ||
| assistantSummary | Yes |