Skip to main content
Glama

Find items by media file path

find_items_by_media_path
Read-onlyIdempotent

Locate project items by exact media file path (case-insensitive, either slash direction); excludes subclips unless include_subclips is true.

Instructions

Find the project items whose media is one exact file on disk (whole path, case-insensitive, slashes in either direction). Subclips of the file are left out unless include_subclips=true. Returns total and the items (with is_subclip when subclips are included). Use find_project_items with media_path_contains for partial path matches.

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": {
      "media_path": "<media_path>"
    },
    "name": "find_items_by_media_path"
  }
}

Input Schema

NameRequiredDescriptionDefault
media_pathYesAbsolute path of the media file.
include_subclipsNoAlso return subclips made from that file. Default false.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A4.7/5.0
Behavior4/5

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

Annotations already declare readOnly/idempotent/non-destructive, so the bar is lower, but the description still adds real behavior: exact-match comparison rules (case-insensitive, slashes either direction) and the default filtering of subclips. It stops short of covering edge cases such as offline media or empty results, which keeps it from a 5.

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?

Four sentences, each doing distinct work: purpose, default exclusion, return contents, and sibling routing. The core purpose is front-loaded and there is no redundant restatement of the title.

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 naming the return payload ('total and the items, with is_subclip when subclips are included'). For a two-parameter read-only lookup, everything an agent needs in order to call it correctly is present.

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, and both parameters are documented in the schema. The description nevertheless adds meaning the schema lacks: how media_path is compared (whole path, case-insensitive, either slash direction) and what include_subclips actually changes in the result.

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 ('Find') plus the precise resource ('project items whose media is one exact file on disk') and bounds the scope with exact-match semantics. It explicitly distinguishes itself from the sibling find_project_items, so an agent can discriminate without opening either schema.

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?

Gives the exclusion rule ('subclips ... left out unless include_subclips=true') and names the alternative tool plus the parameter condition that selects it ('find_project_items with media_path_contains for partial path matches'). Both when-to-use and when-not-to-use are covered explicitly.

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