Skip to main content
Glama

regenerate_shot_image

Destructive

Regenerate the starting image of an existing shot as the next version. Keeps the same shot and image media IDs, preserves previous versions, and selects the new image in the shot on success. Use this for a shot retake or revised shot image. May spend Sequencer credits.

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>",
      "shotId": "<shotId>"
    },
    "name": "regenerate_shot_image"
  }
}

Input Schema

NameRequiredDescriptionDefault
modelNoImage model ID. Defaults to the selected start frame model, then project settings.
editIdYesThe edit ID
promptNoFull image generation prompt. Omit to reuse the selected start frame prompt.
shotIdYesThe existing shot that receives the image version
maxCostUsdNoMaximum charge for each output. Checked against authoritative pricing before generation.
resolutionNoOutput resolution from the selected model catalog.
aspectRatioNo
mediaInputsNoNamed media slots from get_model_catalog. MAGI-2 reference image, video and audio slots accept ordered arrays.
workspaceIdYesThe workspace ID
modelVariantNoVariant value from get_model_catalog variantSelector.options, such as high for Flare quality. Uses the catalog default when omitted.
modelSettingsNoModel-specific controls using keys and options from get_model_catalog inputConstraints.slots or variantSelector.
idempotencyKeyNoStable request key. Retries with the same key reuse the existing output and do not start another paid generation.
negativePromptNo
sourceImageUrlNoPublic HTTP(S) source image/start-frame URL. Use mediaId for workspace images.
expectedMediaIdNoCurrent shot image ID from get_shot. A changed attachment prevents generation.
referenceImagesNoImages to guide generation. Use labels such as person or product and refer to them as @person or @product in the prompt. Each item accepts a workspace mediaId or a public HTTP(S) URL.
sourceImageMediaIdNoWorkspace image to use as the source image/start frame.
expectedVersionNumberNoCurrent selected start frame version from get_shot. A changed selection prevents generation.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed5 schema fields changed
    • addedInput schema / properties / mediaInputs / additionalProperties / anyOf
      Added value: +[
      +  {
      +    "properties": {
      +      "durationSeconds": {
      +        "description": "Length of a timed reference when workspace media metadata is unavailable.",
      +        "exclusiveMinimum": 0,
      +        "type": "number"
      +      },
      +      "label": {
      +        "pattern": "^[A-Za-z][A-Za-z0-9_-]{0,39}$",
      +        "type": "string"
      +      },
      +      "mediaId": {
      +        "minLength": 1,
      +        "type": "string"
      +      },
      +      "url": {
      +        "format": "uri",
      +        "type": "string"
      +      }
      +    },
      +    "type": "object"
      +  },
      +  {
      +    "items": {
      +      "properties": {
      +        "durationSeconds": {
      +          "description": "Length of a timed reference when workspace media metadata is unavailable.",
      +          "exclusiveMinimum": 0,
      +          "type": "number"
      +        },
      +        "label": {
      +          "pattern": "^[A-Za-z][A-Za-z0-9_-]{0,39}$",
      +          "type": "string"
      +        },
      +        "mediaId": {
      +          "minLength": 1,
      +          "type": "string"
      +        },
      +        "url": {
      +          "format": "uri",
      +          "type": "string"
      +        }
      +      },
      +      "type": "object"
      +    },
      +    "maxItems": 10,
      +    "minItems": 1,
      +    "type": "array"
      +  }
      +]
    • removedInput schema / properties / mediaInputs / additionalProperties / properties
      Removed value: -{
      -  "label": {
      -    "pattern": "^[A-Za-z][A-Za-z0-9_-]{0,39}$",
      -    "type": "string"
      -  },
      -  "mediaId": {
      -    "minLength": 1,
      -    "type": "string"
      -  },
      -  "url": {
      -    "format": "uri",
      -    "type": "string"
      -  }
      -}
    • removedInput schema / properties / mediaInputs / additionalProperties / type
      Removed value: -"object"
    • changedInput schema / properties / mediaInputs / description
      Previous value: -"Named media slots from get_model_catalog, for example reference_image_uri or mask_url."New value: +"Named media slots from get_model_catalog. MAGI-2 reference image, video and audio slots accept ordered arrays."
    • addedInput schema / properties / referenceImages / items / properties / durationSeconds
      Added value: +{
      +  "description": "Length of a timed reference when workspace media metadata is unavailable.",
      +  "exclusiveMinimum": 0,
      +  "type": "number"
      +}
  2. Changed10 schema fields changed
    • removedInput schema / additionalProperties
      Removed value: -false
    • addedInput schema / properties / expectedVersionNumber / maximum
      Added value: +9007199254740991
    • removedInput schema / properties / mediaInputs / additionalProperties / $ref
      Removed value: -"#/properties/referenceImages/items"
    • addedInput schema / properties / mediaInputs / additionalProperties / properties
      Added value: +{
      +  "label": {
      +    "pattern": "^[A-Za-z][A-Za-z0-9_-]{0,39}$",
      +    "type": "string"
      +  },
      +  "mediaId": {
      +    "minLength": 1,
      +    "type": "string"
      +  },
      +  "url": {
      +    "format": "uri",
      +    "type": "string"
      +  }
      +}
    • addedInput schema / properties / mediaInputs / additionalProperties / type
      Added value: +"object"
    • addedInput schema / properties / mediaInputs / propertyNames
      Added value: +{
      +  "type": "string"
      +}
    • removedInput schema / properties / modelSettings / additionalProperties / anyOf
      Removed value: -[
      -  {
      -    "type": "string"
      -  },
      -  {
      -    "type": "number"
      -  },
      -  {
      -    "type": "boolean"
      -  }
      -]
    • addedInput schema / properties / modelSettings / additionalProperties / type
      Added value: +[
      +  "string",
      +  "number",
      +  "boolean"
      +]
    • addedInput schema / properties / modelSettings / propertyNames
      Added value: +{
      +  "type": "string"
      +}
    • removedInput schema / properties / referenceImages / items / additionalProperties
      Removed value: -false
  3. Added

TDQS

A3.8/5.0
Behavior3/5

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

Adds real behavior beyond the annotations: same shot and image media IDs are retained, previous versions are preserved, the new image is auto-selected on success, and the call may spend credits. However, the annotations declare destructiveHint=true while the description emphasizes preservation, and the description does not reconcile that tension, state what is actually replaced or rolled back on failure, or quantify credit spend. Valuable context, but incomplete for an 18-parameter paid mutation.

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?

Three short sentences, front-loaded with the action and its versioning semantics, followed by the use case and the cost warning. Nothing is redundant and the important side effects appear before the advisory note.

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 complex, non-idempotent paid generation tool with no output schema, the description covers the meaningful outcome (new version, auto-selected image, preserved history) and the cost implication. Gaps remain around failure/partial-result behavior and how it differs from the other image tools, but the schema carries the parameter detail.

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 89%, so the schema already explains nearly every parameter (model, prompt, maxCostUsd, referenceImages, expectedMediaId, idempotencyKey, etc.). The description adds no parameter-level meaning beyond echoing that the shot and image media IDs stay the same, so the baseline 3 applies.

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 – regenerate the starting image of an existing shot – plus the outcome (a new version attached to the same shot). It implicitly separates itself from plain generation by scoping to an existing shot, but never names generate_image or edit_image as the alternative, so sibling differentiation is inferred rather than stated.

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?

Gives a clear use case: 'Use this for a shot retake or revised shot image,' which tells the agent the situation that selects this tool. It stops short of exclusions – nothing says when to prefer edit_image or generate_image instead, or what preconditions (e.g., an existing shot image) are required.

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.