Skip to main content
Glama

Organize with AI (OwAI)

Read media

read_media
Read-onlyIdempotent

Read a photo as an inline image (original or adapted to 5 MiB), or a video as an authenticated HTTPS resource link supporting GET, HEAD and byte ranges. Videos are not base64-encoded into MCP. Use rendition=still only for an inline video thumbnail, not a frame at start_ms. For video playback pass the search result's segment_start_ms as start_ms; it is a seek hint, not a clip. The client must fetch video links with its authentication header (Authorization: Bearer for OAuth tokens or OwAI developer keys; legacy x-app-key is also supported) and support the source codec; a returned link alone does not mean playback or analysis succeeded. OneDrive needs no desktop. Local folders and Apple Photos require the owning app online with remote media access enabled; Photos also needs native permission and may first download/export from iCloud on that Mac. Does not launch windows or retain originals on the server.

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": {
      "asset_id": "<asset_id>"
    },
    "name": "read_media"
  }
}

Input Schema

NameRequiredDescriptionDefault
asset_idYes
start_msNo
renditionNoauto

Output Schema

NameRequiredDescriptionDefault
resultYes
start_msNo
mime_typeYes
byte_lengthNo
content_urlNo
duration_msNo
content_kindYes
delivery_statusNo
requires_authenticationNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed10 schema fields changed
    • addedInput schema / additionalProperties
      Added value: +false
    • addedOutput schema / properties / duration_ms / anyOf
      Added value: +[
      +  {
      +    "maximum": 9007199254740991,
      +    "minimum": 0,
      +    "type": "integer"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • removedOutput schema / properties / duration_ms / type
      Removed value: -[
      -  "number",
      -  "null"
      -]
    • addedOutput schema / properties / result / properties / device / properties / last_seen_at / anyOf
      Added value: +[
      +  {
      +    "maximum": 9007199254740991,
      +    "minimum": 0,
      +    "type": "integer"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • removedOutput schema / properties / result / properties / device / properties / last_seen_at / type
      Removed value: -[
      -  "number",
      -  "null"
      -]
    • addedOutput schema / properties / result / properties / duration_ms / anyOf
      Added value: +[
      +  {
      +    "maximum": 9007199254740991,
      +    "minimum": 0,
      +    "type": "integer"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • removedOutput schema / properties / result / properties / duration_ms / type
      Removed value: -[
      -  "number",
      -  "null"
      -]
    • addedOutput schema / properties / result / properties / segment_start_ms / anyOf
      Added value: +[
      +  {
      +    "maximum": 9007199254740991,
      +    "minimum": 0,
      +    "type": "integer"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • changedOutput schema / properties / result / properties / segment_start_ms / description
      Previous value: -"Best-matching video frame timestamp in milliseconds; zero for images."New value: +"Best-matching sampled video-frame timestamp in milliseconds for semantic video results; null for images and metadata-only results."
    • removedOutput schema / properties / result / properties / segment_start_ms / type
      Removed value: -"number"
  2. First observed

TDQS

A4.8/5.0
Behavior5/5

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

Goes well beyond readOnlyHint/idempotentHint: discloses that videos are not base64-encoded, that clients must supply auth headers (Bearer, OwAI keys, legacy x-app-key), codec support requirements, iCloud download behavior, and that it neither launches windows nor retains originals on the server.

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?

Front-loads the core behavior (photo vs video) before caveats, and most sentences carry operational weight. It is dense and long, with some run-on auth/codec detail, but little is genuinely wasteful.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

An output schema exists, so return-value explanation is rightly omitted. Given three params and source-specific auth/media-access constraints, the description covers everything an agent needs to call it correctly and to interpret a returned link.

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% schema description coverage, the description carries the burden and mostly does: it explains rendition enum values, the seek-hint meaning of start_ms (not a clip), and the default 5 MiB adaptation. It does not describe asset_id's expected format or provenance beyond implicit context.

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?

States a specific verb+resource and immediately distinguishes the two modes (photo as inline image, video as authenticated HTTPS link). It also draws a clear line from siblings like open_media and locate_media by defining exactly what 'read' returns.

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

Usage Guidelines5/5

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

Explicit when/when-not guidance: rendition=still is only for an inline thumbnail, not a frame at start_ms, and start_ms should be the search result's segment_start_ms as a seek hint. It also spells out preconditions for each source (OneDrive vs local folders vs Apple Photos).

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