Skip to main content
Glama

Probe media file

probe_media
Read-onlyIdempotent

Inspect a local media file via absolute path to retrieve ffprobe metadata such as duration, streams, codecs, dimensions, frame rate, sample rate, channels, and rotation. Read-only; URLs are refused.

Instructions

Check one local media file (absolute path) and return ffprobe metadata: duration, streams, codecs, dimensions, rational frame rate, sample rate, channels, rotation. Read-only; URLs are refused. Probing reads headers and does not prove that every frame decodes.

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": "probe_media"
  }
}

Input Schema

NameRequiredDescriptionDefault
pathYesAbsolute path of a local media file.

Output Schema

NameRequiredDescriptionDefault
pathYes
probeYes
detailYes
statusYes
symlink_targetYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv0.3.0
    • addedInput schema / additionalProperties
      Added value: +false
  2. First observedv0.1.0

TDQS

A4.5/5.0
Behavior5/5

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

Annotations already declare readOnly/idempotent/non-destructive, yet the description still adds real value: URLs are rejected outright, and — most importantly — probing reads headers and "does not prove that every frame decodes," a limitation an agent could not infer from any structured field. That caveat materially changes how a caller should trust the result.

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?

Three sentences, front-loaded with the verb and resource, then the returned fields, then the constraints and caveat. No filler; the enumeration of fields is compact and each clause carries distinct information.

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 one-parameter, low-complexity probe tool with an output schema already covering return shape, the description covers purpose, input constraint, and the key reliability caveat. There is no meaningful gap an agent would need filled before calling it.

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 coverage is 100% and the single `path` parameter is already documented as an absolute local path, so the description mostly restates it. It does add the useful constraint that URLs are refused, which sharpens what a valid value looks like, but no format or extension details beyond that.

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?

"Check one local media file ... and return ffprobe metadata" pairs a specific verb with a specific resource and scope (single local file), then enumerates the returned fields. An agent immediately knows this is a metadata-inspection tool and not an import or listing tool like its siblings.

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?

"Check one local media file (absolute path)" plus "URLs are refused" gives a clear usage boundary that rules out remote sources. It stops short of naming an alternative for URL-based or folder-level inspection, but the constraint is unambiguous enough to route correctly.

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