Skip to main content
Glama

Metadata MCP Connector

Render Flexible Creative to PNG

render_flexible_creative
Destructive

Flatten a layered flexible-creative document into a final PNG (rendered from the SAME layout the editor shows) and upload it to the creatives library. Returns the rendered image URL, the library image id, and pixel dimensions.

INTERNAL SAVE-PATH TOOL — invoked by the backend when the user clicks Save in the editor; not part of the chat generation flow. Renders the doc's background + text/CTA/logo/image layers so the flat image is pixel-identical to the editor preview.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
nameNoOptional library name for the rendered image. Omit it and one is derived from the doc as `<brand-domain>-<channel>-<width>x<height>.png`, which is normally what you want. Must end in a file extension.
designYesThe layered creative document to flatten (canvas, background, layers, brand) — the same JSON the editor edits.
upload_to_libraryNoPush the rendered PNG to the creatives library. Default: true.
archive_library_image_idNoOptional. The library image id this save supersedes (the creative's previous render). Archived on the platform ONLY after the new upload succeeds, so re-saving an editable creative retires the old PNG instead of piling up dead library images. Never affects an ad already built from it.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.4/5.0
Behavior5/5

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

The description adds concrete behavior beyond the annotations: it both flattens the document and uploads the PNG to the creatives library, returns specific values, and guarantees the output is pixel-identical to the editor preview. It also labels itself as the internal save-path tool, adding workflow context not captured by the readOnly and destructive flags. No contradiction with the annotations exists.

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

Conciseness4/5

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

The definition is front-loaded with the core action and result, then adds a short internal-context note. The only minor waste is that 'SAME layout the editor shows' and 'pixel-identical to the editor preview' express the same idea twice, but overall it is tight.

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

Completeness5/5

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

With no output schema, the description supplies the return contract (URL, image id, dimensions). It also gives the internal save-path context, the required design object is documented in the schema, and the archive/upload semantics are covered in the parameter descriptions, so an agent has everything needed to invoke it correctly.

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

Parameters3/5

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

Schema description coverage is 100%, so the baseline is 3 and the schema already defines all four parameters including defaults. The description's return-value statement is useful but does not add parameter-level meaning beyond what the schema provides.

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 concrete operation—flattening a layered flexible-creative document to PNG and uploading it—plus the exact return values (URL, image id, dimensions). It also distinguishes the tool from creative-generation siblings by labeling it the internal save-path render that matches the editor preview.

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?

The description explicitly says this is invoked by the backend when a user clicks Save in the editor and states it is not part of the chat generation flow. It does not name a specific alternative tool, but the when/when-not context is clear enough for 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.

Resources