Skip to main content
Glama

List media files in a folder

list_media_files_in_folder
Read-onlyIdempotent

Lists video, audio, and image files in a folder with sizes, kinds, and modification times, including subfolders if needed, so you can see what is available to import or pick files for other tools.

Instructions

List the video, audio and image files in a folder on disk with their sizes in bytes, kind and modification time, optionally including subfolders. Use it to see what is available to import (import_files), or to pick files for the other *_file tools. Kind is decided by extension. Hidden files and folders and symbolic links are skipped; a scan stops after 200000 entries (truncated=true). Returns counts and total size per kind and the files sorted by path. Works on files on disk; needs neither Premiere Pro nor ffmpeg.

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

Input Schema

NameRequiredDescriptionDefault
kindsNoOnly files of these kinds (decided by extension), e.g. ["video"]. Default: all three.
folderYesAbsolute path of the folder.
recursiveNoAlso list files in subfolders. Default false.
extensionsNoOnly files with these extensions, without the dot, e.g. ["mp4", "mov"]. Default: every known video, audio and image extension.
max_resultsNoMaximum files to return. When there are more, the result has truncated=true and the total count. Default 500.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A4.8/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 behavior: hidden files and symlinks are skipped, scans stop after 200000 entries with truncated=true, and kind is decided by extension. It also discloses the return shape (counts and total size per kind, files sorted by path), which no annotation covers.

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?

Information is front-loaded: purpose first, then usage, then behavior, then return shape in a compact four-sentence block. A few clauses are close to restating schema defaults (kind by extension, optional subfolders), but nothing is padding.

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?

With no output schema, the description compensates by describing the return payload (per-kind counts and total size, path-sorted files) and the truncation contract. Combined with skip rules and the 200000-entry scan cap, an agent has everything needed to call it and interpret results.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so the baseline is 3, but the description adds meaning by stating that kind classification comes from the extension (clarifying the kinds and extensions filters) and that subfolders are optional (the recursive flag). It does not discuss the max_results cap, which the schema already documents.

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?

Opens with a specific verb and resource: 'List the video, audio and image files in a folder on disk,' and adds exactly what is returned (sizes in bytes, kind, modification time). The closing clause 'Works on files on disk; needs neither Premiere Pro nor ffmpeg' separates it from the project/sequence-based siblings such as get_sequence_media_list.

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?

Explicitly routes usage: 'see what is available to import (import_files), or to pick files for the other *_file tools,' naming the concrete downstream tool. It also implies the boundary against Premiere-project tools by stating it operates on disk and needs neither Premiere Pro nor ffmpeg.

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

Deploy Server

Other Tools