Skip to main content
Glama

Inspect a media file

probe_media
Read-only

Inspect a local video or audio file to extract container, duration, codec, resolution, frame rate, HDR, bitrate, audio format, device, fast-start status, and metadata warnings before upload.

Instructions

Spec sheet for one video or audio file: container, duration, size, codec, resolution as displayed (rotation applied), orientation, aspect ratio, frame rate (flags variable frame rate), pixel format and bit depth, HDR type, bitrates, audio format, recording device, whether it is web-optimized (fast start), and warnings such as embedded GPS location.

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 to a local media file. ~ is expanded.
include_locationNoInclude the raw GPS coordinates if present. Off by default; the summary only says whether location exists.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.5/5.0
Behavior3/5

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

The readOnlyHint annotation already establishes the safety profile, so the description only needs to add context. It does add useful behavioral detail — that rotation is applied to displayed resolution, that the frame rate field flags variable frame rate, that warnings include embedded GPS location — which signals non-obvious computation and a privacy caveat. It stops short of stating failure modes for unsupported or corrupt files, which matters for a probe tool.

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?

Front-loaded with the core purpose before the field enumeration, and the dense list is efficient for communicating return contents when no output schema exists. It is one very long sentence, though, and the field list could be grouped or trimmed for scanability.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

With no output schema, the description carries the return-value burden, and it does so by enumerating the spec-sheet contents and the conditional warning channel. Read-only semantics are covered by annotation, and only the error/failure behavior for unreadable or unsupported files is left unaddressed.

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 both path (~ expansion) and include_location (off by default, summary only reports whether location exists) are fully documented in the schema. The description's mention of GPS warnings lightly reinforces what include_location governs but adds no new syntax or constraint. Baseline 3 applies.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

"Spec sheet for one video or audio file" gives a concrete resource and scope, and the field list (container, codec, resolution, HDR, bitrates) makes clear it is an inspection/metadata tool rather than a transformation one. It does not explicitly name siblings like probe_raw or compare_media, so the boundary with those is left implicit, but the single-file framing does most of the differentiating work.

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

Usage Guidelines3/5

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

Usage is implied by the scope phrase "for one video or audio file" — an agent can infer this is the per-file inspection call and that compare_media handles multi-file work. There is no explicit when-to-use, when-not-to-use, or prerequisite (e.g. file must exist locally) stated anywhere in the description.

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