Skip to main content
Glama

Probe media

media_probe
Read-only

Inspect a local video, audio, or document to reveal its duration, resolution, page count, codec, available tracks, and whether ASR or OCR is possible before choosing the right analysis tool.

Instructions

Inspect a local media file — video, audio recording, or document — and report what it is: duration, resolution, page count, codec, available tracks (audio / subtitle / text layer), and whether transcription (ASR) and OCR are available for this file. (读取本地媒体的元信息:时长、分辨率、页数、编码、可用轨道(音轨 / 字幕轨 / 文本层), 以及能否做 ASR / OCR 的初判。)

Call this FIRST on any file you have not inspected yet. It costs no image tokens and decodes nothing. Then pick the right next tool:

  • video / audio -> media_overview to read it

  • document -> media_overview to see page thumbnails and per-page text

  • a specific moment or page -> media_zoom for a close-up

  • "where was X said / on which page" -> media_locate for a timestamp or a page number

For audio it also reports a quick health check — average level, speech ratio and silence ratio — so you know whether the recording actually contains audible speech before you spend an ASR call on it. A recording that is effectively silent is reported as such and is never sent to ASR (no hallucinated transcript).

This server never downloads anything and never calls an LLM: you always pass a local absolute path, and it only prepares images and text for your own model to look at.

Input Schema

NameRequiredDescriptionDefault
pathYesAbsolute path to a LOCAL file: video, audio recording, or document. URLs and relative paths are rejected — this server never downloads anything. (本地文件绝对路径)
transcriptNo"auto" (default): use subtitles first, ASR only as a fallback. "off": no transcription at all, visuals only. Applicable to video and audio only.
transcriptFileNoAbsolute path to a local subtitle/transcript file (.srt, .vtt, .ass, .ssa). Applicable to video and audio only. (本地字幕/转写文件)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.6/5.0
Behavior5/5

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

Annotations only declare readOnlyHint and openWorldHint=false; the description adds substantial context beyond that: it costs no image tokens, decodes nothing, never downloads, never calls an LLM, and requires a local absolute path. It also discloses the silent-recording gate (silent audio is never sent to ASR, preventing hallucinated transcripts), which is behavior an agent could not predict from the annotations.

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?

Well front-loaded: purpose first, routing second, behavioral caveats last. Nearly every sentence earns its place, though the parenthetical Chinese restatement of the purpose line is pure duplication and the routing list is somewhat verbose.

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?

There is no output schema, so the description carries the return-value burden and does so thoroughly: metadata fields, track list, ASR/OCR readiness, and the audio health check (average level, speech ratio, silence ratio). It also covers the operational constraints (local path only, no downloads, no LLM) that an agent needs to invoke it correctly.

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 the schema already documents path, transcript enum, and transcriptFile. The description reinforces the local-absolute-path constraint and mentions the ASR judgment, but adds no syntax, default, or interaction detail for the transcript/transcriptFile parameters beyond what the schema states. Baseline 3 applies.

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 (inspect/probe) and resource (local media file) and enumerates the concrete outputs it reports: duration, resolution, page count, codec, tracks, ASR/OCR availability. It also names each sibling routing target (media_overview, media_zoom, media_locate), so an agent can distinguish it from all of them without opening a schema.

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

Usage Guidelines5/5

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

"Call this FIRST on any file you have not inspected yet" gives an unambiguous trigger condition, followed by explicit if/then routing to each sibling for video/audio, documents, specific moments, and 'where was X said' queries. Both when-to-use and which-alternative are stated, not inferred.

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