Skip to main content
Glama

find_media

Read-onlyIdempotent

Search a folder and its subfolders for video, image, audio, or subtitle files by name and kind, returning absolute paths, sizes, and metadata for use with import_file.

Instructions

Look for footage, pictures, music or voice files on this computer, to bring in with import_file (path). Searches a folder (default: the home folder) and its subfolders, newest first; query keeps files whose name or folder holds every word; kind keeps one kind. Each result has its absolute path, size in bytes, when it changed, and for videos and sounds their length in seconds, for videos and pictures their width and height.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "find_media"
  }
}

Input Schema

NameRequiredDescriptionDefault
dirNoAbsolute path of the folder to search (default: the home folder)
kindNo
limitNo
queryNoWords the file name or its folders must contain, e.g. "beach drone"

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, non-destructive, and closed-world, so the safety profile is covered. The description adds behavior beyond that: recursive subfolder traversal, newest-first ordering, and the exact per-result fields including duration and dimensions. It does not explain the result cap implied by the limit parameter, which is the main remaining gap.

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?

A single dense paragraph, front-loaded with purpose and the import_file handoff before search scope, matching rules, and result shape. Every clause carries information, though the run-on structure makes the result-field list harder to scan than a short list would.

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 usefully spells out the returned fields (absolute path, size, mtime, duration, dimensions), which is exactly what the agent needs. The one omission is the limit behavior, leaving the agent unsure whether a broad query silently truncates at the default 50.

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 50%: dir and query are documented, kind is an enum, and limit has a default and bounds. The description adds real meaning for query (every word must appear in the file name or folder) and for kind (keeps only one kind), but says nothing about limit's default of 50 or its 500 maximum, so the pagination/truncation semantics stay ambiguous.

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?

The description uses a specific verb and resource ('Look for footage, pictures, music or voice files on this computer') and immediately clarifies its role relative to a sibling by naming import_file as the follow-on step. An agent can tell this is the discovery/search step rather than the ingest step without opening any schema.

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?

It gives clear operational context: it searches a folder (default home) and subfolders, returns newest first, and hands off to import_file. It does not state when to prefer this over an alternative such as list_media, nor any exclusions, so it stops short of a full routing statement.

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