Skip to main content
Glama

Replace a clip's XMP

set_item_xmp
Destructive

Replaces the entire XMP packet of a Premiere Pro project item with XML you supply, validating it first and rejecting invalid packets. Use it to write metadata back into the media file on disk.

Instructions

Replace the whole XMP packet of a project item with the XML you pass (start from get_item_xmp with a large max_length). The packet is parsed first and rejected with BAD_ARGS when it is not an XMP packet. Premiere writes XMP back into the media file on disk for formats that support it. To change one value use set_item_xmp_property.

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": {
      "xmp": "<xmp>"
    },
    "name": "set_item_xmp"
  }
}

Input Schema

NameRequiredDescriptionDefault
xmpYesComplete XMP packet as XML text.
item_idNoStable project item id (from list_project_items). Preferred.
item_nameNoItem name; the first match in the project is used.
item_pathNoPath in the Project panel, e.g. "Footage/Day 1/clip.mp4".

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A4.6/5.0
Behavior4/5

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

Annotations already flag destructiveHint=true and readOnlyHint=false, so safety is partly covered; the description still adds real behavioral value by disclosing that the packet is parsed and rejected with BAD_ARGS if invalid, and that Premiere writes XMP back into the media file on disk. It stops short of saying whether the on-disk write is reversible or how to restore a prior packet, which is the main remaining gap for a destructive tool.

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 sentences, front-loaded with the scope of the operation, then validation behavior, then the alternative. Every sentence carries distinct information and nothing is repeated from the name or title.

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 destructive mutation with full schema coverage and annotations, the definition covers purpose, input sourcing, failure mode, disk side effects, and the alternative. The only minor omission is any hint of what the call returns or how to recover the overwritten packet, which matters somewhat given there is no output schema.

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 meaning beyond the schema by explaining how to source the required xmp string (a full packet from get_item_xmp with a large max_length), which is nontrivial for callers. It does not discuss choosing among item_id, item_name, and item_path beyond what the schema already says.

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 definition gives a specific verb and resource ('Replace the whole XMP packet of a project item') and states the scope explicitly as a whole-packet replacement. It directly distinguishes itself from set_item_xmp_property by naming it as the single-value path, so an agent can route without reading either schema.

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

Usage Guidelines5/5

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

It states a prerequisite (start from get_item_xmp with a large max_length so you have a full packet to modify) and names the alternative (set_item_xmp_property) with the condition that selects it. Both when-to-use and when-not-to-use are covered.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Deploy Server

Other Tools