Skip to main content
Glama

Generate media

creator_generate_media

Generate an image (PNG), an SVG (kind vector), music or speech into the document's media library as media/. It does not change the scene: the result shows the exact creator_exec code that uses the file. image: prompt describes the picture; transparent:true for a subject placed over the scene. vector: prompt draws a flat icon and traces it to SVG, or inputs:["media/.png"] traces an image. music: prompt is mood, genre and instruments; text is lyrics; durationS 5–180. speech: text is the exact words, style the delivery, voice a provider voice. Each call is billed. A result not ready within the server's wait comes back as {status:"generating"}: call creator_download_file(file), which waits for it, until it is ready; do not generate it again. A taken name fails unless replace:true.

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": {
      "kind": "<kind>"
    },
    "name": "creator_generate_media"
  }
}

Input Schema

NameRequiredDescriptionDefault
kindYesimage | vector (SVG) | music | speech.
nameNoFile name without path, e.g. "intro"; the extension follows the kind. Default: from the words.
textNospeech: the exact words to speak (required). music: lyrics; omit for an instrumental.
maxPxNoimage: longest edge in pixels, 64–2048 (default 1024); a placed image costs width×height×4 bytes.
styleNoStyle guidance; speech: the delivery (tone, pace, accent).
voiceNospeech: a provider voice (openai: marin, cedar, coral, sage, …; minimax: English_Graceful_Lady, …).
inputsNoimage: media PNGs to edit or match; vector: the one image to trace.
promptNoimage, vector, music: what to make. Speech does not use it.
replaceNoRegenerate an existing name; the earlier file stays readable until the new one is ready.
providerNoOmit unless the user names a provider.
durationSNomusic: length in seconds, 5–180 (default 30).
documentIdNoDocument the media belongs to (default "default").
aspectRatioNoimage: the frame shape.
transparentNoimage: true for a subject over the scene; false for a full-frame background.

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.3/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=false, openWorldHint=true, idempotentHint=false and destructiveHint=false, so the write/non-idempotent profile is structured. The description still adds genuinely new context: per-call billing, the {status:"generating"} async return and its polling resolution, and the taken-name failure unless replace:true. It does not contradict the annotations.

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?

About 150 dense words for a 14-parameter, four-mode tool, front-loaded with the core action and scope before mode specifics. Sentences such as 'Each call is billed' and the generate/download warning are short and each carries distinct information; nothing is repeated from the schema verbatim.

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?

Output schema exists, so return values need not be explained, and the description instead covers the one thing the schema cannot: what happens when a result is not ready. Mode selection, billing, naming collisions, and the replace behavior are all present for a complex generation tool.

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 coverage is 100% and the schema descriptions already spell out most per-kind parameter roles, so the baseline of 3 applies. The description adds some cross-cutting meaning beyond the schema, notably that image costs width×height×4 bytes and the transparent/aspectRatio tradeoff between subject and full-frame background.

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?

States a specific verb and resource bundle: 'Generate an image (PNG), an SVG (kind vector), music or speech into the document's media library as media/<name>'. It also explicitly scopes itself against the scene-mutating siblings ('It does not change the scene') and points to creator_exec for using the output, so an agent can separate it from creator_exec/creator_import_media 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 Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Gives per-mode selection rules (image for pictures, vector for flat icons/tracing, music with text as lyrics, speech with text as exact words) plus exclusions such as 'Speech does not use it' for prompt. It also routes the async case to creator_download_file and warns 'do not generate it again', which is an explicit alternative-and-condition pairing.

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.