Skip to main content
Glama

Get media file

get-media-file
Read-onlyIdempotent

Retrieves verified metadata for an exact Anki media file and optionally returns a bounded image or audio preview for inspection.

Instructions

Returns verified metadata for one exact Anki media file and can include a bounded image or audio preview.

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": {
      "filename": "<filename>"
    },
    "name": "get-media-file"
  }
}

Input Schema

NameRequiredDescriptionDefault
filenameYesPortable filename inside Anki's flat collection.media folder
includeContentNoReturn supported image or audio bytes as a native MCP content block when the file is small enough

Output Schema

NameRequiredDescriptionDefault
fileYes
existsYes
contentIncludedYes
contentOmissionReasonYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.1

TDQS

A3.5/5.0
Behavior3/5

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

Annotations already declare readOnly, idempotent, non-destructive, and closed-world behavior, so the safety profile is covered. The description adds that metadata is "verified" and that a preview is "bounded," but neither term is defined (verified how? bounded to what size?), and the size threshold lives only in the schema's includeContent text.

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 front-loaded sentence with no filler, covering both metadata and the optional preview. The vague qualifier "verified" costs it a point, since the term adds ambiguity rather than precision.

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?

The tool is simple (two parameters, one required) and an output schema exists, so return values need no explanation. What remains missing is error/missing-file behavior and any hint of the size threshold for previews, which matters for an agent deciding whether to request content.

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 100%, so both parameters are already documented, including the flat collection.media folder constraint and the small-file condition for content blocks. The description adds little beyond the schema apart from the word "bounded" reinforcing a size limit, making the baseline 3 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?

The description names a specific verb ("Returns") and resource ("verified metadata for one exact Anki media file"), plus the optional preview capability. "One exact" implicitly distinguishes it from the sibling search-media-files, but no sibling is named explicitly, so the differentiation is left to inference.

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?

Usage is only implied: "one exact file" suggests this is a direct filename lookup rather than a search, and the preview option suggests when to set includeContent. There is no explicit when-to-use/when-not guidance, no mention of the search or find-references siblings, and no statement of what happens for a missing file.

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