Skip to main content
Glama

add_shot_media_ref

Add a fine-grained media reference to a shot: image, video, startFrame, endFrame, or referenceFrame. Can also update legacy imageMediaId/videoMediaId for compatibility.

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>",
      "mediaId": "<mediaId>",
      "role": "<role>"
    },
    "name": "add_shot_media_ref"
  }
}

Input Schema

NameRequiredDescriptionDefault
roleYesHow this media is used in the shot
orderNoTab/order within the shot; auto-appends if omitted
editIdYesThe edit ID
shotIdYesThe shot ID
mediaIdYesReferenced MediaDocV2 ID
workspaceIdYesThe workspace ID
versionOverrideNoOptional media version override
replaceExistingRoleNoRemove existing refs with the same role before adding this one
alsoSetPrimaryMediaIdNoFor image/video roles, also set imageMediaId/videoMediaId

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changed
    • removedInput schema / additionalProperties
      Removed value: -false
    • addedInput schema / properties / order / maximum
      Added value: +9007199254740991
    • addedInput schema / properties / versionOverride / maximum
      Added value: +9007199254740991
  2. First observed

TDQS

B3.2/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 disclosure burden. It usefully explains the distinction between fine-grained refs and legacy imageMediaId/videoMediaId fields, which is conceptual context beyond the schema. However, it omits permission/auth requirements, failure behavior when a role already exists, and what the call returns.

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 tight sentences with zero filler, and the core action plus supported roles are front-loaded. The legacy-compatibility sentence is secondary but short enough to justify its place.

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

Completeness3/5

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

For a 9-parameter mutation with no annotations and no output schema, the description covers the 'what' but not the operational context an agent needs: it never mentions replaceExistingRole semantics, ordering behavior, or the result of the call. The rich schema compensates somewhat, making this adequate but with clear gaps.

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 every parameter including role, order, replaceExistingRole, and alsoSetPrimaryMediaId is already documented in the schema. The description's enumeration of roles duplicates the enum rather than adding meaning, so the baseline of 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?

The description names a specific verb and resource ('Add a fine-grained media reference to a shot') and enumerates the five supported roles, so the agent knows exactly what class of operation this is. The verb 'add' implicitly separates it from the delete_/update_shot_media_ref siblings, though no sibling is named explicitly.

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

Usage Guidelines2/5

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

There is no statement of when to use this tool versus update_shot_media_ref, delete_shot_media_ref, or add_media_overlay. The only contextual hint is the legacy imageMediaId/videoMediaId compatibility note, which describes an effect rather than a usage condition, and no prerequisites or exclusions are given.

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.