Skip to main content
Glama

Get a clip's raw XMP

get_item_xmp
Read-onlyIdempotent

Return the raw XMP packet (XML) and total length for a Premiere Pro project item’s media, with long packets truncated at max_length; use the property tool to read a single value.

Instructions

Return the raw XMP packet (XML text) of a project item's media, with its total length. Long packets are cut at max_length characters (truncated=true). To read one value use get_item_xmp_property instead.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "get_item_xmp"
  }
}

Input Schema

NameRequiredDescriptionDefault
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".
max_lengthNoMaximum number of characters of XMP to return. Default 20000.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint, and destructiveHint=false, so safety is covered. The description adds genuinely new behavioral detail: the return is raw XML text accompanied by total length, and long packets are cut at max_length with truncated=true signalled to the caller. That truncation contract is the key operational nuance and it is disclosed.

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?

Two sentences, front-loaded with the return content and followed by the truncation rule and the sibling redirect. No filler, no restatement of the title, and the alternative pointer sits exactly where an agent deciding between tools would need it.

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?

With no output schema, the description carries the burden of describing the return, and it does: XML text, total length, and the truncated flag. Parameters are fully covered by the schema. It stops short of describing failure behavior when an item identifier matches nothing, which would round out an otherwise complete definition.

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 all four parameters are already documented, and the baseline would be 3. The description still earns extra credit by explaining the observable consequence of max_length — output is cut at that many characters and a truncated=true flag is returned — which the schema alone does not convey.

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?

States a specific verb and resource — 'Return the raw XMP packet (XML text) of a project item's media' — and immediately distinguishes it from the closest sibling, get_item_xmp_property. An agent can tell exactly which tool retrieves the full packet versus a single value.

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?

Names the alternative explicitly ('To read one value use get_item_xmp_property instead') and thereby gives the condition that selects it. It does not address other metadata-reading siblings such as get_item_metadata, so the routing guidance is clear but not exhaustive.

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