Skip to main content
Glama

Attach a custom property to a sequence

attach_sequence_custom_property
Idempotent

Store custom key/value metadata on a Premiere Pro sequence, saved in the project file, to tag shots or pipeline states; attaching the same property id replaces its value.

Instructions

Store a custom key/value pair on a sequence, saved inside the project file, so pipelines can tag sequences with their own ids or states. It travels with the sequence, for example into a project written by export_sequence_as_project. The scripting API cannot read such properties back, so keep your own record of what you attached. Attaching the same property_id again replaces its value. Returns attached=true with the id and value.

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": {
      "property_id": "<property_id>",
      "value": "<value>"
    },
    "name": "attach_sequence_custom_property"
  }
}

Input Schema

NameRequiredDescriptionDefault
valueYesValue to store (text).
property_idYesProperty name: letters, digits, dots, hyphens and underscores, starting with a letter or underscore, e.g. "mycompany.shot_id".
sequence_idNoStable sequence id (from list_sequences). Omit to use the active sequence.
sequence_nameNoSequence name; used only when sequence_id is not given.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A4.4/5.0
Behavior5/5

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

Beyond the annotations, it discloses non-obvious behavior: the pair is saved in the project file and travels with the sequence (e.g. into export_sequence_as_project output), values are write-only from the caller's perspective, and re-attaching the same property_id replaces the previous value — which explains the idempotentHint. It also describes the return payload (attached=true with id and value).

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?

Four short sentences, front-loaded with what is stored, followed by persistence, the read-back caveat, and replace/return semantics. No sentence is filler.

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

Completeness5/5

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

For a non-destructive, idempotent write tool with full schema coverage and no output schema, the description covers persistence, replace behavior, the no-readback limitation, and the return value — everything an agent needs to call it safely and interpret the result.

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; the description adds real meaning by stating that property_id acts as a replace-key and that value is stored as text within the project, which is not evident from the schema alone.

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 ("Store a custom key/value pair on a sequence") and states where it persists (inside the project file), which separates it from item-level property tools like set_item_xmp_property. It stops short of explicitly naming the sibling tools it differs from, but scope (sequence-level, project-persisted) is clear enough to choose correctly.

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?

It gives concrete usage context — tagging sequences with pipeline ids or states — and an important exclusion-by-limitation: the scripting API cannot read the values back, so the caller must keep its own record. It does not say when to prefer XMP property tools or what to do for item-level metadata, so it is not a full when/when-not/alternatives statement.

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