Skip to main content
Glama

BrandGene Context

Generate branded ad image (credits)

generate_ad_image

Generate a publication-ready branded ad image using BrandGene credits (6 credits for 1K, 9 for 2K, 19 for 4K). Automatically injects your brand DNA, optional campaign angles, headline/CTA copy, and real product photos, brand style references, and logo. Defaults to your active brand when brandId is omitted; requires at least one saved brand, product, or campaign.

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": {
      "prompt": "<prompt>"
    },
    "name": "generate_ad_image"
  }
}

Input Schema

NameRequiredDescriptionDefault
ctaNoOptional exact call-to-action badge or button text (e.g. 'Shop Now').
promptYesAd creative brief describing the visual scene, subject, and composition.
adStyleNoOptional commercial ad format preset to guide art direction.
brandIdNoOptional BrandGene brand ID to inject brand DNA. Defaults to the product's linked brand or your active brand.
headlineNoOptional exact headline copy to render cleanly on the ad image.
imageSizeNoResolution tier: 1K (6 credits), 2K (9 credits), or 4K (19 credits). Default 1K.
productIdNoOptional BrandGene product ID to inject product selling points and real product photos.
campaignIdNoOptional BrandGene campaign ID to inject objective, audience, channels, angles, and linked product.
aspectRatioNoOutput aspect ratio (default 1:1).
includeLogoNoAutomatically attach the saved brand logo as a visual reference when a brand is resolved (default true).
includeBrandImagesNoWhen no product photos are attached, automatically attach up to 2 saved brand visual reference images for style consistency (default true).
includeProductImagesNoAutomatically attach up to 2 saved product photos as visual references when a product is resolved (default true).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.6/5.0
Behavior5/5

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

Beyond the annotations (readOnlyHint=false, openWorldHint=true, idempotentHint=false), the description discloses the credit cost that each resolution tier consumes and that the call automatically injects brand DNA, headline/CTA copy, product photos, style references, and logo. Cost-per-call is exactly the billing context annotations cannot convey, and the auto-attachment behavior explains side effects the agent would otherwise not anticipate.

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?

Two sentences, front-loaded with the action and its cost, followed by defaults and prerequisites. Nothing is redundant with the title and no sentence is padding.

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 12-parameter, credit-consuming generation tool with no output schema, the description covers cost, defaults, and the minimum precondition well. It does not describe what comes back (image URL, assets, or metadata), which is the one gap an agent would want filled given there is no output schema.

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 would be 3, but the description adds the cross-parameter rule that brandId defaults to the active brand and that at least one brand/product/campaign must resolve. It also restates the credit mapping that the schema already carries, so the gain over the schema is modest but real.

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?

"Generate a publication-ready branded ad image" gives a specific verb plus resource, and the credit pricing by resolution tier makes the operation unmistakable. It is clearly distinguishable from the sibling get_*/upsert_* context tools, which neither generate nor consume credits.

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 a real precondition for calling: at least one saved brand, product, or campaign must exist, and brandId falls back to the active brand when omitted. It does not name any when-not-to-use case or an alternative path, but no sibling offers an alternative generation route, so the guidance is clear context rather than full routing.

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.