Skip to main content
Glama

Social media studio

Get Media File

get_media_file
Read-only

Get a media file by ID. With verifyUpload=true, also checks that the uploaded image/video exists in storage with its declared type and size. Read-only: does not change the 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": {
      "id": "<id>"
    },
    "name": "get_media_file"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYesFile UUID
verifyUploadNoCheck uploaded object type and size (default false)

Output Schema

NameRequiredDescriptionDefault
idYes
sizeYesFile size in bytes.
fileSrcNo
filenameNo
folderIdNo
mimetypeYes
createdAtNo
updatedAtNo
previewUrlNoA small WebP preview (about 400 px; a video's poster frame). Null until it is made, or when the file could not be read.
originalNameNo
uploadVerifiedNoTrue only after storage metadata verification.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.9/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true and destructiveHint=false, so 'Read-only: does not change the file' is largely redundant. However, the description adds genuine behavioral context by explaining what verifyUpload actually does at the storage layer (existence plus declared type and size), which annotations cannot convey.

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?

Two short sentences, front-loaded with the core action and then the optional mode. No filler, and the read-only note is placed last where it does least harm.

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 two-parameter read tool with an output schema and full annotation coverage, this covers what an agent needs to call it. The one gap is what happens when verification fails — an error versus a flag in the response — which is left unstated.

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, but the description earns above baseline by expanding verifyUpload into concrete semantics — checking the uploaded object exists in storage with its declared type and size — beyond the schema's terse 'Check uploaded object type and size'.

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 gives a specific verb+resource ('Get a media file by ID') and clarifies the optional verification mode. It doesn't explicitly differentiate itself from siblings like list_media or search_media, but the by-ID framing is distinct enough for an agent to select it.

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 implied: fetch one file by ID, and optionally verify an upload. There is no explicit when-to-use guidance (e.g., 'use this after presign_media_upload to confirm the object landed' or 'use list_media/search_media to find an ID first'), and no stated alternatives.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources