Skip to main content
Glama

read_image

Load and display image files from temporary directories in MATLAB sessions, enabling visual data analysis through agent interfaces.

Instructions

Read an image file (.png, .jpg, .gif) from the session temp directory.

Returns the image as an inline content block that renders in agent UIs.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
filenameYes
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 of behavioral disclosure. It effectively describes the operation (reading from temp directory) and output format (inline content block for UI rendering), but does not cover potential errors (e.g., missing files, unsupported formats), performance aspects, or security considerations. It adds useful context beyond basic function but lacks comprehensive behavioral traits.

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?

The description is perfectly concise and front-loaded: the first sentence states the core purpose and constraints, and the second sentence explains the return behavior. Every sentence earns its place with no wasted words, making it easy to scan and understand quickly.

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?

Given the tool's low complexity (one parameter, no output schema, no annotations), the description is nearly complete. It covers what the tool does, input constraints, and output format. However, it could be more complete by addressing error cases or explicitly linking the 'filename' parameter to the described path and formats.

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 and only one parameter ('filename'), the description compensates well by implicitly defining the parameter's meaning: it must be a filename of an image (.png, .jpg, .gif) in the session temp directory. This adds significant semantic value beyond the bare schema, though it could explicitly name the parameter for clarity.

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?

The description clearly states the specific action ('Read an image file') and resource ('.png, .jpg, .gif' files from 'session temp directory'), distinguishing it from sibling tools like 'read_data' or 'read_script' by specifying image formats and location. It provides a precise verb+resource combination that leaves no ambiguity about its function.

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?

The description implies usage context by specifying file types and location, but does not explicitly state when to use this tool versus alternatives like 'read_data' or 'list_files'. It provides some guidance through constraints (e.g., file formats, directory), but lacks explicit comparisons or exclusions for sibling tools.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/HanSur94/matlab-mcp-server-python'

If you have feedback or need assistance with the MCP directory API, please join our Discord server