Skip to main content
Glama

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault

No arguments

Instructions

Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.

This server publishes no instructions, or was last inspected before Glama recorded them.

Capabilities

Features and capabilities supported by this server

Protocol revision2025-11-25

CapabilityDetails
tools
{}
resources
{}

Tools

Functions exposed to the LLM to take actions

NameDescription
playA

Play a video file or URL. URLs from supported streaming sites (YouTube, Bilibili, Twitch, Vimeo, etc.) are extracted via the bundled yt-dlp before playback.

pauseA

Pause playback. Acts on the player the user is watching — when the unflick window is open, this pauses the video on screen.

resumeA

Resume playback after a pause. From end-of-file this rewinds to the start rather than doing nothing.

stopA

Stop playback and unload the file. The resume point is saved unless the file was watched to the end.

seekC

Seek to a position in seconds

set_volumeC

Set volume level

set_speedA

Get or set the playback speed of the window the user is watching. Call with no arguments to read the current rate. Pitch is corrected by default, so speech stays natural — see the pitch CLI command to turn that off.

get_statusB

Get current playback status including state, file, position, duration, volume, and speed. file is the path the user gave; key is what resume points and bookmarks are filed under (the same string, except for a mounted disc, where it identifies the disc rather than the drive) and label is a disc's volume name.

file_infoA

Get media file metadata (duration, resolution, codecs) without affecting current playback

playlist_addC

Add a file to the playlist

playlist_removeC

Remove a playlist entry by index

playlist_listA

List all playlist entries with index, path, and current track indicator

playlist_nextA

Advance to and play the next track in the playlist

playlist_prevA

Go back to and play the previous track in the playlist

playlist_clearA

Clear all entries from the playlist

playlist_playB

Play a specific playlist entry by index

load_subtitleC

Load an external subtitle file

subtitle_listA

List all subtitle tracks (embedded and external)

subtitle_selectA

Select a subtitle track by ID (0 to disable subtitles). Choosing a single track turns bilingual mode off.

audio_listB

List all audio tracks (embedded)

audio_selectB

Select an audio track by ID (0 to disable audio)

generate_subtitlesA

Generate subtitles for a video using whisper. Mode 'local' uses bundled or supplied whisper.cpp; mode 'api' uses OpenAI. Returns the path of the generated .srt file.

translate_subtitlesA

Translate an SRT file to another language using OpenAI. Returns the path of the translated .srt file.

library_scanC

Scan a directory for video files and add them to the library

library_searchC

Search the media library by title or path

library_listB

List all media files in the library

library_removeC

Remove a media entry from the library by ID

clipB

Extract a video clip segment, optionally as GIF. Requires ffmpeg in PATH.

screenshotC

Take a screenshot of the current video frame

save_positionB

Save playback position for a file (for resume playback)

get_positionB

Get saved playback position for a file

settings_pathA

Get the absolute path of the settings.json file

settings_getB

Read all settings, or a single key if provided

settings_setC

Set a single settings key to the given JSON value

settings_unsetC

Remove a single settings key

filter_listA

List current video filter values (brightness, contrast, saturation, gamma, hue)

filter_setC

Set a video filter (brightness | contrast | saturation | gamma | hue) to a value in -100..100

filter_resetA

Reset all video filters to 0 (neutral)

sponsor_segmentsA

Fetch SponsorBlock skip segments for a YouTube URL. Returns the configured categories plus a list of {start, end, category, action_type, uuid} segments. Empty list when none exist (404). Errors only on network/parse failure or non-YouTube URLs.

subtitle_delayA

Get or set the subtitle delay in seconds. Positive values show subtitles later. Call with no arguments to read the current delay. Useful for correcting AI-generated subtitles, which often drift a few hundred milliseconds from the dialogue.

audio_delayA

Get or set the audio delay in seconds, for fixing lip-sync. Positive values play audio later. Call with no arguments to read the current delay.

subtitle_style_getA

Read subtitle appearance: scale, vertical position, colour, border size, bold.

subtitle_style_setA

Set one subtitle appearance property. Returns the full style after the change.

subtitle_bilingualA

Show two subtitle tracks at once — typically the original plus a translation. Call with no arguments to read the current state. primary is the bottom line and the one subtitle_select refers to; secondary is drawn just above it. Each accepts a track id from subtitle_list or a path to a subtitle file, which is loaded if it is not already. With no tracks named, the original and the translation are picked automatically. Selecting a single track with subtitle_select turns this off.

chapter_listA

List the chapters of the currently playing file: index, title, start time, and which one is playing. Returns an empty list for files without chapters.

chapter_seekC

Jump to a chapter by 0-based index.

chapter_nextA

Jump to the next chapter. Clamps at the last chapter.

chapter_prevA

Jump to the previous chapter. Clamps at the first chapter.

ab_loopA

Control the A-B loop, which repeats a section of the current file. Set point A and point B to start looping; clear to stop. Omit position to use the current playback position.

frame_stepA

Step forward exactly one frame. Pauses playback, as frame stepping is for inspecting a still.

frame_back_stepA

Step back exactly one frame. Pauses playback.

playlist_repeatA

Get or set the playlist repeat mode. 'off' stops after the last entry, 'one' loops the current file, 'all' wraps around. Call with no arguments to read the current mode.

playlist_shuffleA

Get or set playlist shuffle. Enabling it reorders playback without renumbering entries, and keeps the current track playing. Call with no arguments to read the current setting.

shutdownA

Shut down the unflick daemon. Declined when the control port is held by the GUI — close the window instead.

get_subtitlesA

Find and load subtitles for the playing video from OpenSubtitles, in one step. Picks the best match: a subtitle synced against this exact file if one exists (checked by file hash, so the timing is correct), otherwise the most-downloaded subtitle for the title. Prefer this over generate_subtitles when the video is a released film or show — a human-made subtitle is more accurate and arrives in a second rather than minutes. Requires the user's own OpenSubtitles API key in the opensubtitles_api_key setting; it fails with instructions if unset. Costs one of the user's limited daily downloads, so do not call it repeatedly.

find_subtitlesA

Search OpenSubtitles and return the candidates without downloading anything. Use this when the user should choose, or to check what exists before spending a download. Each result carries a file_id for download_subtitle, plus moviehash_match — true means it is synced to this exact file. Costs no download quota. Requires the user's own OpenSubtitles API key in the opensubtitles_api_key setting.

download_subtitleA

Download one subtitle chosen from find_subtitles and load it into the player. Saved next to the video when that directory is writable, so it loads automatically next time. Costs one of the user's limited daily OpenSubtitles downloads.

search_transcriptA

Search the currently playing file's subtitles for a phrase and return every match with its timestamp and speaker (if known). Works with loaded subtitle files, sidecar .srt/.vtt/.ass/.ssa files, embedded text tracks, and subtitles you generated with generate_subtitles. Use this to answer questions about what is said in a video, or to find the moment to jump to. Case-insensitive substring match, not regex.

seek_to_textA

Jump playback to where a phrase is spoken. Finds the phrase in the subtitles (optionally filtered by speaker) and seeks just before that line, so the sentence is heard from its start. This is the 'skip to the part where they talk about X' tool.

transcript_getA

Return the full transcript of the currently playing file as timed cues (including speaker labels when present), plus where it came from. Use it to read or summarise a video, or as input for writing your own chapter list with set_chapters. Long videos produce a lot of text — prefer search_transcript or transcript_summary when you only need a passage or overview.

transcript_summaryA

Return a compact, structured overview of a video's transcript: cue count, word count, speaking duration, top keywords, and timeline segments with representative lead lines. Much smaller than transcript_get on a long video, so reach for this first when asked what a video is about or how it is structured.

library_transcript_searchA

Search spoken dialogue across every video in the media library that has a sidecar (.srt/.vtt) or cached transcript. Returns each matching cue with its video path, title, and timestamp so you can immediately open that video at that line with play (passing file and seek).

generate_chaptersA

Give a file that has no chapters a set of them, derived from the pauses in its transcript. The result becomes real navigation: it shows up in chapter_list, marks the progress bar, and responds to chapter_seek. This is a rough heuristic — if you have read the transcript, set_chapters will give better titles and boundaries.

set_chaptersA

Set the chapter list for a file that has none, from your own reading of its content. Times are in seconds; they are sorted and clamped to the file automatically. These become real chapters — navigable with chapter_seek and drawn on the progress bar. Fails if the file already ships with its own chapters.

clear_chaptersA

Remove chapters added by generate_chapters or set_chapters. A file's own built-in chapters are not affected.

keybind_listA

List every keyboard shortcut: action id, label, current key, default, and whether the user has changed it. Keys read as Mod+Alt+Shift+key, where Mod is Ctrl on Windows/Linux and Cmd on macOS.

keybind_setA

Rebind a keyboard shortcut. Fails if the key is already taken by another action, naming the conflict rather than silently stealing it.

keybind_resetA

Restore a shortcut to its default. Omit action to reset every binding at once.

video_transform_getA

Read how the picture is fitted to the window: aspect override, rotation, zoom multiplier, pan-scan and deinterlace. Distinct from filter_list, which is colour rather than geometry.

video_transform_setB

Fix a squashed aspect ratio, straighten a video recorded sideways, crop black bars, or deinterlace broadcast footage.

video_transform_resetA

Restore the file's own geometry — no aspect override, no rotation, no zoom or pan-scan, deinterlace off.

incognitoA

Read or set incognito mode. While on, nothing is written to the play history — including plays started from the CLI or by you. Call with no arguments to read it.

recent_filesA

Recently played files, newest first, with how many times each was played and when. Covers files opened directly, not just ones scanned into the library.

recent_clearA

Forget the play history. Scanned library metadata is kept — only the played-at times and counts are cleared.

bookmark_addB

Save a named position in a file, so it can be jumped back to later. Defaults to where playback is right now in the file the user is watching. Bookmarks persist across sessions and are recorded even in incognito mode, since they are asked for explicitly.

bookmark_listA

Bookmarks for the file being watched, in timeline order. Pass all=true for every file, or file to ask about a specific one. Each entry carries the id that bookmark_goto takes, and the key it is filed under — the path for a file, the disc's own identity for a disc.

bookmark_gotoA

Jump to a bookmark by id. Seeks if its file is already playing; otherwise opens that file at the bookmarked position, saving a resume point for the outgoing one. A bookmark on a disc is refused, without loading anything, when that disc is not the one in the drive.

bookmark_renameB

Give a bookmark a name, or drop the one it has by omitting name.

bookmark_removeB

Delete one bookmark by id.

bookmark_clearA

Delete every bookmark for the file being watched, or for the file named. Pass all=true to delete them for every file — that scope is never reached by default.

mouse_listA

List mouse bindings: wheel up/down, click, double click, middle click, and the four right-drag gestures, each with the action it runs.

mouse_setA

Point a mouse trigger at an action. Unlike keys, two triggers may share an action — wheel-up and drag-up both raising volume is fine, since the inputs are distinct. Pass "none" as the action to disable a trigger.

mouse_resetB

Restore a mouse trigger to its default. Omit trigger to reset all of them.

script_listA

List installed mpv user scripts (.lua and .js) in the config scripts folder, with each script's path, language, description, and whether it is enabled.

script_addA

Install a .lua or .js mpv user script into the config scripts directory, enable it, and load it into the running player immediately.

script_toggleA

Enable or disable an installed mpv user script by filename (e.g. "autocrop.lua") or stem ("autocrop"). Enabling loads the script immediately; disabling takes effect on the next launch.

script_removeB

Delete an installed mpv user script from the config scripts directory.

describe_frameA

Return the frame showing right now as an image, so you can see what is on screen. Optionally seek to a position first. The picture is the one the viewer is watching — GUI, CLI and MCP share a single player. Downscaled to keep the response small; subtitles and on-screen controls are not burned in.

transcript_speakersA

List all speakers in the transcript with cue count, word count, speaking duration, and first/last timestamp. Pass detect: true to run lightweight acoustic + conversational turn diarization when subtitles do not already carry speaker labels.

transcript_rename_speakerA

Rename a speaker label across the transcript (e.g. from "Speaker 1" to "Host" or "Alice"). The rename is persisted in cache so subsequent transcript_get, search_transcript, and transcript_summary calls reflect it.

transcript_exportA

Export the transcript to a formatted string or file in txt, srt, vtt, or json format, optionally filtered to a single speaker.

frame_contact_sheetA

Sample a grid of frames (cols × rows) evenly across a time range of the video and return a single tiled JPEG image plus the exact timestamp of every cell. Ideal for surveying what visually happens across a video or section in one multimodal tool call instead of calling describe_frame a dozen times.

detect_scenesA

Detect visual scene cuts / shot boundaries in the video using ffmpeg's scene-change filter. Useful for videos without dialogue or transcripts (screen recordings, silent footage, music videos). Set to_chapters: true to immediately install the detected scenes as navigable chapters on the playing file.

playlist_saveB

Save the current playlist to an .m3u, .m3u8, or .pls file.

playlist_loadA

Load an .m3u, .m3u8, or .pls playlist file into the player's queue. Relative paths inside the playlist are resolved against the playlist file's directory.

equalizer_getA

Read the 10-band equaliser: per-band gains in dB, the band centre frequencies they correspond to, the preamp, whether loudness normalisation is on, and the filter chain mpv is actually running. Read this before changing a band so you adjust the user's curve instead of replacing it.

equalizer_setA

Adjust the equaliser. Set one band with band (0-9, low to high) plus gain in dB, or the whole curve at once with bands. enabled switches the equaliser in and out without discarding the curve, normalize evens out quiet dialogue against loud action, and preamp makes headroom so boosted bands don't clip. Gains are clamped to ±12 dB. Every change rebuilds mpv's audio filter chain, so set a whole curve in one call rather than nine.

equalizer_presetA

Apply a named equaliser curve and switch the equaliser on. Use equalizer_presets to see what exists and what each is for. 'speech' lifts dialogue out of a loud mix and 'night' tames explosions while keeping voices — those two answer most requests about not being able to hear what people are saying.

equalizer_presetsA

List the available equaliser presets with a description of what each is for and the curve it applies.

equalizer_resetA

Remove every audio filter: flat curve, no preamp, no normalisation.

pitch_correctionA

Read or set whether changing playback speed keeps the original pitch. On by default, which is what makes 1.5x speech listenable rather than chipmunk-like. Turn it off only when the pitch shift is the point, such as checking a musical tempo change.

window_modeA

Get or set the shape of the player window the user is looking at. normal is the full player, pip is a small always-on-top video window, music is the compact audio layout with cover art and tags. Call with no arguments to read the current mode. Only works while the unflick GUI is running — the headless daemon has no window and says so.

cleanupA

Find files an older unflick left behind — on Windows, upgrading from v0.9 moved the install directory and stranded roughly half a gigabyte with no uninstall entry. Reports by default; pass apply to delete. The live thumbnail and cover caches share that folder and are never touched.

castA

Send what is playing to a television on the network over DLNA. "list" finds renderers; "to" starts a cast (naming a renderer, or omitting it when there is only one) and pauses playback here so it is not heard twice; "stop", "pause", "resume", "seek" and "status" drive it once it is running. Only local files can be cast — the television fetches them from this machine.

disc_listA

Optical drives on this machine and whether each holds a DVD or Blu-ray, plus whether this build can play them at all. Play one with play and the drive path ("D:\"), a disc image ("film.iso"), or a folder holding VIDEO_TS / BDMV; a specific title is mpv's own syntax, "dvd://3". Each drive, and each probed path, also reports key — the identity its bookmarks and resume point are filed under, which changes when the disc does — and label, the volume name.

sessionA

What the user was last watching and how far in — and, with action "restore", reopen it there. unflick writes this down every few seconds while playing, so it survives a closed window or a crash. Use it when someone asks to get back to what they were watching without naming the file. "clear" forgets it.

startupA

The last launch's startup timeline, phase by phase, in milliseconds from process start — process init, video pipeline, window shown, the launch file opening, React mounting, the control port. Use it to say where a slow start went rather than that it was slow.

now_playingA

What is playing, described the way a person would: title, artist, album, and whether there is any picture (an embedded cover is not video). Use this rather than get_status when the question is 'what is this', and get_status when it is 'where are we'.

dev_snapshotA

The accessibility tree of the unflick window: every visible element with its role, accessible name, state and a CSS selector that feeds straight back into dev_click and dev_text. Reach for this first — it is how you find out what is on screen. Invisible nodes and unnamed wrappers are elided, so what comes back is what a person would see. Needs the GUI running, started with --allow-dev.

dev_clickA

Click an element in the unflick window. Polls for the selector first, so a click issued right after an action does not race the render, then hit-tests the point before dispatching: if something else is on top, the click is refused and the covering element is named rather than reported as a success. A selector matching several elements is refused unless index says which.

dev_textB

Visible text of every element matching a selector, each with its index. Several matches are returned rather than refused — reading is not acting. Use it to check what a list, a menu or a label actually says, which is where 'undefined' shows up.

dev_waitB

Wait for an element to appear, or with gone for it to leave the page. The second half is not optional: verifying that a panel closed is impossible without it.

dev_captureA

A picture of the unflick interface. This is the UI layer, not the decoded video: mpv draws on its own surface, which sits above the webview on Windows and below it on macOS and Linux, so no single grab means the same thing on all three. Use describe_frame for the picture itself — it comes from mpv, at higher fidelity than any compositor grab.

dev_evalA

Run JavaScript in the unflick window and get back what it evaluated to. Either an expression or statements with an explicit return. The escape hatch for what the other five verbs do not cover — prefer them where they fit, because they report their own refusals in terms of the page.

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription
Now PlayingCurrent playback state: file, position, duration, volume, speed
PlaylistCurrent playlist entries with current-track indicator
Media LibraryAll media files in the library

TDQS

B3.1/5.0

Scored across 114 tools

Disambiguation3/5

Most tools have clearly distinct purposes and descriptions explicitly distinguish pairs like get_status vs now_playing and filter_list vs video_transform_get. However, the surface is large enough that several clusters overlap: transcript_get/search_transcript/transcript_summary/library_transcript_search, subtitle listing/select/bilingual, and playback commands play/resume/stop/pause can be confused in context. Descriptions help, but the volume of near-neighbors makes misselection plausible.

Naming Consistency3/5

Mostly snake_case, but the set mixes verb_noun (get_status, set_volume, load_subtitle) and noun_verb (chapter_list, subtitle_list, settings_get, bookmark_add, equalizer_reset) conventions without a clear rule. It is readable, but not predictable enough for an agent to infer names reliably.

Tool Count1/5

114 tools is an extreme mismatch for a media player MCP server, far beyond the typical 3-15 well-scoped range. Even when individual capabilities are useful, the surface is too large to navigate efficiently and fragments related operations across many separate tools.

Completeness5/5

The domain is covered exhaustively: playback control, playlists, subtitles, transcripts, chapters, bookmarks, settings, library, equalizer, video transforms, casting, discs, and developer inspection. There are no obvious lifecycle gaps for a media player; if anything, the coverage is overcomplete.

Maintenance

ActivityMaintained
ResponsivenessNo recent community issues