Skip to main content
Glama

Scan a folder of footage

scan_folder

Probe every media file in a folder, optionally including subfolders, to build a footage log of duration, resolution, fps, codec, HDR, audio and size per clip with totals and optional CSV export.

Instructions

Probe every media file in a folder (optionally recursive) and return a footage log: duration, resolution, fps, codec, HDR, audio and size per clip, plus totals and a breakdown by format. Optionally writes the log as CSV. Good for logging a camera card or a client's dump of clips.

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": {
      "folder": "<folder>"
    },
    "name": "scan_folder"
  }
}

Input Schema

NameRequiredDescriptionDefault
folderYesAbsolute folder path.
max_filesNo
overwriteNo
recursiveNo
extensionsNoFile extensions to include (default: .mp4 .mov .m4v .mkv .webm .avi .mxf .mts .m2ts .3gp .wav .mp3 .m4a .aac .flac).
csv_output_pathNoIf set, also write the log to this CSV file.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.8/5.0
Behavior3/5

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

readOnlyHint=false is partly explained by the disclosed optional CSV write, and the description spells out what the returned log contains. However it omits behavior an agent needs: that scanning is capped (max_files default 300, ceiling 2000) and what 'overwrite' governs when the CSV target already exists.

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?

Three tight sentences with the returned log front-loaded before the optional CSV side effect. The closing use-case sentence is mild padding but earns its place by orienting the agent to batch scenarios.

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

Completeness3/5

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

For a 6-parameter tool with no output schema, the description does the important work of enumerating return fields. It is not complete: truncation at max_files, overwrite semantics, and behavior on unprobeable or non-media files are all 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 50%, and the description adds meaning for 'recursive' and the conditional 'csv_output_path' write. It says nothing about 'max_files', 'overwrite', or how 'extensions' interacts with the default list, leaving half the parameters to the schema alone.

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 and resource ('Probe every media file in a folder') and enumerates the returned fields (duration, resolution, fps, codec, HDR, audio, size, totals, format breakdown). Scoping it to 'a folder' implicitly separates it from the single-file probe_media sibling.

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?

'Good for logging a camera card or a client's dump of clips' gives concrete usage context and the 'optionally recursive' note signals the batch case. It stops short of explicit when-not-to-use guidance or naming probe_media as the single-clip alternative.

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