Skip to main content
Glama

update_shot_media_ref

Update a specific shot media ref by matching mediaId and optional role. Can change role, order, mediaId, and version override.

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

Input Schema

NameRequiredDescriptionDefault
roleNoCurrent role to match
orderNoReplacement order
editIdYesThe edit ID
shotIdYesThe shot ID
mediaIdYesCurrent media ID to match
newRoleNoReplacement role
newMediaIdNoReplacement media ID
workspaceIdYesThe workspace ID
versionOverrideNoReplacement version override, or null to clear
alsoSetPrimaryMediaIdNoFor image/video roles, also update 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
    • changedInput schema / properties / versionOverride / anyOf
      Previous value: -[
      -  {
      -    "exclusiveMinimum": 0,
      -    "type": "integer"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]New value: +[
      +  {
      +    "exclusiveMinimum": 0,
      +    "maximum": 9007199254740991,
      +    "type": "integer"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
  2. First observed

TDQS

B3.2/5.0
Behavior2/5

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

No annotations are supplied, so the description carries the full behavioral burden for a mutation. It omits critical behavior: what happens if no ref matches mediaId/role (error vs no-op), whether changes are reversible, whether permissions are required, and the side effect of alsoSetPrimaryMediaId defaulting to true. Listing the mutable fields is all it discloses.

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 short sentences with the resource and matching key front-loaded and no filler. It is efficient, though the second sentence is a bare field list rather than structured explanation.

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 10-parameter mutation with no annotations and no output schema, the description is minimally adequate: it names the fields being changed but leaves match-failure behavior and the effect of alsoSetPrimaryMediaId unexplained. An agent could call it but could not predict edge-case outcomes.

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%, so the schema already defines all ten parameters including the enum role values and the null-to-clear semantics of versionOverride. The description adds only the match-vs-replace distinction (mediaId/role identify, newMediaId/newRole replace), which is useful but thin against a 10-parameter schema.

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 ("Update a specific shot media ref") and clarifies the matching key (mediaId plus optional role), which distinguishes it from add_shot_media_ref and delete_shot_media_ref. It does not name those siblings explicitly, so differentiation is implied 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 Guidelines3/5

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

The word "Update" plus the match-on-mediaId phrasing implies this is for modifying an existing ref rather than adding or removing one, but there is no explicit when-to-use/when-not guidance or named alternative. An agent must infer the boundary with add_shot_media_ref and delete_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.