Skip to main content
Glama

image_info

Inspect an image file to report format, dimensions, color mode, transparency, DPI, file size, animation, EXIF/GPS details, and corruption; request a thumbnail preview when needed.

Instructions

Describe an image file: format, pixel size, mode, transparency, DPI, file size, animation (frame count and duration), EXIF summary (camera, date, software), whether it contains a GPS location (and where), EXIF orientation, and whether the file is corrupt or truncated. Reads headers and verifies the file decodes, so it is the right first call for any image. preview=true also returns a small thumbnail.

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": "image_info"
  }
}

Input Schema

NameRequiredDescriptionDefault
pathYes
previewNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.3/5.0
Behavior4/5

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

With no annotations, the description carries the behavioral load and does well: it discloses that the tool reads headers, actually verifies the file decodes, and reports corruption/truncation, which implies it is a read-only but potentially expensive operation. It does not say what happens on error (e.g. unreadable path) or whether decoding cost is significant for large files.

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?

Purpose and the long list of returned fields are front-loaded, and the optional-parameter behavior is stated last, which is logical. The field enumeration is dense but each item earns its place by telling the agent what it will learn; it could be trimmed slightly for readability.

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?

There is no output schema, so describing the returned fields (format, size, mode, DPI, EXIF, GPS, orientation, corruption, thumbnail) is essential and is done thoroughly. What is missing is error behavior — whether a corrupt file yields a normal response with a flag or raises — which matters for a tool that deliberately probes corrupted files.

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?

Schema coverage is 0%, so the description must compensate, and it does for the optional parameter: 'preview=true also returns a small thumbnail' explains both the type and the effect. The required `path` parameter is only implicitly characterized as an image file location; no detail on relative vs. absolute paths or supported schemes.

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 opens with a specific verb and resource ('Describe an image file') and then enumerates exactly what information is returned — format, pixel size, mode, DPI, EXIF, GPS, corruption status. This is far more precise than the name alone and lets an agent know it is a metadata/inspection tool rather than a transform tool like its siblings.

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?

It gives explicit routing guidance: 'it is the right first call for any image,' which tells the agent to run this before resize/crop/convert/strip_metadata. It does not name any sibling or state when inspecting is unnecessary, so the alternative-selection guidance is implied rather than exhaustive.

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