Skip to main content
Glama

Scan Assets

scan_assets

Scan the assets folder to analyze images, audio timestamps, and custom fonts. Returns file names, dimensions, sizes, and audio segment info to plan how assets can be used.

Instructions

Scan the assets folder and analyze all files. Call this whenever the user says they've added files to assets/. For images: returns file names, dimensions (if detectable), and sizes. For audio: parses timestamp JSON files and returns segment info. For fonts: lists available custom font files. After scanning, present a summary and propose how assets could be used.

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": {
      "projectPath": "<projectPath>"
    },
    "name": "scan_assets"
  }
}

Input Schema

NameRequiredDescriptionDefault
projectPathYesPath to the Remotion project root

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.9/5.0
Behavior4/5

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

There are no annotations, so the description must carry the full burden. It does this well by describing what is returned for each asset class: names/dimensions/sizes for images, segment info from timestamp JSON for audio, and font file listings. It does not state side effects (for example, whether thumbnails or caches are written), performance costs on large folders, or failure modes, which keeps it below 5.

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?

The purpose is front-loaded in the first sentence, and the per-type breakdown is compact and scannable. The final sentence ('After scanning, present a summary and propose how assets could be used') is agent workflow guidance rather than tool behavior, but it is short and arguably useful.

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?

For a one-parameter read tool with no output schema, the definition covers trigger, per-type return contents, and post-scan behavior. Missing are empty-folder/error behavior and any note on how large asset sets are handled, which are minor given the tool's simplicity.

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% and the single parameter projectPath is already documented as 'Path to the Remotion project root'. The description adds nothing about the parameter, but the baseline of 3 applies when the schema already does the work.

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?

The description opens with a specific verb and resource ('Scan the assets folder and analyze all files') and then breaks the result down by file type (images, audio, fonts), so the agent knows exactly what the tool covers. It stops short of naming a sibling such as import_asset, but the scope is unambiguous.

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 an explicit trigger: 'Call this whenever the user says they've added files to assets/.' That is clearer than most tool definitions. It provides no when-not condition or named alternative (for example, when to use import_asset instead), so it falls short of a 5.

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