Skip to main content
Glama

Export markers to a file

export_markers

Exports sequence markers to CSV, JSON, or YouTube chapter files and optionally filters by text, type, color, or time range.

Instructions

Write the markers of a sequence (optionally filtered) to a file: "csv" (columns name,time,duration,comment,type,color,url,frame_target,timecode; times in seconds), "json" (the full marker list with the sequence it came from) or "youtube" (a chapter list of "0:00 Title" lines). CSV and JSON files can be read back with import_markers. Returns file_path, format, count and bytes. Fails with FILE_EXISTS if the file exists unless overwrite is true.

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": {
      "file_path": "<file_path>"
    },
    "name": "export_markers"
  }
}

Input Schema

NameRequiredDescriptionDefault
textNoOnly markers whose name or comment contains this text (plain substring, case-insensitive).
typeNoOnly markers of this type. One of "comment", "chapter", "segmentation", "web_link".
colorNoOnly markers of this colour. Colour index or name: 0 green, 1 red, 2 purple, 3 orange, 4 yellow, 5 white, 6 blue, 7 cyan.
formatNo"csv", "json" or "youtube". Default: from the extension (.csv, .json, .txt = youtube); BAD_ARGS when it cannot be told.
to_timeNoOnly markers that start at or before this sequence time, in seconds.
file_pathYesFile to write. Absolute path; missing folders are created.
from_timeNoOnly markers that start at or after this sequence time, in seconds.
overwriteNoReplace the file if it already exists. Default false.
intro_titleNoTitle of that added 0:00 chapter. Default "Intro".
sequence_idNoStable sequence id (from list_sequences). Omit to use the active sequence.
sequence_nameNoSequence name; used only when sequence_id is not given.
ensure_zero_startNoAdd a chapter at 0:00 when no marker starts in the first second (YouTube ignores lists that do not start at 0:00). Default true.

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?

Annotations cover the safety profile (readOnlyHint=false, destructiveHint=false, idempotentHint=false), and the description adds a lot beyond them: the FILE_EXISTS failure mode, the overwrite gate with its default of false, the exact return fields (file_path, format, count, bytes), and that timestamps are in seconds. It also discloses format-specific side effects like the added 0:00 intro chapter for YouTube output.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The core action is front-loaded in the first clause and the formats are enumerated immediately after, with failure modes last. It is a single dense sentence chain with some duplication of the schema's format enum, but nearly every clause carries information an agent would otherwise have to guess.

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 12-parameter file-writing tool with no output schema, the description supplies what the structured fields cannot: the return shape, the overwrite/error semantics, and the concrete payload of each format. Nothing an agent needs to select a format or call the tool safely is missing.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100%, so every one of the 12 parameters is already documented and the baseline is 3. The description contributes the CSV column order and the '0:00 Title' line shape for the youtube format, which adds real meaning for the format choice, but it restates the format enum and otherwise leaves filtering params (text, type, color, from_time/to_time) to the schema.

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 (write) and resource (sequence markers, optionally filtered) plus the destination (file) and the three supported formats. It also distinguishes itself from the sibling import_markers by naming the round-trip relationship, so an agent can tell the two apart without opening 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 Guidelines4/5

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

Clear context is given: use this when you need a filtered marker dump as CSV, JSON or a YouTube chapter list, and CSV/JSON outputs can be re-read with import_markers. It stops short of naming alternatives such as markers_to_youtube_chapters or srt_from_markers, so the agent must still infer which of several export/chapter tools to pick.

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