Skip to main content
Glama

put_composition

Idempotent

Create or replace a complete composition document with elements and metadata, converting older scene-based documents to the version 2 format.

Instructions

Create or replace a whole composition document: { version: 2, meta, elements } (a version 1 document with scenes is turned into this on the way in). Footage is an element of type "video" (props src: a path under media/, or the absolute path of a linked video, as list_references gives it; in, start, rate, fit); music, voice-over and effects go in meta.sounds (see add_sound).

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": {
      "name": "<name>",
      "composition": "<composition>"
    },
    "name": "put_composition"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameYes
basisNoWhat you read and followed to make this change, as refs from search or lookup: rule:<lint or taste rule>, taste, feedback:<id> (earlier feedback this follows; what it answers goes in feedback), commit:<id> (an earlier change it builds on), asset:, template:, skill:… The person sees them under the change, so they know why it is this way. Name only what shaped it.
messageNoOne line saying why, kept with the change in the history
feedbackNoIds of the feedback this change answers (notes and marks from list_notes, list_examples or the conversation). When the person keeps the change it joins the record of that feedback, and when they then mark the feedback resolved it is the fix; when they take it back, the feedback opens again.
confidenceNoHow sure you are this change is what the person wants. high: they asked for exactly this, or you measured it against a reference. medium: you inferred it from the taste, a rule or earlier feedback. low: you are guessing, or it changes something they did not ask about. The person's threshold decides which changes stand by themselves and which wait for them to keep; say it honestly on every change.
compositionYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changedv0.1.2
    • addedInput schema / properties / composition / anyOf
      Added value: +[
      +  {
      +    "required": [
      +      "elements"
      +    ]
      +  },
      +  {
      +    "required": [
      +      "scenes"
      +    ]
      +  }
      +]
    • removedInput schema / properties / composition / required
      Removed value: -[
      -  "scenes"
      -]
    • addedInput schema / properties / confidence
      Added value: +{
      +  "description": "How sure you are this change is what the person wants. high: they asked for exactly this, or you measured it against a reference. medium: you inferred it from the taste, a rule or earlier feedback. low: you are guessing, or it changes something they did not ask about. The person's threshold decides which changes stand by themselves and which wait for them to keep; say it honestly on every change.",
      +  "enum": [
      +    "high",
      +    "medium",
      +    "low"
      +  ]
      +}
  2. First observedv0.1.0

TDQS

A3.9/5.0
Behavior4/5

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

Annotations already declare idempotentHint=true and destructiveHint=false, so the bar is lower, yet the description adds real context: version 1 documents with scenes are converted on the way in, and footage src must be a path under media/ or the absolute path of a linked video as list_references returns it. It does not state what happens to the prior composition content on replace, which is the main open behavioral question.

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 dense sentences that front-load the operation and then the payload shape, with parentheticals used to carry required format constraints rather than filler. Nothing is redundant with the title or schema.

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 6-parameter tool with a nested, loosely-typed object and no output schema, the description covers the payload structure, the legacy-format conversion and the source-path rule. It could still say more about the replace semantics and error conditions, but the essentials for calling it correctly are present.

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 67%, and the description compensates for the vague anyOf composition object by spelling out top-level fields (version, meta, elements) and the video element props (src, in, start, rate, fit), plus where music and voice-over live. It adds little on name, basis, message and feedback, which the schema already documents.

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: "Create or replace a whole composition document", and names the document shape { version: 2, meta, elements }. The word "whole" implicitly separates it from patch-style siblings, though no alternative is named outright.

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?

Usage is implied rather than stated: this is the whole-document write, and audio/effects are routed elsewhere via an explicit "see add_sound" pointer. There is no explicit when-to-use or when-not-to-use against patch_composition or new_composition.

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