Skip to main content
Glama

Get timeline

get_timeline
Read-onlyIdempotent

Inspect a Kdenlive project sequence read-only to retrieve its tracks, clips, mixes, compositions, and guides for timeline analysis and diagnostics.

Instructions

Return the tracks, clips, mixes, compositions and guides of one sequence of a Kdenlive project, read-only. Positions are integer frames at the project frame rate; timeline ranges are [start, end) and source in/out are inclusive (see the 'conventions' field). Large timelines are truncated to max_clips.

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": {
      "path": "<path>"
    },
    "name": "get_timeline"
  }
}

Input Schema

NameRequiredDescriptionDefault
pathYesAbsolute path of a .kdenlive project file on this machine.
sequenceNoSequence uuid or name; defaults to the active sequence.
max_clipsNoMaximum clips returned.

Output Schema

NameRequiredDescriptionDefault
fileYes
notesYes
guidesYes
tracksYes
warningsYes
truncatedYesTrue if clips were omitted because of max_clips.
frame_rateYes
conventionsYes
total_clipsYes
compositionsYes
sequence_nameYes
sequence_uuidYes
returned_clipsYes
duration_framesYes
duration_timecodeYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed8 schema fields changedv0.3.0
    • addedInput schema / additionalProperties
      Added value: +false
    • addedOutput schema / $defs / AudioSettings
      Added value: +{
      +  "description": "Audio effects of a clip instance that the server understands (#13).",
      +  "properties": {
      +    "fade_in": {
      +      "description": "Audio fade-in length in frames (0 = none).",
      +      "title": "Fade In",
      +      "type": "integer"
      +    },
      +    "fade_out": {
      +      "description": "Audio fade-out length in frames (0 = none).",
      +      "title": "Fade Out",
      +      "type": "integer"
      +    },
      +    "level_db": {
      +      "anyOf": [
      +        {
      +          "type": "number"
      +        },
      +        {
      +          "type": "null"
      +        }
      +      ],
      +      "description": "Constant volume in dB; null when not set.",
      +      "title": "Level Db"
      +    }
      +  },
      +  "required": [
      +    "level_db",
      +    "fade_in",
      +    "fade_out"
      +  ],
      +  "title": "AudioSettings",
      +  "type": "object"
      +}
    • addedOutput schema / $defs / ClipInfo / properties / audio
      Added value: +{
      +  "anyOf": [
      +    {
      +      "$ref": "#/$defs/AudioSettings"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "description": "Level and fades set on this clip (volume, fadein, fadeout effects); null when none."
      +}
    • addedOutput schema / $defs / ClipInfo / properties / group
      Added value: +{
      +  "description": "Refs of the clips grouped with this one (Kdenlive audio/video pair); edits apply to the whole group.",
      +  "items": {
      +    "type": "string"
      +  },
      +  "title": "Group",
      +  "type": "array"
      +}
    • changedOutput schema / $defs / ClipInfo / properties / ref / description
      Previous value: -"Position-based reference 'track:layer:entry', valid for this file revision."New value: +"Clip reference '<track>@<start>' (e.g. 'V1@90'; '#1' is appended for the secondary layer when two clips start on the same frame). Valid for this file revision; a clip keeps its ref as long as it does not move."
    • addedOutput schema / $defs / MixInfo / properties / cut
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "integer"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "description": "Timeline frame of the original cut (end - cut_offset): where the clips would meet without the mix.",
      +  "title": "Cut"
      +}
    • changedOutput schema / $defs / MixInfo / properties / cut_offset / description
      Previous value: -"kdenlive:mixcut: frames between mix start and the cut."New value: +"kdenlive:mixcut: frames between the original cut and the end of the mix."
    • changedOutput schema / $defs / MixInfo / properties / end / description
      Previous value: -"Exclusive end frame."New value: +"Exclusive end frame: where the left clip ends (Kdenlive stores it as `out`)."
  2. First observedv0.1.0

TDQS

A3.9/5.0
Behavior5/5

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

Beyond the annotations (which already declare readOnly, idempotent and non-destructive), the description discloses substantive behavior: frame-based integer positions at the project frame rate, half-open timeline ranges versus inclusive source in/out, and truncation of large timelines at max_clips. That tells the agent exactly how to interpret coordinates and what data loss to expect, which annotations alone cannot convey.

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 with no filler, front-loading the return payload and scope before the coordinate and truncation caveats. Every clause carries operational information.

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 an output schema present, return-value details need not be spelled out, and the description correctly focuses on interpretation rules (frames, range conventions, the 'conventions' field). Missing is any note on error behavior for a missing path or invalid sequence, which matters for a file-backed read.

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 earns credit by explaining the consequence of max_clips ('large timelines are truncated') and framing sequence selection as returning one sequence's contents. It does not, however, clarify sequence name-versus-uuid resolution or what happens when the sequence is not found.

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 definition opens with a specific verb and an enumerated resource set ('tracks, clips, mixes, compositions and guides') scoped to 'one sequence of a Kdenlive project', which is far more precise than the title. It does not name a sibling such as inspect_project or list_project_media to sharpen the boundary, so it falls just short of the top band.

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

Usage Guidelines2/5

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

There is no explicit when-to-use statement, no mention of when to prefer inspect_project or list_project_media instead, and no prerequisites beyond the path parameter implied by the schema. The agent must infer the usage context from the resource list alone.

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