Skip to main content
Glama

list_images

Scan a directory to locate and list all image files, providing a clear overview of available images for reading and display.

Instructions

List image files in a specified directory.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
directoryPathYesThe absolute path to the directory to scan for images.
Behavior2/5

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

No annotations are present, so the description carries the full burden of behavioral disclosure. It only states the operation without indicating whether it is read-only, whether it scans subdirectories, or how results are formatted. This lack of detail could leave the agent uncertain about side effects or limitations.

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 a single sentence that is front-loaded with the core action. Every word earns its place, and there is no unnecessary repetition or padding.

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

Completeness3/5

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

For a simple one-parameter tool, the description is adequate but leaves gaps. There is no output schema, so the description should mention what the tool returns (e.g., list of image paths). It also does not clarify which image extensions are considered or whether it includes hidden files/subdirectories. The sibling tool is not addressed, reducing context.

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 100%, with directoryPath already documented. The description does not add additional meaning beyond the schema, merely echoing 'specified directory.' It meets the baseline for a well-covered schema but does not enhance parameter understanding.

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 tool's purpose: 'List image files in a specified directory.' The verb 'List' and resource 'image files' are specific, and it distinguishes from the sibling tool read_image, which implies reading/operating on a single image.

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 explicit guidance is provided on when to use this tool versus alternatives. The sibling tool read_image is not mentioned, and there is no description of appropriate scenarios or exclusions. The context implies usage but does not clarify how it differs from read_image.

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/moiri-gamboni/image-reader-mcp'

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