Skip to main content
Glama

mediaStoreHealth

Check local media store health by monitoring disk usage, counting assets, and verifying ffmpeg/yt-dlp availability for video processing workflows.

Instructions

Check health of the local media store: disk usage, asset counts, ffmpeg/yt-dlp availability.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • Handler logic for 'mediaStoreHealth' inside the `executeTool` function within `src/server/mcp-server.ts`.
    case "mediaStoreHealth": {
      const mediaStore = getMediaStore();
      const thumbnailExtractor = getThumbnailExtractor();
      const mediaDownloader = getMediaDownloader();
      const stats = mediaStore.getStats();
      let ffmpegAvailable = false;
      let ffmpegVersion: string | undefined;
      let ytdlpAvailable = false;
      let ytdlpVersion: string | undefined;
    
      try {
        const probeResult = await thumbnailExtractor.probe();
        ffmpegAvailable = true;
        ffmpegVersion = probeResult.ffmpeg;
      } catch { /* unavailable */ }
      try {
        const probeResult = await mediaDownloader.probe();
        ytdlpAvailable = true;
        ytdlpVersion = probeResult.version;
      } catch { /* unavailable */ }
    
      const provenance = { sourceTier: "none" as const, fetchedAt: new Date().toISOString(), fallbackDepth: 0 as const, partial: false };
      return {
        dataDir: mediaStore.dataDir,
        assetsDir: mediaStore.assetsDir,
        stats: {
          totalAssets: stats.totalAssets,
          totalSizeBytes: stats.totalSizeBytes,
          videoCount: stats.videoCount,
          byKind: stats.byKind,
        },
        ffmpegAvailable,
        ffmpegVersion,
        ytdlpAvailable,
        ytdlpVersion,
        provenance,
      };
    }
  • Registration of the 'mediaStoreHealth' tool in the `tools` array within `src/server/mcp-server.ts`.
      name: "mediaStoreHealth",
      description: "Check health of the local media store: disk usage, asset counts, ffmpeg/yt-dlp availability.",
      inputSchema: {
        type: "object",
        properties: {},
        additionalProperties: false,
      },
    },
Behavior2/5

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

With no annotations provided, the description carries full burden for behavioral disclosure. While it describes what health aspects are checked, it doesn't disclose important behavioral traits like whether this is a read-only operation, what permissions are required, whether it performs any system modifications, how long it takes to execute, or what format the health report takes. The description provides basic functional information but lacks operational context.

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?

The description is perfectly concise - a single sentence that efficiently communicates the tool's purpose without any wasted words. It's front-loaded with the core action ('Check health') and immediately specifies the scope and components being examined.

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?

Given the tool's diagnostic nature, no parameters, no annotations, and no output schema, the description provides adequate basic information about what health aspects are checked. However, it doesn't explain what the health check returns (metrics format, success/failure indicators) or how to interpret results, which would be valuable for a diagnostic tool with no structured output documentation.

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?

With 0 parameters and 100% schema description coverage, the baseline is 4. The description appropriately doesn't discuss parameters since none exist, and the schema fully documents this fact. No additional parameter information is needed or provided.

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 clearly states the specific action ('Check health') and resource ('local media store'), with explicit details about what health aspects are examined (disk usage, asset counts, ffmpeg/yt-dlp availability). It distinguishes itself from sibling tools like 'checkSystemHealth' by focusing specifically on media store components rather than general system health.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description implies usage context (monitoring media store status) but doesn't explicitly state when to use this tool versus alternatives like 'checkSystemHealth' or 'listMediaAssets'. No guidance is provided about prerequisites, frequency, or specific scenarios requiring this health check.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/rajanrengasamy/vidlens-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server