Skip to main content
Glama

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.

build_ad
Idempotent

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.. 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.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
briefNo
forceNo
inputNo
assetsNo
promptNo
seatIdNo
taskIdNo
assetIdNo
audienceNo
campaignNo
creativeNo
flightIdNo
seatNameNo
templateNo
accountIdNo
objectiveNo
advertiserNo
campaignIdNo
creativeIdNo
templateIdNo
creativeIdsNo
persistenceNo
advertiserIdNo
instructionsNo
idempotencyKeyNo
requestedFormatsNo
skipTraffickedRebuildNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
dataYes
metaYes
errorNo
statusYes
assistantSummaryYes

TDQS

B3.4/5.0
Behavior5/5

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

The description goes well beyond the annotations by disclosing partial failure policy (completed_items_not_rolled_back), durable execution, billable AI usage, seatId/seatName requirements for multi-seat mutations, and a deterministic retry-key mechanism when idempotencyKey is omitted. These are concrete behavioral traits that help predict side effects. The description is consistent with the idempotentHint annotation, so no contradiction.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness2/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The first two sentences efficiently state the primary purpose, but the remainder contains extensive generic response-handling instructions ('Use assistantSummary first...', 'Never display raw JSON...') that are not specific to this tool and are likely boilerplate. The description is lengthy and dilutes the signal-to-noise ratio, making it harder to parse the essential tool-specific details.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

The description covers many operational aspects: default save behavior, partial failure policy, seat authentication rules, and idempotency, which gives a fairly complete picture of the tool's runtime behavior. However, given the large parameter count (27) and 0% schema coverage, the lack of definitions for most parameters and the absence of a clear distinction from similar sibling build tools leaves significant gaps for an agent trying to invoke it correctly.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

With 0% schema description coverage and 27 parameters, the description carries the full burden of parameter explanation. It only clarifies campaignId/campaignName, persistence, idempotencyKey, and seatId/seatName. Core parameters such as brief, assets, template, creativeIds, and instructions remain completely undefined, leaving an agent unable to correctly construct a valid call.

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?

Opens with a clear verb-object phrase 'Build and save existing Studio creative records,' immediately conveying the tool's core function and its focus on existing records. The campaign-scoped behavior and default save action add specific scope. However, it does not explicitly differentiate from sibling tools such as build_campaign_creative_set or leanriq_build_ad, which could cause confusion in an agent's tool selection.

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?

The description gives a concrete usage scenario: supplying campaignId/campaignName triggers a full persisted inventory build, and it explicitly restricts persistence preview_only to unsaved ad-hoc previews. It also mentions mutation modes and task support. But it never names alternative tools or states when not to use this tool, leaving the when-to-use guidance implicit rather than explicit.

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.

TDQS

C2.6/5.0
Disambiguation2/5

The tool set is dominated by deprecated aliases (leanriq_build_ad, leanriq_create_brief, etc.) that duplicate canonical tools exactly, and multiple high-level builders (build_ad, build_campaign_creative_set, leanriq_campaign_builder, launch_creative_campaign) overlap in purpose. An agent would struggle to pick the intended tool without inspecting full descriptions.

Naming Consistency2/5

Canonical tools follow a sensible verb_noun pattern (create_campaign, get_creative, list_flights), but the large number of 'leanriq_' prefixed aliases and special names like leanriq_campaign_builder create a mixed, inconsistent surface. The presence of both build_ad and leanriq_build_ad, or get_current_seat and leanriq_current_seat, breaks any predictable convention.

Tool Count1/5

87 tools is an extreme number for any MCP server, even a broad ad-platform API. The sheer volume, including many duplicate aliases, far exceeds a well-scoped set and will overwhelm agents with unnecessary choices.

Completeness4/5

The core lifecycle is well covered: CRUD for advertisers, campaigns, flights, creatives, versions, assets, plus trafficking, QA, preview, and publishing. Minor gaps exist, such as the missing canonical create_creative_strategy (only a deprecated alias references it) and no direct update_creative, but the domain is functionally complete.

Resources