Skip to main content
Glama

inspect_media

Analyzes a local media file to return its duration, format, dimensions, and audio/video stream details without uploading it.

Instructions

Get duration, format, dimensions, and audio/video stream details for a local media file.

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": {
      "input": "<input>"
    },
    "name": "inspect_media"
  }
}

Input Schema

NameRequiredDescriptionDefault
inputYesPath to a local media file

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

B3.4/5.0
Behavior3/5

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

With no annotations provided, the description carries the full burden. 'Get ... details' implies a non-destructive read and it enumerates the returned metadata fields, which is genuinely useful given there is no output schema. It does not disclose failure behavior (missing file, unsupported codec) or confirm that the file is untouched, which are the notable remaining gaps.

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?

One sentence, front-loaded with the verb and the payoff fields, with no filler or repetition. Nothing could be removed without losing information.

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-only inspection tool with no output schema, naming the returned metadata fields is the key information and it is present. The absence of any note on unsupported formats or error behavior is minor but keeps it from a 5.

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?

There is a single parameter at 100% schema description coverage, so the schema already explains that 'input' is a path to a local media file. The description's wording mirrors the schema rather than adding meaning such as accepted path forms, relative vs absolute paths, or container support. Baseline 3 is appropriate.

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?

States a specific verb ('Get') and resource ('local media file') plus the exact fields returned (duration, format, dimensions, stream details), so the agent knows this is a metadata-inspection tool. It doesn't explicitly contrast with siblings like extract_audio or create_thumbnail, so it lands at 4 rather than 5.

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

Usage Guidelines2/5

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

The phrase 'local media file' implies a scope (on-disk files, not URLs or remote streams), but there is no when-to-use guidance, no prerequisites, and no named alternative. The agent must infer that this is the 'look before you process' step in a pipeline of trim/extract/thumbnail siblings.

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