Skip to main content
Glama

render_image

Read-only

Reads an image file and returns base64-encoded contents for AI assistants, supporting PNG, JPEG, GIF, WebP, and SVG. Use it to inspect local images or pass them to other tools.

Instructions

Read an image file and return it as base64. Supports PNG, JPEG, GIF, WebP, SVG.

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": {
      "path": "<path>"
    },
    "name": "render_image"
  }
}

Input Schema

NameRequiredDescriptionDefault
pathYesAbsolute path to the image file

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.4/5.0
Behavior3/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 the useful fact that output is base64 and enumerates supported formats, but says nothing about size limits, mime-type reporting, or what happens with an unsupported or missing file.

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 short sentences, front-loaded with the action and its result, with the format list trailing. Nothing superfluous and nothing buried.

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 one-parameter read tool with annotations and no output schema, the description covers what goes in and the shape of what comes out (base64) plus accepted formats. Minor gaps remain around error behavior and output framing, but an agent can call this correctly as written.

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 coverage is 100% and the single 'path' parameter is already documented as an absolute path in the schema. The description adds no further meaning about the path argument, so the baseline 3 applies.

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 and resource ('Read an image file'), plus the return form (base64) and the supported formats. It does not distinguish itself from the sibling render_svg, which is a real ambiguity given that SVG is listed among the accepted formats.

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?

There is no when-to-use or when-not-to-use guidance, and no mention of the siblings render_svg / render_url that could plausibly handle overlapping input. An agent must infer from the purpose sentence alone which tool to pick.

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