Skip to main content
Glama

Load Image from File Path

load_image_from_path

Load a local image file and convert it to base64-encoded data for use with image generation, editing, description, or analysis tools. Supports JPEG, PNG, GIF, WebP, and BMP.

Instructions

Read a local image file and return it as base64-encoded data ready to pass to generate_image, edit_image, describe_image, or analyze_image tools. Supports JPEG, PNG, GIF, WebP, BMP.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
filePathYesAbsolute or relative path to the image file

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
contentYes
successYes
Behavior3/5

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

Since no annotations are provided, the description carries the full behavioral burden; it discloses the base64 return format and supported image types, which are useful facts. However, it doesn't mention error behavior, file size limits, or security/permission considerations, so transparency is adequate but not comprehensive.

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 sentences efficiently deliver the essential information: reads a local image, returns base64, names its consumers, and lists supported formats. There is no filler or redundant repetition of the schema.

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 single-parameter tool with an output schema, the description covers the key behavioral context: input, output, and supported formats. It could mention potential failure conditions, but these are not critical for a defensive agent's selection and invocation of such a straightforward tool.

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?

The schema already fully describes filePath, so the baseline is 3. The description supplements it by emphasizing 'local image file' and listing supported formats, which adds mildly relevant context beyond the schema.

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 action ('Read a local image file') and the resource being handled, with an explicit output type. It also differentiates itself from sibling tools by explaining the result is ready to feed into generate_image, edit_image, describe_image, or analyze_image.

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

Usage Guidelines4/5

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

The description explicitly names the downstream tools that accept its output, giving strong context for when to use this tool. It doesn't state an explicit 'do not use when' condition, but for a focused loading utility, this is a minor gap.

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/houtini-ai/gemini-mcp'

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