Skip to main content
Glama

Build a DOOH-native poster for an existing Studio creative, compare exact native renders and save the complete editable working version by default. Below-threshold creative review retains a technically valid version without release approval. Explicit saveToStudio=false is an unsaved preview. DOOH never contains CTA buttons. It does not route through Display build_ad. (deprecated alias)

leanriq_build_dooh
Idempotent

Build a DOOH-native poster for an existing Studio creative, compare exact native renders and save the complete editable working version by default. Below-threshold creative review retains a technically valid version without release approval. Explicit saveToStudio=false is an unsaved preview. DOOH never contains CTA buttons. It does not route through Display build_ad.. Deprecated alias for build_dooh. Classification: writes to Studio, 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_dooh"
  }
}

Input Schema

NameRequiredDescriptionDefault
copyNo
assetsNo
formatNo
seatIdNo
campaignNo
creativeNo
seatNameNo
templateNo
accountIdNo
templatesNo
advertiserNo
campaignIdNo
copyPolicyNo
creativeIdNo
aiBudgetUsdNo
doohContextNo
advertiserIdNo
saveToStudioNo
sourceLocaleNo
targetMarketNo
contentLocaleNo
marketContextNo
strategyBriefNo
targetMarketsNo
contentLocalesNo
idempotencyKeyNo
deliveryProfileNo
directionReferenceNo
approvedCopyVariantsNo
defaultContentLocaleNo
designEvidenceContextNo
marketLanguageProfileNo
resolvedContentLocaleNo
languageVariantGroupIdNo
requestedOutputLocalesNo
expectedActiveVersionIdNo
supportedContentLocalesNo

Output Schema

NameRequiredDescriptionDefault
dataYes
metaYes
errorNo
statusYes
assistantSummaryYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • addedInput schema / properties / aiBudgetUsd
      Added value: +{
      +  "exclusiveMinimum": 0,
      +  "maximum": 0.2,
      +  "type": "number"
      +}
    • addedInput schema / properties / directionReference
      Added value: +{
      +  "additionalProperties": false,
      +  "properties": {
      +    "blueprintDigest": {
      +      "pattern": "^[a-f0-9]{64}$",
      +      "type": "string"
      +    },
      +    "revision": {
      +      "exclusiveMinimum": 0,
      +      "maximum": 9007199254740991,
      +      "type": "integer"
      +    }
      +  },
      +  "required": [
      +    "revision",
      +    "blueprintDigest"
      +  ],
      +  "type": "object"
      +}
  2. Changed9 schema fields changed
    • addedInput schema / properties / approvedCopyVariants
      Added value: +{
      +  "items": {
      +    "additionalProperties": false,
      +    "properties": {
      +      "body": {
      +        "type": "string"
      +      },
      +      "claimReferences": {
      +        "items": {
      +          "type": "string"
      +        },
      +        "type": "array"
      +      },
      +      "cta": {
      +        "type": "string"
      +      },
      +      "eyebrow": {
      +        "type": "string"
      +      },
      +      "headline": {
      +        "type": "string"
      +      },
      +      "id": {
      +        "type": "string"
      +      },
      +      "legal": {
      +        "type": "string"
      +      },
      +      "proof": {
      +        "type": "string"
      +      }
      +    },
      +    "type": "object"
      +  },
      +  "maxItems": 3,
      +  "type": "array"
      +}
    • addedInput schema / properties / assets / properties / images / items / properties / alphaPadding
      Added value: +{
      +  "properties": {
      +    "bottom": {
      +      "maximum": 1,
      +      "minimum": 0,
      +      "type": "number"
      +    },
      +    "left": {
      +      "maximum": 1,
      +      "minimum": 0,
      +      "type": "number"
      +    },
      +    "right": {
      +      "maximum": 1,
      +      "minimum": 0,
      +      "type": "number"
      +    },
      +    "top": {
      +      "maximum": 1,
      +      "minimum": 0,
      +      "type": "number"
      +    }
      +  },
      +  "required": [
      +    "left",
      +    "right",
      +    "top",
      +    "bottom"
      +  ],
      +  "type": "object"
      +}
    • addedInput schema / properties / assets / properties / images / items / properties / visibleBounds
      Added value: +{
      +  "properties": {
      +    "height": {
      +      "exclusiveMinimum": 0,
      +      "maximum": 1,
      +      "type": "number"
      +    },
      +    "width": {
      +      "exclusiveMinimum": 0,
      +      "maximum": 1,
      +      "type": "number"
      +    },
      +    "x": {
      +      "maximum": 1,
      +      "minimum": 0,
      +      "type": "number"
      +    },
      +    "y": {
      +      "maximum": 1,
      +      "minimum": 0,
      +      "type": "number"
      +    }
      +  },
      +  "required": [
      +    "x",
      +    "y",
      +    "width",
      +    "height"
      +  ],
      +  "type": "object"
      +}
    • addedInput schema / properties / assets / properties / logos / items / properties / alphaPadding
      Added value: +{
      +  "properties": {
      +    "bottom": {
      +      "maximum": 1,
      +      "minimum": 0,
      +      "type": "number"
      +    },
      +    "left": {
      +      "maximum": 1,
      +      "minimum": 0,
      +      "type": "number"
      +    },
      +    "right": {
      +      "maximum": 1,
      +      "minimum": 0,
      +      "type": "number"
      +    },
      +    "top": {
      +      "maximum": 1,
      +      "minimum": 0,
      +      "type": "number"
      +    }
      +  },
      +  "required": [
      +    "left",
      +    "right",
      +    "top",
      +    "bottom"
      +  ],
      +  "type": "object"
      +}
    • addedInput schema / properties / assets / properties / logos / items / properties / visibleBounds
      Added value: +{
      +  "properties": {
      +    "height": {
      +      "exclusiveMinimum": 0,
      +      "maximum": 1,
      +      "type": "number"
      +    },
      +    "width": {
      +      "exclusiveMinimum": 0,
      +      "maximum": 1,
      +      "type": "number"
      +    },
      +    "x": {
      +      "maximum": 1,
      +      "minimum": 0,
      +      "type": "number"
      +    },
      +    "y": {
      +      "maximum": 1,
      +      "minimum": 0,
      +      "type": "number"
      +    }
      +  },
      +  "required": [
      +    "x",
      +    "y",
      +    "width",
      +    "height"
      +  ],
      +  "type": "object"
      +}
    • addedInput schema / properties / copy / properties / approvedCopyVariants
      Added value: +{
      +  "items": {
      +    "additionalProperties": false,
      +    "properties": {
      +      "body": {
      +        "type": "string"
      +      },
      +      "claimReferences": {
      +        "items": {
      +          "type": "string"
      +        },
      +        "type": "array"
      +      },
      +      "cta": {
      +        "type": "string"
      +      },
      +      "eyebrow": {
      +        "type": "string"
      +      },
      +      "headline": {
      +        "type": "string"
      +      },
      +      "id": {
      +        "type": "string"
      +      },
      +      "legal": {
      +        "type": "string"
      +      },
      +      "proof": {
      +        "type": "string"
      +      }
      +    },
      +    "type": "object"
      +  },
      +  "maxItems": 3,
      +  "type": "array"
      +}
    • addedInput schema / properties / copy / properties / legal
      Added value: +{
      +  "type": "string"
      +}
    • addedInput schema / properties / copyPolicy
      Added value: +{
      +  "additionalProperties": false,
      +  "properties": {
      +    "editableRoles": {
      +      "items": {
      +        "enum": [
      +          "headline",
      +          "body",
      +          "cta",
      +          "legal",
      +          "eyebrow",
      +          "proof"
      +        ],
      +        "type": "string"
      +      },
      +      "type": "array"
      +    },
      +    "lockedRoles": {
      +      "items": {
      +        "enum": [
      +          "headline",
      +          "body",
      +          "cta",
      +          "legal",
      +          "eyebrow",
      +          "proof"
      +        ],
      +        "type": "string"
      +      },
      +      "type": "array"
      +    },
      +    "requiredRoles": {
      +      "items": {
      +        "enum": [
      +          "headline",
      +          "body",
      +          "cta",
      +          "legal",
      +          "eyebrow",
      +          "proof"
      +        ],
      +        "type": "string"
      +      },
      +      "type": "array"
      +    }
      +  },
      +  "type": "object"
      +}
    • addedInput schema / properties / designEvidenceContext
      Added value: +{
      +  "properties": {
      +    "brand": {
      +      "properties": {
      +        "constraints": {
      +          "items": {
      +            "type": "string"
      +          },
      +          "type": "array"
      +        },
      +        "name": {
      +          "type": "string"
      +        },
      +        "tokens": {
      +          "additionalProperties": {},
      +          "propertyNames": {
      +            "type": "string"
      +          },
      +          "type": "object"
      +        },
      +        "version": {
      +          "anyOf": [
      +            {
      +              "anyOf": [
      +                {
      +                  "type": "string"
      +                },
      +                {
      +                  "type": "number"
      +                }
      +              ]
      +            },
      +            {
      +              "type": "null"
      +            }
      +          ]
      +        }
      +      },
      +      "type": "object"
      +    },
      +    "campaign": {
      +      "properties": {
      +        "audience": {},
      +        "objective": {},
      +        "proposition": {}
      +      },
      +      "type": "object"
      +    },
      +    "copy": {
      +      "properties": {
      +        "approvedCopyVariants": {},
      +        "body": {},
      +        "claimReferences": {},
      +        "claims": {},
      +        "copyPolicy": {},
      +        "cta": {},
      +        "disclaimer": {},
      +        "eyebrow": {},
      +        "headline": {},
      +        "legal": {},
      +        "lockedTexts": {},
      +        "mandatoryElements": {},
      +        "supportingCopy": {}
      +      },
      +      "type": "object"
      +    },
      +    "craftPrecedents": {
      +      "default": [],
      +      "items": {
      +        "additionalProperties": {},
      +        "default": null,
      +        "propertyNames": {
      +          "type": "string"
      +        },
      +        "type": "object"
      +      },
      +      "type": "array"
      +    },
      +    "facts": {
      +      "default": [],
      +      "items": {
      +        "default": null,
      +        "properties": {
      +          "authority": {
      +            "anyOf": [
      +              {
      +                "type": "string"
      +              },
      +              {
      +                "type": "null"
      +              }
      +            ]
      +          },
      +          "capturedAt": {
      +            "anyOf": [
      +              {
      +                "type": "string"
      +              },
      +              {
      +                "type": "null"
      +              }
      +            ]
      +          },
      +          "evidenceId": {
      +            "anyOf": [
      +              {
      +                "type": "string"
      +              },
      +              {
      +                "type": "null"
      +              }
      +            ]
      +          },
      +          "extractedFacts": {
      +            "items": {},
      +            "type": "array"
      +          },
      +          "id": {
      +            "anyOf": [
      +              {
      +                "type": "string"
      +              },
      +              {
      +                "type": "null"
      +              }
      +            ]
      +          },
      +          "observedAt": {
      +            "anyOf": [
      +              {
      +                "type": "string"
      +              },
      +              {
      +                "type": "null"
      +              }
      +            ]
      +          },
      +          "publishedAt": {
      +            "anyOf": [
      +              {
      +                "type": "string"
      +              },
      +              {
      +                "type": "null"
      +              }
      +            ]
      +          },
      +          "sourceId": {
      +            "anyOf": [
      +              {
      +                "type": "string"
      +              },
      +              {
      +                "type": "null"
      +              }
      +            ]
      +          },
      +          "sourceRef": {
      +            "anyOf": [
      +              {
      +                "type": "string"
      +              },
      +              {
      +                "type": "null"
      +              }
      +            ]
      +          },
      +          "sourceType": {
      +            "anyOf": [
      +              {
      +                "type": "string"
      +              },
      +              {
      +                "type": "null"
      +              }
      +            ]
      +          },
      +          "sourceUrl": {
      +            "anyOf": [
      +              {
      +                "type": "string"
      +              },
      +              {
      +                "type": "null"
      +              }
      +            ]
      +          },
      +          "statement": {
      +            "anyOf": [
      +              {
      +                "type": "string"
      +              },
      +              {
      +                "type": "null"
      +              }
      +            ]
      +          },
      +          "summary": {
      +            "anyOf": [
      +              {
      +                "type": "string"
      +              },
      +              {
      +                "type": "null"
      +              }
      +            ]
      +          },
      +          "title": {
      +            "anyOf": [
      +              {
      +                "type": "string"
      +              },
      +              {
      +                "type": "null"
      +              }
      +            ]
      +          },
      +          "url": {
      +            "anyOf": [
      +              {
      +                "type": "string"
      +              },
      +              {
      +                "type": "null"
      +              }
      +            ]
      +          }
      +        },
      +        "type": "object"
      +      },
      +      "type": "array"
      +    },
      +    "locale": {
      +      "type": "string"
      +    },
      +    "opportunity": {
      +      "anyOf": [
      +        {
      +          "properties": {
      +            "audienceContext": {
      +              "type": "string"
      +            },
      +            "evidenceIds": {
      +              "items": {
      +                "type": "string"
      +              },
      +              "type": "array"
      +            },
      +            "evidenceSupport": {
      +              "items": {
      +                "properties": {
      +                  "evidenceId": {
      +                    "type": "string"
      +                  },
      +                  "quote": {
      +                    "type": "string"
      +                  }
      +                },
      +                "required": [
      +                  "evidenceId",
      +                  "quote"
      +                ],
      +                "type": "object"
      +              },
      +              "type": "array"
      +            },
      +            "id": {
      +              "type": "string"
      +            },
      +            "measurableHypothesis": {},
      +            "messagingTerritory": {
      +              "type": "string"
      +            },
      +            "objective": {
      +              "type": "string"
      +            },
      +            "proposedMessage": {
      +              "type": "string"
      +            },
      +            "reviewAt": {
      +              "type": "string"
      +            },
      +            "supportingEvidenceIds": {
      +              "items": {
      +                "type": "string"
      +              },
      +              "type": "array"
      +            },
      +            "title": {
      +              "type": "string"
      +            },
      +            "visualDirection": {
      +              "type": "string"
      +            },
      +            "visualTerritory": {
      +              "type": "string"
      +            }
      +          },
      +          "required": [
      +            "id"
      +          ],
      +          "type": "object"
      +        },
      +        {
      +          "type": "null"
      +        }
      +      ]
      +    },
      +    "schemaVersion": {
      +      "const": "design-evidence-context-v1",
      +      "type": "string"
      +    },
      +    "scope": {
      +      "properties": {
      +        "advertiserId": {
      +          "type": "string"
      +        },
      +        "tenantId": {
      +          "type": "string"
      +        }
      +      },
      +      "type": "object"
      +    }
      +  },
      +  "required": [
      +    "schemaVersion"
      +  ],
      +  "type": "object"
      +}
  3. Changed12 schema fields changed
    • addedInput schema / properties / contentLocale
      Added value: +{
      +  "type": "string"
      +}
    • addedInput schema / properties / contentLocales
      Added value: +{
      +  "items": {
      +    "type": "string"
      +  },
      +  "maxItems": 20,
      +  "type": "array"
      +}
    • addedInput schema / properties / defaultContentLocale
      Added value: +{
      +  "type": "string"
      +}
    • addedInput schema / properties / languageVariantGroupId
      Added value: +{
      +  "maxLength": 160,
      +  "minLength": 1,
      +  "type": "string"
      +}
    • addedInput schema / properties / marketContext
      Added value: +{
      +  "properties": {
      +    "currency": {
      +      "anyOf": [
      +        {
      +          "type": "string"
      +        },
      +        {
      +          "type": "null"
      +        }
      +      ]
      +    },
      +    "targetMarket": {
      +      "anyOf": [
      +        {
      +          "type": "string"
      +        },
      +        {
      +          "type": "null"
      +        }
      +      ]
      +    },
      +    "targetMarkets": {
      +      "items": {
      +        "type": "string"
      +      },
      +      "type": "array"
      +    },
      +    "timeZone": {
      +      "anyOf": [
      +        {
      +          "type": "string"
      +        },
      +        {
      +          "type": "null"
      +        }
      +      ]
      +    }
      +  },
      +  "type": "object"
      +}
    • addedInput schema / properties / marketLanguageProfile
      Added value: +{
      +  "additionalProperties": {},
      +  "propertyNames": {
      +    "type": "string"
      +  },
      +  "type": "object"
      +}
    • addedInput schema / properties / requestedOutputLocales
      Added value: +{
      +  "items": {
      +    "type": "string"
      +  },
      +  "maxItems": 20,
      +  "type": "array"
      +}
    • addedInput schema / properties / resolvedContentLocale
      Added value: +{
      +  "type": "string"
      +}
    • addedInput schema / properties / sourceLocale
      Added value: +{
      +  "type": "string"
      +}
    • addedInput schema / properties / supportedContentLocales
      Added value: +{
      +  "items": {
      +    "type": "string"
      +  },
      +  "maxItems": 20,
      +  "type": "array"
      +}
    • addedInput schema / properties / targetMarket
      Added value: +{
      +  "maxLength": 160,
      +  "minLength": 1,
      +  "type": "string"
      +}
    • addedInput schema / properties / targetMarkets
      Added value: +{
      +  "items": {
      +    "maxLength": 160,
      +    "minLength": 1,
      +    "type": "string"
      +  },
      +  "maxItems": 50,
      +  "type": "array"
      +}
  4. Changed3 schema fields changed
    • addedInput schema / properties / deliveryProfile
      Added value: +{
      +  "additionalProperties": {},
      +  "propertyNames": {
      +    "type": "string"
      +  },
      +  "type": "object"
      +}
    • addedInput schema / properties / expectedActiveVersionId
      Added value: +{
      +  "anyOf": [
      +    {
      +      "maxLength": 200,
      +      "minLength": 1,
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ]
      +}
    • changedInput schema / properties / saveToStudio / default
      Previous value: -falseNew value: +true
  5. Added

TDQS

A4.2/5.0
Behavior5/5

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

Beyond the annotations (writes, idempotent, non-destructive, closed-world), the description discloses that the call writes to Studio and incurs billable AI usage, that execution is durable, that the mutation modes are validate_only/preview_only/execute, and that partial failures use completed_items_not_rolled_back. It also explains the deterministic retry-key derivation when idempotencyKey is omitted and the requirement to supply seatId or seatName on the exact write call when multiple seats are authorized — all non-obvious operational constraints.

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

Conciseness5/5

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

The lead sentence front-loads the action and its render/compare/save behavior, with the scoping constraints (no CTA, no Display routing) and the deprecation note immediately after. The remaining text is dense but each clause carries an operational fact rather than restating the title.

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 lifecycle, failure, and seat/idempotency behavior are well covered, and an output schema exists so return values need no explanation. However, for a 37-parameter, deeply nested build tool with zero schema description coverage, the description leaves an agent without enough grounding to populate the creative, context, and copy-policy inputs 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?

Schema description coverage is 0% across 37 parameters, so the description must carry the load, yet it only explains saveToStudio, idempotencyKey, and seatId/seatName. Large nested objects such as doohContext, copyPolicy, designEvidenceContext, and the copy/assets structures are left wholly undocumented, and nothing indicates which of the optional inputs are effectively needed for a usable build.

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?

The description names a specific verb and resource ('Build a DOOH-native poster for an existing Studio creative') and pins down the scope: native render comparison, full editable version saved by default, no CTA buttons, and explicit non-routing through Display build_ad. It also flags its own status as a deprecated alias for build_dooh, which lets an agent separate it from siblings without opening a 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?

It states the decisive conditions: saving the complete editable version is the default, an explicit saveToStudio=false yields an unsaved preview, and below-threshold review keeps a technically valid version without release approval. The deprecated-alias note implies build_dooh is the preferred path, but it stops short of an explicit 'use build_dooh instead' instruction and gives no guidance on when validate_only versus preview_only versus execute should be chosen.

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.

Resources