Skip to main content
Glama

Generate Media

generate_media
Destructive

Generate and transform media; every action that renders spends credits, so check get_generation_catalog first and poll check_job until the job ends. media makes an image, video, voice or music; transform edits existing media; model_3d makes a 3D model; visual_code, visual_code_revise, visual_code_retry, visual_code_export and visual_code_cancel run coded visuals; plan_video, plan_slideshow and plan_long_form plan a piece and start_video, start_slideshow and start_long_form run the approved plan. Cost comes from the approved find_tools quote.

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": {
      "action": "<action>",
      "input": "<input>"
    },
    "name": "generate_media"
  }
}

Input Schema

NameRequiredDescriptionDefault
inputYesThe fields of the chosen action.
actionYesmedia: Generate image, video, voice (TTS) or music. transform: Transform existing media; fields for other operations reject. model_3d: Render a photo as a 3D model. visual_code: Create a versioned visual project from prompt or React/Remotion source. visual_code_revise: Create an immutable visual revision using exactly one prompt, sourceCode or props change and an approved quote. visual_code_retry: Explicitly retry failed/cancelled visual source with new requestId and approved quote. visual_code_export: Export retained source to MP4, PNG or JPEG Library outputs using an approved quote and expectedRevision. visual_code_cancel: Request cancellation of the current visual revision. plan_video: Work on a realistic shot-by-shot video (up to 12 shots, under a minute). start_video: Start one quoted paid stage of a realistic video after the user accepts the price from generate_media(action=plan_video) quote. plan_slideshow: Work on a photo slideshow (a swipeable 4:5 carousel for Instagram, TikTok or LinkedIn). start_slideshow: Start the quoted slide images of a slideshow after the user accepts the price from generate_media(action=plan_slideshow) quote. plan_long_form: Work on a long-form storyboard (voice note to presenter video). start_long_form: Start one quoted paid stage of a long-form storyboard after the user accepts the price from generate_media(action=plan_long_form) quote.
organizationNoOrganization this call acts in: its name, slug or id from get_context(action=organizations). Required when the connection covers several organizations (a call without it is refused with the list of organizations and their brands); a connection limited to one organization works inside it, so leave this argument out there (naming any organization is refused).

Output Schema

NameRequiredDescriptionDefault
dataNo
messageNo
artifactNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already flag destructiveHint=true, openWorldHint=true and non-idempotent, so the safety bar is partly met; the description adds the crucial economic behavior that 'every action that renders spends credits', plus the required catalog pre-check and job polling loop. It does not spell out what a failed or cancelled render leaves behind, nor how credits are actually reserved, which keeps it short of a 5.

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?

Front-loading the credit warning and the catalog/poll prerequisites before the action inventory is the right ordering. The action list is one long semicolon chain, which is dense but each clause earns its place for a 14-action tool; a light bulleted structure would have been clearer.

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 tool this complex, with an output schema present, the description covers purpose, prerequisites, polling, and cost awareness, which is most of what an agent needs. The gap is the plan-to-start workflow ordering (draft_plan, approve_plan, quote, start) and the ambiguous quote source, which are only recoverable from the nested schemas.

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% and the `action` enum already carries a per-value description, so the prose restating 'media makes an image... transform edits existing media' largely duplicates structured data. It adds one genuinely new pointer ('Cost comes from the approved find_tools quote'), but that arguably competes with the schema's own claim that price comes from the generate_media(action=plan_video) quote.

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 opening sentence names a specific verb and resource ('Generate and transform media'), and the following clauses decompose all 14 actions into concrete buckets: 'media makes an image, video, voice or music', 'transform edits existing media', 'model_3d makes a 3D model'. An agent can map an intent to an action without opening the schema, even though this is a very broad multi-action tool.

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 gives real routing guidance: 'check get_generation_catalog first' before rendering, 'poll check_job until the job ends', and plan_* actions plan while start_* actions 'run the approved plan'. What is missing is any exclusion against outside siblings such as generate_text or run_remix, and it never says which actions are free versus paid (plan_* appear to spend nothing, but the reader must infer that).

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.