Skip to main content
Glama

read_local_media

Read-only

Inspect a local image or video to verify its type, size, and dimensions before uploading it to the Alibaba photo bank, confined to allowed directories.

Instructions

Inspect a local image or video (type, size, and image dimensions).

The path is confined to the server's allowed directories.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
pathYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
okNo
kindNo
pathNo
errorNo
widthNo
heightNo
filenameNo
error_typeNo
size_bytesNo
content_typeNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.5/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true and openWorldHint=false, so the safety profile is covered. The description adds genuinely new behavioral context: the path must resolve inside the server's allowed directories, which is not expressed in the annotations or schema. It stops short of describing failure behavior for disallowed paths or size limits.

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?

Two short sentences, front-loaded with the action and its returned fields, with the restriction second. Nothing is padded, though the second sentence could sit naturally alongside the parameter rather than in the body.

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?

An output schema exists, so return-value detail is unnecessary, and the description covers the key operational constraint for a single-parameter read tool. Only the handling of disallowed or nonexistent paths remains unaddressed.

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 description coverage is 0%, so the description must carry the parameter burden with one required 'path'. It contributes only the confinement rule and no format, relative-vs-absolute, or extension expectations, so it partially compensates but leaves real ambiguity about accepted path syntax.

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 ('Inspect') and resource ('local image or video') and enumerates what it returns: type, size, and image dimensions. It is clearly distinguishable from read-family siblings like read_price_file and from the video_* tools, though it never names or contrasts them explicitly.

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?

No when-to-use guidance, no prerequisites, and no mention of alternatives such as video_query or video_list_related. The only contextual note is the path confinement, which is a constraint rather than usage guidance.

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