Skip to main content
Glama

create_shot_with_media

Create a shot with an image prompt in one call. Resolves tagged assets (characters, locations) to get descriptions and reference images, applies the prompt formula from edit settings, then either triggers generation immediately (if all reference images are ready) or queues for dependency-driven generation.

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": {
      "workspaceId": "<workspaceId>",
      "editId": "<editId>",
      "sceneId": "<sceneId>",
      "prompt": "<prompt>"
    },
    "name": "create_shot_with_media"
  }
}

Input Schema

NameRequiredDescriptionDefault
modelNoImage model ID (uses the edit default or Nano Banana Pro if not specified)
orderNoShot order within the scene (auto-appends to end if not provided)
editIdYesThe edit ID
promptYesImage generation prompt (visual description ONLY). Use @tags for character/location references (e.g. "@John walks through @CityPark"). Never include dialogue, narration, or spoken text here because it may render visibly in the image.
sceneIdYesThe scene this shot belongs to
dialogueNoVisible on-screen character speech for this shot. Stored separately for intentional lip-sync/TTS use. Do not use for off-screen narration or captions.
durationNoEditorial shot duration in seconds. Five seconds is only a compatibility fallback. For planned edits, choose and pass the duration that fits this shot's narration or story beat.
aspectRatioNoFallback aspect ratio only used if the edit has no aspectRatio. Shots normally inherit the edit aspect ratio.
videoPromptNoVideo/motion prompt describing camera movement and action for video generation. Include speech only when visible on-screen character lip-sync is intentionally required. Never include off-screen narration.
workspaceIdYesThe workspace ID
taggedAssetsNoAssets to tag in this shot (characters, locations, props, styles)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • removedInput schema / additionalProperties
      Removed value: -false
    • removedInput schema / properties / taggedAssets / items / additionalProperties
      Removed value: -false
  2. First observed

TDQS

A3.6/5.0
Behavior3/5

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

With no annotations, the description carries the full burden, and it does disclose the key branch: generation fires immediately when all reference images are ready, otherwise the shot is queued for dependency-driven generation. That is genuinely useful behavioral context. It still omits cost/credit implications, permission requirements, and what the caller should do with a queued shot.

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?

Two front-loaded sentences with essentially no filler; the purpose lands before the mechanism. The second sentence is a fairly long run-on covering three sequential steps, which slightly hurts scannability but not content value.

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 an 11-parameter creation tool with no annotations and no output schema, the description covers the tricky part (the conditional generate-vs-queue behavior) and the prompt/tag processing pipeline. It stops short of describing what is returned (e.g. a shot ID or job handle) or what happens on an unresolved tag, which matters since no output schema exists.

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 is 3, but the description adds cross-parameter meaning: `taggedAssets` are resolved into descriptions and reference images, and the `prompt` is transformed by the edit's prompt formula. That explains how parameters interact rather than restating field docs.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource ("Create a shot with an image prompt") and adds a concrete mechanism: resolving tagged assets, applying the edit's prompt formula, then generating or queueing. However, it never distinguishes itself from the sibling `create_shot`, so an agent cannot tell from this text alone which of the two to pick.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

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

Usage is only implied: "in one call" hints that this is the consolidated alternative to creating a shot and then attaching media separately, but no sibling is named and there is no explicit when-to-use or when-not guidance (e.g. versus create_shot plus add_shot_media_ref).

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.