Skip to main content
Glama

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
TINY_VISION_BEAMSNoBeam width for caption generation (default: 3).
TINY_VISION_MODELNoModel source: a local folder or Hugging Face repo id. Defaults to runs/coco_dinov2 if trained locally, otherwise the published v1.0 model.

Instructions

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

Local tiny vision model (36M params: frozen DINOv2-small encoder + caption decoder trained on COCO). Gives one-sentence, COCO-style captions of everyday scenes; it does not read text (OCR), count precisely, or know names. Treat captions as a quick summary, not ground truth. For videos (which many language models cannot read directly), use summarize_video to understand a video scene by scene, or describe_video for a simple timeline.

Capabilities

Features and capabilities supported by this server

Protocol revision2025-11-25

CapabilityDetails
tools
{
  "listChanged": false
}
prompts
{
  "listChanged": false
}
resources
{
  "subscribe": false,
  "listChanged": false
}

Tools

Functions exposed to the LLM to take actions

NameDescription
caption_imageB

Caption a local image file (jpg, png, ...) with the tiny-vision model.

Args:
    path: Absolute path to the image on this computer (~ is allowed).
describe_videoA

Turn a local video into a timestamped text timeline of what is on screen.

Picks frames, captions each, and merges neighbouring identical captions into
segments like "[00:04–00:10] a dog runs on the beach." Timestamps are the video's
real timestamps (correct for variable-frame-rate phone video).

Args:
    path: Absolute path to the video (mp4, mov, mkv, avi, webm, m4v).
    mode: "scenes" (default) captions a frame whenever the picture changes (cuts, new
        shots), plus one every 10 s on long static shots; segment boundaries land on
        the actual cuts and static stretches cost one caption. "interval" captions one
        frame every `every_seconds`.
    scene_threshold: scenes mode only. Change score (0-1) that counts as a new scene;
        lower = more sensitive (0.15 catches camera moves, 0.5 only hard cuts).
    every_seconds: interval mode only. Seconds between sampled frames.
    max_frames: Upper bound on frames captioned, to keep long videos fast.
    merge_threshold: Word overlap (0-1) needed to merge neighbouring captions; 1.0 = identical only.
summarize_videoA

Understand a local video scene by scene, so you can summarize or answer questions about it.

Splits the video into shots (hard cuts and slow camera drift), captions frames from
each shot, and groups consecutive shots that show the same thing into scenes. Returns
the video length, the subjects that recur across scenes, and for each scene its time
range, what is seen and its keywords. Use it to write a summary in your own words,
scene by scene. Visual only: there is no audio or speech.

The whole video is always covered. Long or fast-cut videos are condensed: similar
neighbouring scenes are merged so the result has at most `max_scenes` scenes. A
15-minute video takes about a minute on a laptop; progress is reported while it runs.

Args:
    path: Absolute path to the video (mp4, mov, mkv, avi, webm, m4v).
    scene_threshold: Change score (0-1) that counts as a cut; lower = more scenes.
    frames_per_shot: Frames captioned per shot (1-5), or 0 to pick by video length
        (3 up to 10 min, 2 up to 30 min, then 1). More = richer but slower.
    max_scenes: Merge similar neighbouring scenes down to at most this many (0 = never).
        Lower it for a shorter overview of a long video.
    max_shots: Stop after this many shots (0 = no limit, the default). The result
        says clearly if the video was not covered to the end.

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

TDQS

A3.7/5.0

Scored across 3 tools

Disambiguation3/5

caption_image is clearly separate, but describe_video and summarize_video share the same mechanics (shot splitting, frame captioning, merging) and the same `path`/`scene_threshold` arguments, differing mainly in output shape. The descriptions do spell out the timeline-vs-scene-summary distinction, but an agent could still reasonably pick the wrong one for a vague request like 'tell me about this video'.

Naming Consistency5/5

All three names follow the same verb_noun snake_case pattern (caption_image, describe_video, summarize_video). The verb choice matches the action and the noun matches the resource type (image vs video).

Tool Count4/5

Three tools is a well-scoped surface for a small vision server: one image entry point and two video entry points. It is on the thin side, but each tool clearly earns its place and nothing looks redundant.

Completeness3/5

Video coverage is thorough (timeline, scene summary, tunable sampling), but the image side is one caption tool with no way to ask questions about an image, extract text, or batch-process files, creating an asymmetry with the richer video surface. No obvious dead ends for the covered flows, but notable gaps for image understanding workflows.

Maintenance

ActivityMaintained
ResponsivenessNo recent community issues